(()=>{var e={960:(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},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},276:(e,t,n)=>{var l="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,a=//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 m=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),m.parseFromString(e,"text/html")}}if(document.implementation){var p=n(507).isIE,d=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);c=function(e,t){return t?(d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var f,y=document.createElement("template");y.content&&(f=function(e){return y.innerHTML=e,y.content.childNodes}),e.exports=function(e){var t,n,m,p,d=e.match(i);switch(d&&d[1]&&(t=d[1].toLowerCase()),t){case l:return n=u(e),a.test(e)||(m=n.getElementsByTagName(r)[0])&&m.parentNode.removeChild(m),s.test(e)||(m=n.getElementsByTagName(o)[0])&&m.parentNode.removeChild(m),n.getElementsByTagName(l);case r:case o:return p=c(e).getElementsByTagName(t),s.test(e)&&a.test(e)?p[0].parentNode.childNodes:p;default:return f?f(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},152:(e,t,n)=>{var l=n(276),r=n(507).formatDOM,o=/<(![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(o);return n&&n[1]&&(t=n[1]),r(l(e),null,t)}},507:(e,t,n)=>{for(var l,r=n(885),o=n(642),i=r.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,s=o.Element,c=o.ProcessingInstruction,u=o.Text,m={},p=0,d=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=d;var f=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return r(t,e),t}(d);t.Document=f;var y=function(e){function t(t,n,l,r){void 0===l&&(l=[]),void 0===r&&(r="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var o=e.call(this,r,l)||this;return o.name=t,o.attribs=n,o}return r(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,l;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(l=e["x-attribsPrefix"])||void 0===l?void 0:l[t]}}))},enumerable:!1,configurable:!0}),t}(d);function h(e){return(0,i.isTag)(e)}function b(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function v(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function E(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new u(e.data);else if(v(e))n=new m(e.data);else if(h(e)){var l=t?w(e.children):[],r=new y(e.name,o({},e.attribs),l);l.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(b(e)){l=t?w(e.children):[];var a=new d(i.ElementType.CDATA,l);l.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){l=t?w(e.children):[];var s=new f(l);l.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 w(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{var l=n(670),r=n(484),o=n(152);o="function"==typeof o.default?o.default:o;var i={lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:l(o(e,(t=t||{}).htmlparser2||i),t)}a.domToReact=l,a.htmlToDOM=o,a.attributesToProps=r,a.Element=n(384).Element,e.exports=a,e.exports.default=a},484:(e,t,n)=>{var l=n(726),r=n(606);function o(e){return l.possibleStandardNames[e]}e.exports=function(e){var t,n,i,a,s,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(i=e[t],l.isCustomAttribute(t))c[t]=i;else if(a=o(n=t.toLowerCase()))switch(s=l.getPropertyInfo(a),"checked"!==a&&"value"!==a||u||(a=o("default"+n)),c[a]=i,s&&s.type){case l.BOOLEAN:c[a]=!0;break;case l.OVERLOADED_BOOLEAN:""===i&&(c[a]=!0)}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=i);return r.setStyleProp(e.style,c),c}},670:(e,t,n)=>{var l=n(196),r=n(484),o=n(606),i=o.setStyleProp,a=o.canTextBeChildOfNode;function s(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,m,p,d=(n=n||{}).library||l,f=d.cloneElement,y=d.createElement,h=d.isValidElement,b=[],g="function"==typeof n.replace,v=n.trim,k=0,E=t.length;k1&&(u=f(u,{key:u.key||k})),b.push(u);else if("text"!==o.type){switch(m=o.attribs,s(o)?i(m.style,m):m&&(m=r(m)),p=null,o.type){case"script":case"style":o.children[0]&&(m.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?m.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}E>1&&(m.key=k),b.push(y(o.name,m,p))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(v&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},606:(e,t,n)=>{var l=n(196),r=n(476).default,o={reactCompat:!0},i=l.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,l,r="function"==typeof t,o={},i={};for(n in e)l=e[n],r&&(o=t(n,l))&&2===o.length?i[o[0]]=o[1]:"string"==typeof l&&(i[l]=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=r(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},384:function(e,t,n){"use strict";var l=this&&this.__createBinding||(Object.create?function(e,t,n,l){void 0===l&&(l=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,l,r)}:function(e,t,n,l){void 0===l&&(l=n),e[l]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||l(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(960),i=n(79);r(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?o.ElementType.Tag:void 0,l=new i.Element(e,t,void 0,n);this.addNode(l),this.tagStack.push(l)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.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 l=new i.Text(e);this.addNode(l),this.lastNode=l}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.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(o.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 l,r=this&&this.__extends||(l=function(e,t){return l=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])},l(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}l(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,l=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=d;var f=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return r(t,e),t}(d);t.Document=f;var y=function(e){function t(t,n,l,r){void 0===l&&(l=[]),void 0===r&&(r="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var o=e.call(this,r,l)||this;return o.name=t,o.attribs=n,o}return r(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,l;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(l=e["x-attribsPrefix"])||void 0===l?void 0:l[t]}}))},enumerable:!1,configurable:!0}),t}(d);function h(e){return(0,i.isTag)(e)}function b(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function v(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function E(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new u(e.data);else if(v(e))n=new m(e.data);else if(h(e)){var l=t?w(e.children):[],r=new y(e.name,o({},e.attribs),l);l.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(b(e)){l=t?w(e.children):[];var a=new d(i.ElementType.CDATA,l);l.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){l=t?w(e.children):[];var s=new f(l);l.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 w(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,l=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var m=1,p=1;function d(e){var t=e.match(n);t&&(m+=t.length);var l=e.lastIndexOf("\n");p=~l?e.length-l:p+e.length}function f(){var e={line:m,column:p};return function(t){return t.position=new y(e),v(),t}}function y(e){this.start=e,this.end={line:m,column:p},this.source=s.source}y.prototype.content=e;var h=[];function b(t){var n=new Error(s.source+":"+m+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=m,n.column=p,n.source=e,!s.silent)throw n;h.push(n)}function g(t){var n=t.exec(e);if(n){var l=n[0];return d(l),e=e.slice(l.length),n}}function v(){g(l)}function k(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var l=e.slice(2,n-2);return p+=2,d(l),e=e.slice(n),p+=2,t({type:"comment",comment:l})}}function x(){var e=f(),n=g(r);if(n){if(E(),!g(o))return b("property missing ':'");var l=g(i),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:l?u(l[0].replace(t,c)):c});return g(a),s}}return v(),function(){var e,t=[];for(k(t);e=x();)!1!==e&&(t.push(e),k(t));return t}()}},726:(e,t,n)=>{"use strict";function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},476:function(e,t,n){"use strict";var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=l(n(848)),o=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,l){e&&l&&(n[(0,o.camelCase)(e,t)]=l)})),n):n}},678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,s):e.replace(o,s)).replace(l,a))}},848:(e,t,n)=>{var l=n(139);e.exports=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=l(e),s="function"==typeof t,c=0,u=a.length;c{"use strict";e.exports=window.React}},t={};function n(l){var r=t[l];if(void 0!==r)return r.exports;var o=t[l]={exports:{}};return e[l].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,l=window.wp.hooks,r=window.wp.compose,o=window.wp.blockEditor,i=window.wp.components;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;te?e?.toLowerCase()?.replace(/(?<= )[^\s]|^./g,(e=>e?.toUpperCase())):"",m=e=>{var t;return e&&null!==(t=e?.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.join("-")?.toLowerCase())&&void 0!==t?t:""},p=()=>(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,e.createElement)(s.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"})),d=t=>{let{children:n}=t;return(0,e.createElement)("p",{className:"blockify-control-label"},n)},f=[{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:""}];window?.blockify?.animations?.forEach((e=>{y.push({value:e,label:u(e?.replace(/-/g," "))})}));const h=[{value:"enter",label:(0,t.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,t.__)("Exit","blockify")},{value:"infinite",label:(0,t.__)("Infinite","blockify")}],b=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyAnimation)&&void 0!==t&&t};(0,l.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(b(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const g=e=>{const t={};var n,l,r,o,i,a,s;return e?.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),e?.name&&(t.animationName=null!==(l=e.name)&&void 0!==l?l:""),e?.duration&&(t.animationDuration=(null!==(r=e.duration)&&void 0!==r?r:"1")+"s"),e?.delay&&(t.animationDelay=(null!==(o=e.delay)&&void 0!==o?o:"0")+"s"),e?.timingFunction&&(t.animationTimingFunction=null!==(i=e?.timingFunction)&&void 0!==i?i:"ease-in-out"),t?.animationIterationCount||(t.animationIterationCount=null!==(a=e?.iterationCount)&&void 0!==a?a:"1"),e?.playState&&(t.animationPlayState=null!==(s=e?.playState)&&void 0!==s?s:"running"),t};(0,l.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,r.createHigherOrderComponent)((t=>n=>{var l,r;const{attributes:o}=n,i=null!==(l=o?.animation)&&void 0!==l?l:{};if(!i||!Object?.keys(i)?.length)return(0,e.createElement)(t,n);const s=g(i),c={...n?.wrapperProps,className:null!==(r=n?.wrapperProps?.className)&&void 0!==r?r:"",style:{...n?.wrapperProps?.style,...s}};return n.className=n?.className?.trim()+" has-animation",c.className=c?.className?.trim()+" has-animation",(0,e.createElement)(t,a({},n,{wrapperProps:c}))}),"withAnimation")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var l;const r=null!==(l=n?.animation)&&void 0!==l?l:{};if(!r||!Object?.keys(r)?.length)return e;e.className=e?.className?.trim()+" has-animation";const o=g(r);return{...e,style:{...e?.style,...o}}}));const v=n=>{var l,r,o,a,s,u,m;let{attributes:b,setAttributes:g}=n;const v=null!==(l=b?.animation)&&void 0!==l?l:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(d,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:()=>g({animation:{}}),icon:c,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"===v?.playState?p:(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:()=>{g({animation:{...v,playState:"running"===v?.playState?"paused":"running"}})}},"running"===v?.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!==(r=v?.name)&&void 0!==r?r:"",options:y,onChange:e=>{var t;g({animation:{...v,name:e,duration:null!==(t=v?.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!==(o=v?.timingFunction)&&void 0!==o?o:"",options:f,onChange:e=>{g({animation:{...v,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=v?.event)&&void 0!==a?a:"enter",options:h,onChange:e=>{g({animation:{...v,event:e,iterationCount:"infinite"===e?"-1":"-1"===v?.iterationCount?"1":v?.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!==(s=v?.duration)&&void 0!==s?s:1,onChange:e=>{g({animation:{...v,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!==(u=v?.delay)&&void 0!==u?u:0,onChange:e=>{g({animation:{...v,delay:e}})},min:0,max:100,step:.1,shifStep:10,allowReset:!0})),(0,e.createElement)(i.FlexItem,null,"infinite"!==v?.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"===v?.event?-1:null!==(m=v?.iterationCount)&&void 0!==m?m:1,onChange:e=>{g({animation:{...v,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})))))},k=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),E=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"}));var x;const w=null!==(x=window?.blockify?.blockSupports)&&void 0!==x?x:{},_=e=>{var t;return null!==(t=w?.[e]?.blockifyPosition)&&void 0!==t&&t},S=["","none","block","inline-block","inline","flex","inline-flex","grid","inline-grid"],C=(n,l)=>{var r,o;const{attributes:a,setAttributes:s}=n,{style:c}=a;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!==(r=c?.display?.[l])&&void 0!==r?r:"",options:S.map((e=>({label:u(e?.replace("-"," ")),value:e}))),onChange:e=>{s({style:{...c,display:{...c?.display,[l]:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Order","blockify"),value:null!==(o=c?.order?.[l])&&void 0!==o?o:"",onChange:e=>{s({style:{...c,order:{...c?.order,[l]: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:c?.width?.[l],onChange:e=>{s({style:{...c,width:{...c?.width,[l]:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Max Width","blockify"),value:c?.maxWidth?.[l],onChange:e=>{s({style:{...c,maxWidth:{...c?.maxWidth,[l]:e}}})}})))))},T=n=>{const{attributes:l,setAttributes:r}=n,[o,a]=(0,e.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(d,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Display","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...l?.style,display:"",order:"",width:"",maxWidth:""}})},icon:c,iconSize:16,"aria-label":(0,t.__)("Reset Display","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"all"===o?"primary":"secondary",onClick:()=>a("all")},(0,t.__)("All","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"mobile"===o?"primary":"secondary",onClick:()=>a("mobile"),icon:k}),(0,e.createElement)(i.Button,{isSmall:!0,variant:"desktop"===o?"primary":"secondary",onClick:()=>a("desktop"),icon:E}))),"all"===o&&C(n,o),"mobile"===o&&C(n,o),"desktop"===o&&C(n,o))},N=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyFilter)&&void 0!==t&&t},I={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,l.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return N(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const F=e=>{let t="";return Object.keys(I).forEach((n=>{e?.hasOwnProperty(n)&&void 0!==e[n]&&(t+=" "+m(n)+"("+e[n]+I?.[n]?.unit+")")})),t?{[e?.backdrop?"backdrop-filter":"filter"]:t.trim()}:{}};(0,l.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,r.createHigherOrderComponent)((t=>n=>{var l,r;const o=null!==(l=n?.attributes?.style?.filter)&&void 0!==l?l:{},i=(0,e.createElement)(t,n);if(!o||o==={})return i;const s=F(o);if(!Object.keys(s).length)return i;n.style={...null!==(r=n.style)&&void 0!==r?r:{},...s};const c={...n.wrapperProps,style:{...n.wrapperProps?.style,...s}};return(0,e.createElement)(t,a({},n,{wrapperProps:c}))}),"withCssFilter")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var l;const r=null!==(l=n?.style?.filter)&&void 0!==l?l:{};if(!r||r==={})return e;const o=F(r);return Object.keys(o).length?{...e,style:{...e?.style,...o}}:e}));const P=n=>{const{attributes:l,setAttributes:r}=n,{style:o}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(d,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:{...l?.style,filter:{}}})},icon:c,iconSize:16,"aria-label":(0,t.__)("Clear Filters","blockify")}))),(0,e.createElement)(i.PanelRow,{className:"blockify-filter-settings"},Object.keys(I).map((n=>{var l,a;return(0,e.createElement)(i.__experimentalNumberControl,{label:"hueRotate"===n?(0,t.__)("Hue Rotate","blockify"):u(n),value:o?.filter?.[n],onChange:e=>{var t;r({style:{...o,filter:{...null!==(t=o?.filter)&&void 0!==t?t:{},[n]:e}}})},min:null!==(l=I?.[n]?.min)&&void 0!==l?l:0,max:I?.[n]?.max,step:null!==(a=I?.[n]?.step)&&void 0!==a?a:1,allowReset:!0})}))),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Use as backdrop filter","blockify"),checked:o?.filter?.backdrop,onChange:e=>{r({style:{...o,filter:{...o?.filter,backdrop:e}}})}})))};var O,B;const A=null!==(O=window?.blockify?.blockSupports)&&void 0!==O?O:{},D=e=>{var t;return null!==(t=A?.[e]?.blockifyPosition)&&void 0!==t&&t},M=null!==(B=window?.blockify?.positionOptions)&&void 0!==B?B:{};(0,l.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if(D(t)){var n;let t={};Object.keys(M).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=e?.attributes?.style)&&void 0!==n?n:{}}}}return e}),0);const z=e=>{var t;let n=[];const l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(M).forEach((e=>{const t=m(e);var r,o,i;M?.[e]?.options?(null!==(r=l?.[e]?.all)&&void 0!==r&&r&&n.push(`has-${t}-${m(l?.[e]?.all)}`),null!==(o=l?.[e]?.mobile)&&void 0!==o&&o&&n.push(`has-${t}-${m(l?.[e]?.mobile)}-mobile`),null!==(i=l?.[e]?.desktop)&&void 0!==i&&i&&n.push(`has-${t}-${m(l?.[e]?.desktop)}-desktop`)):l?.[e]&&n.push(`has-${t}`)})),n},R=e=>{var t;let n={};const l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(M).forEach((e=>{var t,r,o;if(M?.[e]?.options)return;const i=m(e);null!==(t=l?.[e]?.all)&&void 0!==t&&t&&(n[`--${i}`]=l?.[e]?.all),null!==(r=l?.[e]?.mobile)&&void 0!==r&&r&&(n[`--${i}-mobile`]=l?.[e]?.mobile),null!==(o=l?.[e]?.desktop)&&void 0!==o&&o&&(n[`--${i}-desktop`]=l?.[e]?.desktop)})),n};(0,l.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,r.createHigherOrderComponent)((t=>n=>{var l;const{name:r,attributes:o}=n;if(!D(r))return(0,e.createElement)(t,n);const i=z(o),a=R(o);let s=null!==(l=n?.wrapperProps)&&void 0!==l?l:{};return n.style={...n?.style,...a},s&&(s.style={...s?.style,...a}),i.forEach((e=>{n?.className?.includes(e)||(n.className=n?.className+" "+e)})),n.wrapperProps=s,(0,e.createElement)(t,n)}),"withPositionStyle")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{const{name:t,attributes:n}=e;if(!A?.[t]?.blockifyPosition)return e;const l=z(n),r=R(n);return l.forEach((t=>{e?.className?.includes(t)||(e.className=e?.className+" "+t)})),e.style={...e?.style,...r},e}),11);const j=(n,l)=>{var r,o,a,s,c,u,m,p;const{attributes:d,setAttributes:f}=n,y=null!==(r=d?.style)&&void 0!==r?r:{},h=e=>{let t={};Object.keys(e).forEach((n=>{t[n]={...y?.[n],[l]:e[n]}})),f({style:{...y,...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!==(o=y?.position?.[l])&&void 0!==o?o:"",options:M?.position?.options,onChange:e=>{h({position:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:M?.zIndex?.label,value:y?.zIndex?.[l],onChange:e=>{h({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),y?.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!==(a=y?.overflow?.[l])&&void 0!==a?a:"",options:M?.overflow?.options,onChange:e=>{h({overflow:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Pointer Events","blockify"),value:null!==(s=y?.pointerEvents?.[l])&&void 0!==s?s:"",options:M?.pointerEvents?.options,onChange:e=>{h({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!==(c=y?.top?.[l])&&void 0!==c?c:"",right:null!==(u=y?.right?.[l])&&void 0!==u?u:"",bottom:null!==(m=y?.bottom?.[l])&&void 0!==m?m:"",left:null!==(p=y?.left?.[l])&&void 0!==p?p:""},onChange:e=>{var t,n,l,r;h({top:null!==(t=e?.top)&&void 0!==t?t:"",right:null!==(n=e?.right)&&void 0!==n?n:"",bottom:null!==(l=e?.bottom)&&void 0!==l?l:"",left:null!==(r=e?.left)&&void 0!==r?r:""})},inputProps:{min:-999}})))},V=n=>{const{attributes:l,setAttributes:r}=n,[o,a]=(0,e.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(d,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:()=>{r({style:{...l?.style,position:"",zIndex:"",top:"",right:"",bottom:"",left:""}})},icon:c,iconSize:16,"aria-label":(0,t.__)("Reset Position","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"all"===o?"primary":"tertiary",onClick:()=>a("all")},(0,t.__)("All","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"mobile"===o?"primary":"tertiary",onClick:()=>a("mobile"),icon:k}),(0,e.createElement)(i.Button,{isSmall:!0,variant:"desktop"===o?"primary":"tertiary",onClick:()=>a("desktop"),icon:E}))),"all"===o&&j(n,o),"mobile"===o&&j(n,o),"desktop"===o&&j(n,o))},L=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyBoxShadow)&&void 0!==t&&t};(0,l.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return L(t)&&(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},boxShadow:{type:"object"}}}),e}),0);const H=e=>{var t;const n=null!==(t=e?.style?.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=>{(n?.[e]||"0"===n?.[e]?.toString())&&(l["--wp--custom--box-shadow--"+e]=n?.[e]+r?.[e]),(n?.hover?.[e]||"0"===n?.hover?.[e]?.toString())&&(l["--wp--custom--box-shadow--hover--"+e]=n?.hover?.[e]+r?.[e])})),l},G=(n,l)=>{var r;const{attributes:a,setAttributes:s}=n,{style:c}=a,m=null!==(r=c?.boxShadow)&&void 0!==r?r:{},p=e=>{let t;t="default"===l?{...e}:{hover:{...m?.hover,...e}},s({style:{...c,boxShadow:{...m,...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=>(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:u(t),value:"default"===l?m[t]:m?.hover?.[t],step:1,shiftStep:10,onChange:e=>{p({[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)(o.__experimentalPanelColorGradientSettings,{title:(0,t.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===l?m?.color:m?.[l]?.color,label:(0,t.__)("Color ","blockify")+("hover"===l?(0,t.__)(" Hover","blockify"):""),onColorChange:e=>{p({color:e})}}]})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Inset","blockify"),checked:"default"===l?m?.inset:m?.[l]?.inset,onChange:e=>{p({inset:e?"inset":""})}})))))};(0,l.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:l,name:r}=n;if(!L(r))return(0,e.createElement)(t,n);const o=H(l);if(!Object.keys(o).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,...o},i.style={...i.style,...o},(0,e.createElement)(t,a({},n,{wrapperProps:i}))}),"withBoxShadow")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:l}=t;if(!L(l))return e;const r=H(n);return Object.keys(r).length?(e.className+=" has-box-shadow",e.style={...e.style,...r},e):e}));const W=n=>{const{attributes:l,setAttributes:r}=n,[o,a]=(0,e.useState)("default");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(d,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Shadow","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...l?.style,boxShadow:""}})},icon:c,iconSize:16,"aria-label":(0,t.__)("Clear Shadow","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"default"===o?"primary":"secondary",onClick:()=>a("default")},(0,t.__)("Default","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"hover"===o?"primary":"secondary",onClick:()=>a("hover")},(0,t.__)("Hover","blockify")))),"default"===o&&G(n,o),"hover"===o&&G(n,o))},U=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyTransform)&&void 0!==t&&t},$={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,l.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return U(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},transform:{type:"string"}}},e):e}));const q=e=>{let t="";return Object.keys($).forEach((n=>{if(e?.[n]){const l=e[n];t+=` ${n}(${l}${$[n]})`}})),t?{transform:t.trim()}:{}};(0,l.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,r.createHigherOrderComponent)((t=>n=>{var l;const{attributes:r,name:o}=n,i=(0,e.createElement)(t,n);if(!U(o))return i;const{style:s}=r,c=null!==(l=s?.transform)&&void 0!==l?l:{};if(!c)return i;const u=q(c);if(!Object.keys(u).length)return i;n.style={...n?.style,...u};const m={...n.wrapperProps,style:{...n.wrapperProps?.style,...u}};return(0,e.createElement)(t,a({},n,{wrapperProps:m}))}),"withCssTransform")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var l;const{name:r}=t;if(!U(r))return e;const{style:o}=n,i=null!==(l=o?.transform)&&void 0!==l?l:{};if(!i)return e;const a=q(i);return Object.keys(a).length?{...e,style:{...e?.style,...a}}:e}));const X=n=>{var l;const{attributes:r,setAttributes:o}=n,{style:a}=r,s=null!==(l=a?.transform)&&void 0!==l?l:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(d,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Transform","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{o({style:{...r?.style,transform:""}})},icon:c,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:s?.rotate,onChange:e=>{o({style:{...a,transform:{...s,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:s?.rotateX,onChange:e=>{o({style:{...a,transform:{...s,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:s?.rotateY,onChange:e=>{o({style:{...a,transform:{...s,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:s?.scale,onChange:e=>{o({style:{...a,transform:{...s,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:s?.scaleX,onChange:e=>{o({style:{...a,transform:{...s,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:s?.scaleY,onChange:e=>{o({style:{...a,transform:{...s,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:s?.skew,onChange:e=>{o({style:{...a,transform:{...s,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:s?.skewX,onChange:e=>{o({style:{...a,transform:{...s,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:s?.skewY,onChange:e=>{o({style:{...a,transform:{...s,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:s?.translateX,onChange:e=>{o({style:{...a,transform:{...s,translateX:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Translate Y","blockify"),value:s?.translateY,onChange:e=>{o({style:{...a,transform:{...s,translateY:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Translate Z","blockify"),value:s?.translateZ,onChange:e=>{o({style:{...a,transform:{...s,translateZ:e}}})}}))),(0,e.createElement)("br",null))};(0,l.addFilter)("editor.BlockEdit","blockify/custom-advanced-control",(0,r.createHigherOrderComponent)((n=>l=>{var r,a,s,c,u,m,p,d,f,y,h,g,k,E,x,w,S,C,I,F;const{attributes:O,setAttributes:B,isSelected:A,name:M}=l,{style:z}=O;if(!(e=>b(e)||_(e)||N(e)||D(e)||L(e)||U(e))(M))return(0,e.createElement)(n,l);const[R,j]=(0,e.useState)(null!==(r=z?.boxShadow)&&void 0!==r?r:null),[H,G]=(0,e.useState)(null!==(a=z?.animation)&&void 0!==a?a:null),[$,q]=(0,e.useState)(null!==(s=null!==(c=null!==(u=z?.display)&&void 0!==u?u:z?.order)&&void 0!==c?c:z?.width)&&void 0!==s?s:z?.maxWidth),[Y,Z]=(0,e.useState)(null!==(m=z?.filter)&&void 0!==m?m:null),[K,J]=(0,e.useState)(null!==(p=null!==(d=null!==(f=null!==(y=null!==(h=z?.position)&&void 0!==h?h:z?.top)&&void 0!==y?y:z?.right)&&void 0!==f?f:z?.bottom)&&void 0!==d?d:z?.left)&&void 0!==p?p:z?.zIndex),[Q,ee]=(0,e.useState)(null!==(g=z?.transform)&&void 0!==g?g:null);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,l),A&&(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(i.__experimentalToolsPanel,{label:(0,t.__)("Extra","blockify"),className:"blockify-tools-panel",resetAll:()=>{j(void 0),Z(void 0),ee(void 0),J(void 0),G(void 0)}},b(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(k=O?.animation)&&void 0!==k&&k,hasValue:()=>!!H,label:(0,t.__)("Animation","blockify"),onDeselect:()=>{G(void 0)}},(0,e.createElement)(v,l)),_(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(E=null!==(x=null!==(w=O?.style?.display)&&void 0!==w?w:O?.style?.order)&&void 0!==x?x:O?.style?.width)&&void 0!==E?E:O?.style?.maxWidth,hasValue:()=>!!$,label:(0,t.__)("Display","blockify"),onDeselect:()=>{q(void 0)}},(0,e.createElement)(T,l)),N(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(S=O?.style?.filter)&&void 0!==S&&S,hasValue:()=>!!Y,label:(0,t.__)("Filter","blockify"),onDeselect:()=>{Z(void 0)}},(0,e.createElement)(P,l)),D(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(C=O?.style?.position)&&void 0!==C&&C,hasValue:()=>!!K,label:(0,t.__)("Position","blockify"),onDeselect:()=>{Z(void 0)}},(0,e.createElement)(V,l)),L(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(I=O?.style?.boxShadow)&&void 0!==I&&I,hasValue:()=>!!R,label:(0,t.__)("Shadow","blockify"),onDeselect:()=>{j(void 0)}},(0,e.createElement)(W,l)),U(M)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(F=O?.style?.transform)&&void 0!==F&&F,hasValue:()=>!!Q,label:(0,t.__)("Transform","blockify"),onDeselect:()=>{ee(void 0)}},(0,e.createElement)(X,l)))))}),"withPositionEdit"));const Y=window.wp.domReady;var Z=n.n(Y);const K=window.wp.blocks;var J;Z()((()=>{var e;const t=null!==(e=window?.blockify?.blockStyles)&&void 0!==e?e:{unregister:[],register:[]};[...t?.unregister].forEach((e=>{(0,K.unregisterBlockStyle)(e?.type,e?.name)})),[...t?.register].forEach((e=>{(0,K.registerBlockStyle)(e?.type,e)}))}));const Q=null!==(J=window?.blockify?.blockSupports)&&void 0!==J?J:{};(0,l.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(Q).includes(t)&&(e.supports={...e.supports,...Q[t]}),e)),0),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(Q).includes(t.name)&&n?.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,l.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>("core/search"===t&&(e.attributes.style={...e.attributes?.style,spacing:{...e.attributes?.style?.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e)),0);const ee=(0,r.createHigherOrderComponent)((t=>n=>{if("core/search"!==n.name)return(0,e.createElement)(t,n);const l=document.getElementsByClassName("wp-block-search__input"),r=n?.attributes?.style?.spacing?.padding;return l[0]&&r&&(r.top&&(l[0].style.paddingTop=r?.top),r.right&&(l[0].style.paddingRight=r?.right),r.bottom&&(l[0].style.paddingBottom=r?.bottom),r.left&&(l[0].style.paddingLeft=r?.left)),(0,e.createElement)(t,n)}),"withInspectorControl");(0,l.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",ee);const te=window.wp.apiFetch;var ne=n.n(te);const le=window.wp.data,re={icons:{social:{},wordpress:{}}},oe={setIcons:e=>({type:"SET_ICONS",icons:e}),getIcons:e=>({type:"GET_ICONS",path:e})},ie={getIcons(e){const{icons:t}=e;return t}},ae={GET_ICONS:e=>ne()({path:e.path})},se={*getIcons(){const e=yield oe.getIcons("/blockify/v1/icons/");return oe.setIcons(e)}};var ce;(0,le.register)((0,le.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:oe,selectors:ie,controls:ae,resolvers:se}));const ue=null!==(ce=window?.blockify?.blockSupports)&&void 0!==ce?ce:{};(0,l.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,r.createHigherOrderComponent)((t=>n=>{if((e=>{var t;return null!==(t=ue?.[e]?.blockifyNegativeMargin)&&void 0!==t&&t})(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 me=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyOnclick)&&void 0!==t&&t};(0,l.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>me(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,l.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,r.createHigherOrderComponent)((n=>l=>{const{attributes:r,setAttributes:a,name:s}=l;return me(s)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,l),(0,e.createElement)(o.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:r?.onclick?.replace('"',"'"),onChange:e=>a({onclick: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,l)}),"onclickAttribute"),99),(0,l.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,r.createHigherOrderComponent)((t=>n=>{var l;if("core/query"!==n?.name)return(0,e.createElement)(t,n);if(!n?.attributes?.style?.spacing?.blockGap)return(0,e.createElement)(t,n);const r=null!==(l=n.wrapperProps)&&void 0!==l?l:{};return r.style={...r.style,"--wp--style--block-gap":n.attributes.style.spacing.blockGap},(0,e.createElement)(t,a({},n,{wrapperProps:r}))}),"withBlockGap")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>("core/query"===t&&n?.style?.spacing?.blockGap&&(e.style={...e.style,"--wp--style--block-gap":n.style.spacing.blockGap}),e))),(0,l.addFilter)("editor.BlockEdit","blockify/with-client-id",(0,r.createHigherOrderComponent)((t=>n=>("core/navigation-submenu"===n?.name&&n.setAttributes({clientId:n?.clientId}),(0,e.createElement)(t,n))),"withClientId")),(0,l.addFilter)("editor.BlockListBlock","blockify/with-mega-menu",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:l,name:r,clientId:o}=n;if("core/navigation-submenu"!==r)return(0,e.createElement)(t,n);let i={};l?.backgroundColor&&(i["--wp--custom--submenu--background"]="var(--wp--preset--color--"+l?.backgroundColor+")"),l?.style?.color?.background&&(i["--wp--custom--submenu--background"]=l?.style?.color?.background);let s={...n?.wrapperProps};return s["data-id"]=o,i&&(s.style={...s?.style,...i}),(0,e.createElement)(t,a({},n,{wrapperProps:s}))}),"withMegaMenu"));const pe=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,K.registerBlockVariation)("core/list",{name:"accordion",title:(0,t.__)("Accordion","blockify"),description:(0,t.__)("Add a collapsible accordion list.","blockify"),icon:pe,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>e&&e?.className?.includes(t.className)});const de=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),fe={content:(0,t.__)("Add your text here. Add your text here.","blockify"),containerSize:"150",pathSize:"100"},ye={name:"curved-text",title:(0,t.__)("Curved Text","blockify"),icon:de,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=>e?.className?.includes("is-style-curved-text")};Z()((()=>{(0,K.registerBlockVariation)("core/paragraph",ye)})),(0,l.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>("core/paragraph"===t&&(e={...e,attributes:{...e?.attributes,curvedText:{type:"object"}}}),e)));const he=function(){var t,n,l;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{curvedText:o=fe}=r,i=null!==(t=o?.content)&&void 0!==t?t:fe.content,a=null!==(n=o?.containerSize)&&void 0!==n?n:fe.containerSize,s=null!==(l=o?.pathSize)&&void 0!==l?l:fe.pathSize,c=parseInt(a)/2,u=parseInt(s)/2,m={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(),d={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",m,(0,e.createElement)("path",d," "),(0,e.createElement)("text",{fill:"currentColor"},(0,e.createElement)("textPath",{xlinkHref:"#circle-"+p},i)))};(0,l.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,r.createHigherOrderComponent)((n=>l=>{var r,s,c;const{attributes:u,setAttributes:m}=l;if(!(e=>!(!e?.className||"string"!=typeof e?.className)&&e?.className?.includes("is-style-curved-text"))(u))return(0,e.createElement)(n,l);const p=document.getElementsByClassName("edit-site-visual-editor__editor-canvas")?.item(0);let d;d=p?p.contentDocument:document;const f=d?.getElementById("block-"+l.clientId);f&&(f.innerHTML=(0,e.renderToString)(he({...u,clientId:l.clientId})));const{curvedText:y=fe}=u,h=t=>{var n;const r={...t,svgString:(0,e.renderToString)((0,e.createElement)(he,a({},u,t,{clientId:null!==(n=l.clientId)&&void 0!==n?n:"1"})))};m({curvedText:{...y,...r}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,l),(0,e.createElement)(o.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!==(r=y?.content)&&void 0!==r?r:fe.content,onChange:e=>{h({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!==(s=y?.containerSize)&&void 0!==s?s:fe.containerSize,onChange:e=>{h({containerSize:e})}})),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Path","blockify"),value:null!==(c=y?.pathSize)&&void 0!==c?c:fe.pathSize,onChange:e=>{h({pathSize:e})}})))))))}),"withCurvedTextSettings"),99);const be=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),ge={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},ve={name:"counter",title:(0,t.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:be,isDefault:!1,category:"text",scope:["inserter","transform","block"],description:(0,t.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>e&&e?.className?.includes("is-style-counter")};Z()((()=>{(0,K.registerBlockVariation)("core/paragraph",ve)})),(0,l.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,r.createHigherOrderComponent)((n=>l=>{const{attributes:r,setAttributes:a}=l,s=(0,e.createElement)(n,l);if(!r?.className?.includes("is-style-counter"))return s;const{style:c}=r;let u=ge;if(c?.counter?u=c.counter:a({style:{...c,counter:ge}}),u?.prefix||u?.end||u?.suffix){let e=u?.end;"string"==typeof u?.prefix&&(e=u?.prefix+e),"string"==typeof u?.suffix&&(e+=u?.suffix),a({content:e})}return(0,e.createElement)(e.Fragment,null,s,(0,e.createElement)(o.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:u?.start,onChange:e=>{a({style:{...c,counter:{...u,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:u?.end,onChange:e=>{a({style:{...c,counter:{...u,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:u?.duration,onChange:e=>{a({style:{...c,counter:{...u,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:u?.delay,onChange:e=>{a({style:{...c,counter:{...u,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:u?.prefix,onChange:e=>{a({style:{...c,counter:{...u,prefix:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.TextControl,{label:(0,t.__)("Suffix","blockify"),value:u?.suffix,onChange:e=>{a({style:{...c,counter:{...u,suffix:e}}})}})))))))}),"withCounterControls"),0);const ke=(0,e.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(s.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"})),Ee={name:"image",title:(0,t.__)("Image","blockify"),icon:ke,isDefault:!0,category:"media",scope:["inserter","transform","block"],description:(0,t.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className||!e?.className?.includes("is-style-icon")&&!e?.className?.includes("is-style-svg")};(0,K.registerBlockVariation)("core/image",Ee);var xe=n(488);xe.domToReact,xe.htmlToDOM,xe.attributesToProps,xe.Element;const we=xe,_e=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"}));i.SelectControl.Option,i.CustomSelectControl.Option;const Se=e=>"core/image"===e,Ce={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:' '}},Te={name:"icon",icon:_e,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=>e&&e?.className?.includes("is-style-icon")};Z()((()=>{(0,K.registerBlockVariation)("core/image",Te)})),(0,l.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(Se(t)){for(const[t,n]of Object.entries(Ce))e.attributes[t]={type:n.type};e.attributes={...e.attributes,...Ce}}return e}),99),(0,l.addFilter)("editor.BlockEdit","blockify/with-icon",(0,r.createHigherOrderComponent)((n=>l=>{var r,a,s,c,u;const{name:m,attributes:p,setAttributes:d,isSelected:f}=l,{className:y}=p;if(!y)return(0,e.createElement)(n,l);if(!y?.includes("is-style-icon"))return(0,e.createElement)(n,l);if(!Se(m))return(0,e.createElement)(n,l);f&&(()=>{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 ↗'))})(),p?.url||d({url:"#"}),p?.iconSet||d({iconSet:Ce?.iconSet?.default}),p?.iconName||d({iconName:Ce?.iconName?.default}),p?.iconSvgString||d({iconSvgString:Ce?.iconSvgString?.default});const h=[];let{icons:b}=null!==(r=(0,le.useSelect)((e=>({icons:e("blockify/icons").getIcons()})),[]))&&void 0!==r?r:re;const g={wordpress:[{name:Ce?.iconSvgString?.default,key:Ce?.iconName?.default}]};return Object.keys(b).forEach((e=>{let t=e.split("-").join(" ");t="wordpress"===t?"WordPress":t,h.push({label:t,value:e}),g[e]=[],Object.keys(b[e]).forEach((t=>{t!==p?.iconName&&g[e].push({name:we(b?.[e]?.[t]),key:t})})),b?.[e]?.[p?.iconName]&&g[e].unshift({name:we(b?.[e]?.[p?.iconName]),key:p?.iconName})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,l),(0,e.createElement)(o.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!==(a=p?.iconSet)&&void 0!==a?a:Ce?.iconSet.default,options:h,onChange:e=>d({iconSet:e})}),(0,e.createElement)((()=>{const t=g[p?.iconSet]?.filter((e=>e?.key===p?.iconName))?.[0]?.name;return(0,e.createElement)("div",{className:"blockify-icon-preview"},t&&(0,e.createElement)(e.Fragment,null,t,(0,e.createElement)("span",null,p?.iconName?.replace("-"," "))))}),null),(0,e.createElement)(i.CustomSelectControl,{label:(0,t.__)("Select Icon","blockify"),options:null!==(s=g?.[p?.iconSet])&&void 0!==s?s:g?.wordpress,value:null!==(c=p?.iconSvgString)&&void 0!==c?c:Ce?.iconSvgString?.default,className:"blockify-icon-setting",onChange:e=>{var t;let{selectedItem:n}=e;const l=null!==(t=n?.key)&&void 0!==t?t:"";d({iconName:l}),d({iconSvgString:b?.[p?.iconSet]?.[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!==(u=p?.iconSize)&&void 0!==u?u:"",onChange:e=>d({iconSize:e})})))))))}),"iconEdit"));const Ne=e=>{var t,n,l;let r={},o="";e?.style?.color?.background&&(o=e.style.color.background),e?.backgroundColor&&(o="var(--wp--preset--color--"+e.backgroundColor+", currentColor)");let i="";e?.style?.color?.gradient&&(i=e?.style?.color?.gradient),e?.gradient&&(i="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let a="";if(e?.style?.color?.text&&(a=e?.style?.color?.text),e?.textColor&&(a="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==o&&(r["--wp--custom--icon--background"]=o),a?(r["--wp--custom--icon--color"]=a,i&&(r["--wp--custom--icon--background"]=i)):i&&(r["--wp--custom--icon--color"]=i),e?.style?.spacing?.padding){var s,c,u,m;const t=e.style.spacing.padding,n={top:null!==(s=t?.top)&&void 0!==s?s:"0",right:null!==(c=t?.right)&&void 0!==c?c:"0",bottom:null!==(u=t?.bottom)&&void 0!==u?u:"0",left:null!==(m=t?.left)&&void 0!==m?m:"0"};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l&&l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(e?.style?.spacing?.margin){var p,d,f,y;const t=e.style.spacing.margin,n={top:null!==(p=t?.top)&&void 0!==p?p:"",right:null!==(d=t?.right)&&void 0!==d?d:"",bottom:null!==(f=t?.bottom)&&void 0!==f?f:"",left:null!==(y=t?.left)&&void 0!==y?y:""};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l?.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let h="";var b,g;e?.borderColor&&(h="var(--wp--preset--color--"+e?.borderColor+")"),e?.style?.border?.width&&(r["--wp--custom--icon--border-width"]=e.style.border.width,r["--wp--custom--icon--border-style"]=null!==(b=e.style.border?.style)&&void 0!==b?b:"solid",r["--wp--custom--icon--border-color"]=null!==(g=e.style.border?.color)&&void 0!==g?g:h);let v=null!==(t=e?.iconSize)&&void 0!==t?t:"";""!==v&&(r["--wp--custom--icon--size"]=v);const k=(null!==(n=e?.iconCustomSVG)&&void 0!==n?n:"")?.replace('"',"'"),E=k&&k?.includes("n=>{let{attributes:l,wrapperProps:r,name:o}=n;return l?.className&&l?.className?.includes("is-style-icon")&&Se(o)?(r||(r={style:{}}),r.style={...r?.style,...Ne(l)},(0,e.createElement)(t,a({},n,{wrapperProps:r}))):(0,e.createElement)(t,n)}),"withIcon")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{if(!n?.className)return e;const{name:l}=t;return n?.className?.includes("is-style-icon")&&Se(l)?(e.style={...e?.style,...Ne(n)},e):e}));const Ie=(0,e.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(s.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"})),Fe={name:"svg",title:(0,t.__)("SVG","blockify"),icon:Ie,isDefault:!1,category:"media",scope:["inserter","transform","block"],description:(0,t.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>!!e?.className&&e?.className&&e?.className?.includes("is-style-svg")};Z()((()=>{(0,K.registerBlockVariation)("core/image",Fe)}));const Pe=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",Oe=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,l.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,r.createHigherOrderComponent)((n=>l=>{var r,a;const{attributes:s,setAttributes:c}=l;if(!s?.className?.includes("is-style-svg"))return(0,e.createElement)(n,l);const{style:u}=s,m=null!==(r=u?.svgString)&&void 0!==r?r:"",p=null!==(a=u?.maskSvg)&&void 0!==a&&a;s?.url||c({url:p?"#":Oe(m)}),p&&"#"!==s?.url&&c({url:"#"}),p||s?.url?.includes("data:image/svg+xml;utf8,")||c({url:Oe(m)});let d="var(--width,1em)",f="";var y;s?.width&&(d=s.width+"px"),s?.height&&(f=(null!==(y=s.height)&&void 0!==y?y:"")+"px"),f=""===f?d:f;const h={width:d,height:f,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":Pe(m),"-mask-image":Pe(m)};let b="";return m&&(b=Object.entries(h).map((e=>{let[t,n]=e;return`${t}:${n};`})).join("")),(0,e.createElement)(e.Fragment,null,p&&(0,e.createElement)("style",null,"#block-"+l?.clientId+">div:first-of-type{"+b+"}"),(0,e.createElement)(n,l),(0,e.createElement)(o.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!=m?m:"",rows:20,onChange:e=>{const t={style:{...u,svgString:e}};t.url=p?"#":Oe(e),c(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:p,onChange:e=>{const t={style:{...u,maskSvg:e}};t.url=p?"#":Oe(m),c(t)}})))))}),"withSvgControls"));const Be={name:"marquee",icon:(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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)=>e.layout?.orientation===t.layout?.orientation};(0,K.registerBlockVariation)("core/group",Be);const Ae=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=e?.speedMobile)&&void 0!==t?t:20)+"s","--marquee-speed-desktop":(null!==(n=e?.speedDesktop)&&void 0!==n?n:30)+"s","--marquee-direction":e?.reverse?"reverse":"forwards","--marquee-pause":e?.pauseOnHover?"paused":"running"}};(0,l.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,l.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,r.createHigherOrderComponent)((n=>l=>{var r;const{attributes:a,setAttributes:s}=l;return"marquee"!==a?.layout?.orientation?(0,e.createElement)(n,l):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.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=>{s({speedMobile:e})},value:a?.speedMobile})),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,t.__)("Desktop","blockify-pro"),onChange:e=>{s({speedDesktop:e})},value:a?.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!==(r=a?.repeatItems)&&void 0!==r?r:2,onChange:e=>{s({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:a?.pauseOnHover,onChange:()=>s({pauseOnHover:!a?.pauseOnHover})})),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Reverse direction","blockify-pro"),checked:a?.reverse,onChange:()=>s({reverse:!a?.reverse})})))),(0,e.createElement)(n,l))}),"withInspectorControl")),(0,l.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,r.createHigherOrderComponent)((t=>n=>{var l,r;const{attributes:o}=n;if("marquee"!==o?.layout?.orientation)return(0,e.createElement)(t,n);n.attributes.style={...null!==(l=o.style)&&void 0!==l?l:{},...Ae(o)};const i={...n.wrapperProps,style:{...null!==(r=n.wrapperProps?.style)&&void 0!==r?r:{},...Ae(o)}};return(0,e.createElement)(t,a({},n,{wrapperProps:i}))}),"withMarquee")),(0,l.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>("marquee"!==n?.layout?.orientation||(e.style={...e?.style,...Ae(n)}),e)));const De=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),Me={name:"paragraph",title:(0,t.__)("Paragraph","blockify"),icon:De,isDefault:!0,category:"text",scope:["inserter","transform","block"],description:(0,t.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className?.includes("is-style-curved-text")&&!e?.className?.includes("is-style-counter")};(0,K.registerBlockVariation)("core/paragraph",Me);const ze=window.wp.richText;(0,ze.registerFormatType)("blockify/clear-formatting",{title:(0,t.__)("Clear","blockify"),tagName:"span",className:"clear",edit:n=>{const{value:l,isActive:r,onChange:i}=n,{formatTypes:a}=(0,le.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})));return(0,e.createElement)(o.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,t.__)("Clear Formatting","blockify"),onClick:()=>{if(a.length>0){let e=l;a.map((t=>{e=(0,ze.removeFormat)(e,t.name)})),i({...e})}},isActive:r})}});const Re=(0,e.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(s.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"})),je="blockify/gradient";(0,ze.registerFormatType)(je,{title:(0,t.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:n=>{let{isActive:l,value:r,onChange:a}=n;const[s,c]=(0,e.useState)(""),[u,m]=(0,e.useState)(!1),{gradients:p}=(0,le.useSelect)((e=>({gradients:e("core/block-editor").getSettings()?.gradients})));let d="",f="";return r?.formats&&r.formats.map((e=>{e?.type===je&&(d+=";"+e?.attributes?.style,f+=e?.attributes?.class)})),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(o.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,e.createElement)(o.RichTextToolbarButton,{icon:Re,title:(0,t.__)("Gradient","blockify"),isActive:l,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>m(!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:()=>m(!1)},(0,e.createElement)(i.GradientPicker,{value:null!=s?s:"",gradients:p,onChange:e=>{c(e);let t=d,n=f;p.forEach((t=>{t.gradient===e&&(n+=(n?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!n.includes("-gradient-background")&&(t+=(t?t+";":"")+"background:"+e),n?.includes("has-text-gradient")&&(n=n?.replace("has-text-gradient","")?.trim()+" has-text-gradient"),a((0,ze.applyFormat)(r,{type:je,attributes:{style:t,class:n}}))}}))))}});const Ve=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),Le=e=>Object.keys(e).map((t=>`${t?.includes("-")?t:m(t)}:${e[t]};`)).join(" "),He=e=>{const t={};return e.split(";").map((e=>{const[n,l]=e.split(":");n&&(t[n]=l)})),t};i.CustomSelectControl.Option;const Ge="blockify/typography",We=[{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,ze.registerFormatType)(Ge,{title:(0,t.__)("Typography","blockify"),tagName:"span",className:"has-font",edit(n){var l;const{isActive:r,value:a,onChange:s}=n,{fontSizes:c}=(0,le.useSelect)((e=>({fontSizes:e("core/block-editor").getSettings()?.fontSizes}))),m=(null!==(l=window?.blockify?.selectedFonts)&&void 0!==l?l:[])?.map((e=>({label:u(e?.replace("-"," ")),value:e})));let p="",d="";a?.formats&&a.formats.map((e=>{e?.type===name&&(p+=";"+e?.attributes?.style,d+=e?.attributes?.class)}));const[f,y]=(0,e.useState)({style:He(p),class:d.split(" "),fontFamily:"",fontSize:"",fontAppearance:We[0],isOpen:!1});return(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(o.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,e.createElement)(o.RichTextToolbarButton,{icon:Ve,title:(0,t.__)("Typography","blockify"),isActive:r,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>y({...f,isOpen:!f.isOpen})}),f?.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:()=>y({...f,isOpen:!1})},(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Select Font Family","blockify"),value:f?.fontFamily,options:m,onChange:e=>{y({...f,fontFamily:e});const t="has-"+e+"-font-family";f?.class?.includes(t)||f?.class?.push(t),s((0,ze.applyFormat)(a,{type:Ge,attributes:{style:Le(f?.style),class:f?.class?.join(" ")}}))}}),(0,e.createElement)(i.FontSizePicker,{fontSizes:c,fallbackFontSize:20,value:parseInt(f?.fontSize),withSlider:!0,onChange:e=>{y({...f,fontSize:e.toString()}),e&&(f.style["--wp--custom--font-size"]=e.toString()),f?.class?.includes("has-inline-font-size")||f.class.push("has-inline-font-size"),s((0,ze.applyFormat)(a,{type:Ge,attributes:{style:Le(f?.style),class:f?.class?.join(" ")}}))}}),(0,e.createElement)(i.CustomSelectControl,{label:(0,t.__)("Appearance","blockify"),value:We.find((e=>e.key===f?.fontAppearance?.key)),options:null!=We?We:[],onChange:e=>{let{selectedItem:t}=e;t&&y({...f,fontAppearance:t}),t?.style?.fontStyle&&(f.style["font-style"]=t?.style?.fontStyle),t?.style?.fontWeight&&(f.style["font-weight"]=t?.style?.fontWeight?.toString()),s((0,ze.applyFormat)(a,{type:Ge,attributes:{style:Le(f?.style),class:f?.class?.join(" ")}}))}}))))}});const Ue=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),$e="blockify/inline-svg";(0,ze.registerFormatType)($e,{title:(0,t.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit(n){const{isActive:l,onChange:r,value:a}=n,[s,c]=(0,e.useState)(!1),[u,m]=(0,e.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(o.RichTextShortcut,{type:"primary",character:"v",onUse:()=>{}}),(0,e.createElement)(o.RichTextToolbarButton,{icon:Ue,title:(0,t.__)("Inline SVG","blockify"),isActive:l,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:u?.string,placeholder:(0,t.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{m({...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:u?.alt,rows:2,onChange:e=>{m({...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:u?.width,onChange:e=>{m({...u,width:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Width Desktop","blockify"),value:u?.widthDesktop,onChange:e=>{m({...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(e?.string)})`;e?.width&&(t+=`;--width: ${e?.width}`),e?.widthDesktop&&(t+=`;--width-desktop: ${e?.widthDesktop}`),r((0,ze.insertObject)(a,{type:$e,attributes:{style:t,alt:e?.alt,role:"presentation",src:""}})),c(!1)})(u)}))))}});const qe=(0,e.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(s.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"})),Xe="blockify/underline",Ye=["none","solid","wavy","dashed","dotted","double","brush","circle"];(0,ze.registerFormatType)(Xe,{title:(0,t.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:n=>{let{isActive:l,value:r,onChange:a}=n;const[s,c]=(0,e.useState)(""),[u,m]=(0,e.useState)(!1);let p=[],d=[];return r?.formats&&r.formats.map((e=>{if(e?.type===Xe){var t,n;const l=e?.attributes;p=(null!==(t=l?.style)&&void 0!==t?t:"").split(";"),d=(null!==(n=l?.classes)&&void 0!==n?n:"").split(" ")}})),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(o.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{a((0,ze.toggleFormat)(r,{type:Xe}))}}),(0,e.createElement)(o.RichTextToolbarButton,{icon:qe,title:(0,t.__)("Underline","blockify"),isActive:l,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>m(!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:()=>m(!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,ze.removeFormat)(r,Xe)),c(e);let l=null!==(t=d)&&void 0!==t?t:[];l.forEach(((e,t)=>{e.includes("is-underline-")&&delete o.classes[t]}));const o={classes:[...l,"is-underline-"+e],styles:[...null!==(n=p)&&void 0!==n?n:[],"--wp--custom--underline--style:"+e]};a((0,ze.applyFormat)(r,{type:Xe,attributes:{class:o.classes.join(" "),style:o.styles.join(";")}}))},value:s,options:Ye.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}})})()})();