(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{DeviceLoop:()=>b,deviceStyleValue:()=>l,directionStartEndPoint:()=>p,getColor:()=>r,getDevice:()=>v,getDimension:()=>n,getFilter:()=>i,getRgbaValue:()=>y,getUnitPoint:()=>o,gradientDefault:()=>d});var o=function(t){var e=t.unit,o=t.point;return e&&o?"".concat(o).concat(e):""},n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.dimension,n=t.unit,r=[];if(o&&n){var a=!0;["top","right","bottom","left"].map((function(t){o[t]?(a=!1,r.push("".concat(o[t]).concat(n))):(a=a&&!0,r.push("".concat(e).concat(n)))}));var i=r.join(" ");return a?"":"".concat(i)}return""},r=function(t){var e=t.r,o=t.g,n=t.b,r=t.a,a=t.type,i=t.id,c="";if(!e&&0!==e||!o&&0!==o||!o&&0!==o||(c="rgba(".concat(e,", ").concat(o,", ").concat(n,", ").concat(r,")")),"variable"===a){var u=function(t){return"--wp--preset--color--".concat(t)}(i);c="var(".concat(u,")")}return c},a=function(t){return!t||""===t},i=function(t){var e=t.brightness,o=t.contrast,n=t.blur,r=t.saturation,i=t.hue;return"\n        brightness( ".concat(a(e)?100:e,"% )\n        contrast( ").concat(a(o)?100:o,"% )\n        saturate( ").concat(a(r)?100:r,"% )\n        blur( ").concat(a(n)?0:n,"px )\n        hue-rotate( ").concat(a(i)?0:i,"deg )")};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var u=function(t){var e=!0;if("object"===c(t)){for(var o in t)e&&(e=u(t[o]));return e}return"number"!=typeof t&&!t},b=function(t){["Desktop","Tablet","Mobile"].forEach((function(e){return t(e)}))},l=function(t,e){var o,n=[];switch(t){case"Desktop":n.push("Desktop");break;case"Tablet":n.push("Tablet","Desktop");break;case"Mobile":n.push("Mobile","Tablet","Desktop")}for(var r=0,a=n;r<a.length;r++){var i=a[r];if("object"===c(o=e[i])?!u(o):!1===o||o)return e[i]}return!1},s=function(t){return{x:Math.cos(t),y:Math.sin(t)}},f=function(t){return t*Math.PI/180},p=function(t){var e=Math.pow(2,-52),o=t%360,n=s(f(180-o)),r=s(f(360-o));return Math.abs(n.x)<=e&&(n.x=0),Math.abs(n.y)<=e&&(n.y=0),Math.abs(r.x)<=e&&(r.x=0),Math.abs(r.y)<=e&&(r.y=0),{startPoint:n,endPoint:r}},d=function(){return[{color:"rgb(49, 207, 180)",id:1,offset:"0.000",active:!0},{color:"rgb(126, 32, 207)",id:2,offset:"1.000",active:!1}]},v=function(){var t,e,o,n=window.screen.width,r={tabletBreakpoint:void 0===(e=(t=((window.GutenverseConfig||window.GutenverseData||{}).settingsData||{}).editor_settings||{}).tablet_breakpoint)?1024:e,mobileBreakpoint:void 0===(o=t.mobile_breakpoint)?767:o},a=r.tabletBreakpoint;return n>a?"Desktop":n<=a&&n>r.mobileBreakpoint?"Tablet":"Mobile"},y=function(t){var e="var(--wp--preset--color--".concat(t,")"),o=document.createElement("div");document.body.appendChild(o),o.style.color=e;var n=window.getComputedStyle(o).getPropertyValue("color").match(/\d+/g),r={r:Number(n[0]),g:Number(n[1]),b:Number(n[2]),a:1};return document.body.removeChild(o),r};window.gutenverseProFrontend=e})();