kollapsminoriteten/wp-content/themes/blocksy/static/bundle/options.js

145 lines
670 KiB
JavaScript
Raw Normal View History

2025-12-12 13:14:39 +01:00
var blocksyOptions;!function(){var e,t,n={41:function(e,t,n){"use strict";var r=n(655),o=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(r)r(e,t,{configurable:null===s&&p?p.configurable:!s,enumerable:null===c&&p?p.enumerable:!c,value:n,writable:null===l&&p?p.writable:!l});else{if(!u&&(c||l||s))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},45:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},76:function(e){"use strict";e.exports=Function.prototype.call},328:function(e,t,n){"use strict";n.d(t,{D1:function(){return f},JW:function(){return m}});var r,o,i,a=(r=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.maybePromoteScalarValueIntoResponsive=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},r(o={exports:{}},o.exports),o.exports);(i=a)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")&&i.default;var c=a.maybePromoteScalarValueIntoResponsive,l=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},p=function e(t,n,r){var o=(t="string"==typeof t?t.split("/"):[t]).shift();return n&&void 0!==n[o]?t.length?e(t=t.join("/"),n[o],r):n[o]:r},d=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},f=function(e){return e.all||e.any||(e={all:e}),e},m=function e(t,n){var r=Object.values(t)[0],o=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},i=Object.keys(r).map(function(t,i){var a=Object.values(r)[i];return"all"===o(t)||"any"===o(t)?e(l({},t,a),n):function(e,t,n){var r=function(e,t){var n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=e.split("/"),o=["desktop","tablet","mobile"];return 2===r.length&&o.includes(r[1])&&!Object.keys(n).includes("desktop")?p(e,s({},n,l({},r[0],c(n[r[0]])))):p(e,n)};if(e.indexOf(":")>-1){var r=null,o=e.split(":"),i=(C=o,Array.isArray(C)?C:Array.from(C)),a=i[0],f=i.slice(1);if(e=a,"visibility"===(f=f.join(":"))){var m=c(p(d(e),t));r=n(e,s({},t,l({},d(e),m[t.wp_customizer_current_view]?"yes":"no")))}if("responsive"===f&&(r=n(e,s({},t,l({},d(e),p(d(e),t)[t.wp_customizer_current_view]||p(d(e),t))))
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2678:function(e,t,n){"use strict";n.r(t);var r=n(4705),o=n(1230),i=n(5367),a=n(2485),c=n.n(a),l=n(7976),s=n(4754);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=function(e,t,n){return Math.max(e,Math.min(t,n))};t.default=function(e){let{value:t,option:n,onChange:r}=e;const[a,u]=(0,o.useState)(!1);return(0,o.createElement)("div",{className:c()("ct-option-border")},(0,o.createElement)("div",{className:c()("ct-value-changer",{active:a})},"none"!==t.style&&!t.inherit&&(0,o.createElement)("input",{type:"number",value:t.width,onChange:function(e){let{target:{value:n}}=e;return r(p(p({},t),{},{width:d(1,5,parseInt(n,10)||1)}))}}),(0,o.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:function(){return u(!a)}},t.inherit?(0,s.__)("Inherit","blocksy"):"none"===t.style?(0,s.__)("none","blocksy"):null),(0,o.createElement)(i.default,{className:"ct-units-list",disabled:!a,onOutsideClick:function(){a&&u(!1)}},["solid","dashed","dotted","none"].map(function(e){return(0,o.createElement)("span",{key:e,onClick:function(){r(p(p({},t),{},{style:e},Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{})),u(!1)},"data-style":e},"none"===e?(0,s.__)("None","blocksy"):null)}))),"none"!==t.style&&!t.inherit&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.default,{onChange:function(e){return r(p(p({},t),{},{color:e.default}))},option:{pickers:[{id:"default",title:(0,s.__)("Initial","blocksy")}]},value:{default:t.color}}),n.secondColor&&(0,o.createElement)(l.default,{onChange:function(e){return r(p(p({},t),{},{secondColor:e.default}))},option:{pickers:[{id:"default",title:(0,s.__)("Hover","blocksy")}]},value:{default:t.secondColor||n.value.secondColor}})))}},2682:function(e,t,n){"use strict";var r=n(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,c;arguments.length>=3&&(a=n),c=e,"[object Array]"===o.call(c)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},2684:function(e,t,n){"use strict";n.r(t);var r=n(8168),o=n(4705),i=n(1230),a=n(2485),c=n.n(a),l=n(4754),s=n(3841);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case s:case d:case h:case g:case l:return e;default:return t}}case o:return t}}}function _(e){return O(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||O(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===h},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},3093:function(e,t,n){"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:function(e,t,n){"use strict";var r=n(6743),o=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},3144:function(e,t,n){"use strict";var r=n(6743),o=n(1002),i=n(76),a=n(7119);e.exports=a||r.call(i,o)},3222:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var r=n(4705),o=n(1230),i=n(3628),a=n(9853),c=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({onClosed:function(){}},e);const[t,n]=(0,o.useState)(!1),[a,s]=(0,i.zh)(function(){return{from:{transform:"scale3d(0.95, 0.95, 1)",opacity:0},config:{duration:100,easing:c()(.25,.1,.25,1)}}});return{modalOpen:t,modalStyles:a,openModal:function(){t||(n(!0),requestAnimationFrame(function(){s.start({transform:"scale3d(1, 1, 1)",opacity:1})}))},closeModal:function(){t&&s.start({transform:"scale3d(0.95, 0.95, 1)",opacity:0,onRest:function(){n(!1),e.onClosed()}})}}}},3422:function(e,t,n){"use strict";var r=n(45),o=n(4705);e=n.hmd(e);const i=["evt"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments
2025-08-27 08:44:30 +02:00
/**!
* Sortable 1.11.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
2025-12-12 13:14:39 +01:00
*/var l,s;l=void 0,s=function(){function e(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}const t=e(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),n=e(/Edge/i),o=e(/firefox/i),a=e(/safari/i)&&!e(/chrome/i)&&!e(/android/i),l=e(/iP(ad|od|hone)/i),s=e(/chrome/i)&&e(/android/i),u={capture:!1,passive:!1};function p(e,n,r){e.addEventListener(n,r,!t&&u)}function d(e,n,r){e.removeEventListener(n,r,!t&&u)}function f(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function m(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function g(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&f(e,t):f(e,t))||r&&e===n)return e;if(e===n)break}while(e=m(e))}return null}const h=/\s+/g;function v(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{let r=(" "+e.className+" ").replace(h," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(h," ")}}function y(e,t,n){let r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function b(e,t){let n="";if("string"==typeof e)n=e;else do{let t=y(e,"transform");t&&"none"!==t&&(n=t+" "+n)}while(!t&&(e=e.parentNode));const r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function w(e,t,n){if(e){let r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function O(){let e=document.scrollingElement;return e||document.documentElement}function _(e,n,r,o,i){if(!e.getBoundingClientRect&&e!==window)return;let a,c,l,s,u,p,d;if(e!==window&&e!==O()?(a=e.getBoundingClientRect(),c=a.top,l=a.left,s=a.bottom,u=a.right,p=a.height,d=a.width):(c=0,l=0,s=window.innerHeight,u=window.innerWidth,p=window.innerHeight,d=window.innerWidth),(n||r)&&e!==window&&(i=i||e.parentNode,!t))do{if(i&&i.getBoundingClientRect&&("none"!==y(i,"transform")||r&&"static"!==y(i,"position"))){let e=i.getBoundingClientRect();c-=e.top+parseInt(y(i,"border-top-width")),l-=e.left+parseInt(y(i,"border-left-width")),s=c+a.height,u=l+a.width;break}}while(i=i.parentNode);if(o&&e!==window){let t=b(i||e),n=t&&t.a,r=t&&t.d;t&&(c/=r,l/=n,d/=n,p/=r,s=c+p,u=l+d)}return{top:c,left:l,bottom:s,right:u,width:d,height:p}}function E(e,t,n){let r=k(e,!0),o=_(e)[t];for(;r;){let e,t=_(r)[n];if(e="top"===n||"left"===n?o>=t:o<=t,!e)return r;if(r===O())break;r=k(r,!1)}return!1}function C(e,t,n){let r=0,o=0,i=e.children;for(;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Te.ghost&&i[o]!==Te.dragged&&g(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function S(e,t){let n=e.lastElementChild;for(;n&&(n===Te.ghost||"none"===y(n,"display")||t&&!f(n,t));)n=n.previousElementSibling;return n||null}function P(e,t){let n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e.matches(".ct-pointer")||e===Te.clone||t&&!f(e,t)||n++;return n}function x(e){let t=0,n=0,r=O();if(e)do{let r=b(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function k(e,t){if(!e||!e.getBoundingClientRect)return O();let n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){let e=y(n);if(n.clientWidth<n.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(r||t)return n;r=!0}}}while(n=n.parentNode);return O()}function D(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}let j;function A(e,t){return functio
2025-08-27 08:44:30 +02:00
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
2025-12-12 13:14:39 +01:00
*/let U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{evt:o}=n,a=(0,r.A)(n,i);z.pluginEvent.bind(Te)(e,t,c({dragEl:G,parentEl:$,ghostEl:W,rootEl:q,nextEl:K,lastDownEl:J,cloneEl:X,cloneHidden:Y,dragStarted:ue,putSortable:re,activeSortable:Te.active,originalEvent:o,oldIndex:Q,oldDraggableIndex:ee,newIndex:Z,newDraggableIndex:te,hideGhostForTarget:je,unhideGhostForTarget:Ae,cloneNowHidden(){Y=!0},cloneNowShown(){Y=!1},dispatchSortableEvent(e){H({sortable:t,name:e,originalEvent:o})}},a))};function H(e){V(c({putSortable:re,cloneEl:X,targetEl:G,rootEl:q,oldIndex:Q,oldDraggableIndex:ee,newIndex:Z,newDraggableIndex:te},e))}let G,$,W,q,K,J,X,Y,Q,Z,ee,te,ne,re,oe,ie,ae,ce,le,se,ue,pe,de,fe,me,ge=!1,he=!1,ve=[],ye=!1,be=!1,we=[],Oe=!1,_e=[];const Ee="undefined"!=typeof document,Ce=l,Se=n||t?"cssFloat":"float",Pe=Ee&&!s&&!l&&"draggable"in document.createElement("div"),xe=function(){if(!Ee)return;if(t)return!1;let e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),ke=function(e,t){let n=y(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=C(e,0,t),i=C(e,1,t),a=o&&y(o),c=i&&y(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+_(o).width,s=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+_(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){let e="left"===a.float?"left":"right";return!i||"both"!==c.clear&&c.clear!==e?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Se]||i&&"none"===n[Se]&&l+s>r)?"vertical":"horizontal"},De=function(e){function t(e,n){return function(r,o,i,a){let c=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||c))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);{let t=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===t||e.join&&e.indexOf(t)>-1}}}let n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},je=function(){!xe&&W&&y(W,"display","none")},Ae=function(){!xe&&W&&y(W,"display","")};Ee&&document.addEventListener("click",function(e){if(he)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),he=!1,!1},!0);let Ie=function(e){if(G){let t=function(e,t){let n;return ve.some(function(r){if(S(r))return;let o=_(r),i=r[M].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,c=t>=o.top-i&&t<=o.bottom+i;return i&&a&&c?n=r:void 0}),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){let n={};for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[M]._onDragOver(n)}}},Ne=function(e){G&&G.parentNode[M]._isOutsideThisEl(e.target)};function Te(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Object.assign({},t),e[M]=this;let n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ke(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:
/**
* @license React
2025-08-27 08:44:30 +02:00
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2026-03-31 11:30:59 +02:00
*/function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},5606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,u=-1;function p(){s&&c&&(s=!1,c.length?l=c.concat(l):u=-1,l.length&&d())}function d(){if(!s){var e=a(p);s=!0;for(var t=l.length;t;){for(c=l,l=[];++u<t;)c&&c[u].run();u=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||s||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5617:function(e,t){"use strict";t.S=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},5634:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(328);const o=function(e){let{id:t,option:n,values:o,renderingConfig:i}=e,a=-1===Object.keys(n).indexOf("label")?(c=t,(c=null==c?"":String(c)).charAt(0).toUpperCase()+c.slice(1)).replace(/\_|\-/g," "):n.label;var c;return a!==a.toString()&&(a=Object.keys(a).reduce(function(e,t){return e||((0,r.JW)((0,r.D1)(a[t]),o)?t:e)},null)||Object.keys(a)[0]),""===a&&(a=!0),i&&!i.label&&(a=!1),a}},5680:function(e,t,n){"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},5700:function(e,t,n){"use strict";n.d(t,{T5:function(){return i},au:function(){return a},p8:function(){return o}});var r=n(4754);const o=function(){return"~"},i=function(e){return e.split("~")[0]},a=function(e){const t={"content-block":(0,r.__)("Content Block","blocksy"),contacts:(0,r.__)("Contacts","blocksy"),divider:(0,r.__)("Divider","blocksy"),"language-switcher":(0,r.__)("Languages","blocksy"),"menu-tertiary":(0,r.__)("Menu 3","blocksy"),"mobile-menu-secondary":(0,r.__)("Mobile Menu 2","blocksy"),"search-input":(0,r.__)("Search Box","blocksy"),"widget-area-1":(0,r.__)("Widget Area","blocksy"),"menu-secondary":(0,r.__)("Footer Menu 2","blocksy"),account:(0,r.__)("Account","blocksy"),"color-mode-switcher":(0,r.__)("Color Switch","blocksy"),"wish-list":(0,r.__)("Wishlist","blocksy"),compare:(0,r.__)("Compare","blocksy"),logo:(0,r.__)("Logo","blocksy")};return t[e]?t[e]:e}},5707:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(8168),o=n(4705),i=n(45),a=n(1230),c=(n(2485),n(4754),n(694));const l=(0,a.createContext)({onChange:function(e,t){},values:{}}),s=["value","onChange","onChangeFor","option","option"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),
2025-08-27 08:44:30 +02:00
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
2026-03-31 11:30:59 +02:00
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},7236:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},7244:function(e,t,n){"use strict";var r=n(9092)(),o=n(8075)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},7260:function(e,t,n){"use strict";n.r(t),n.d(t,{DragDropContext:function(){return z},default:function(){return H},fetchCurrentFooter:function(){return V}});var r=n(4705),o=n(45),i=n(1230),a=n(4754),c=n(2485),l=n.n(c),s=n(8168),u=n(4297),p=n(1431),d=n(5700),f=n(3528);const m=["items","draggableId","hasPointers","className","tagName","direction","group","options","propsForItem","panelType","displayWrapper"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const v=function(e){let{item:t,index:n,panelType:r,onRemove:o,renderItem:a,onClick:c,className:s}=e;const u=ct_customizer_localizations.header_builder_data[r].find(function(e){let{id:n}=e;return n===(0,d.T5)(t)}),{builderValue:p}=(0,i.useContext)(z);if(a)return a({item:t,itemData:u,index:n});const f=Object.keys(p.items).filter(function(e){return e.indexOf((0,d.p8)())>-1}),m=[(0,d.T5)(t),...f.filter(function(e){return(0,d.T5)(e)===(0,d.T5)(t)})],g=(0,d.au)((0,d.T5)(t));return(0,i.createElement)("div",{"data-id":t,className:l()("ct-builder-item",s,{"ct-builder-item-not-registered":!u}),onClick:c},(0,i.createElement)("span",{className:"ct-builder-item-label"},u&&u.config?m.length>1?`${u.config.name} ${m.indexOf(t)+1}`:u.config.name:g),(0,i.createElement)("button",{className:"ct-btn-remove",onClick:function(e){e.preventDefault(),e.stopPropagation(),o()}},(0,i.createElement)("svg",{width:"7px",height:"7px",viewBox:"0 0 10 10",fill:"currentColor"},(0,i.createElement)("path",{d:"M10,1.4L6.4,5L10,8.6L8.6,10L5,6.4L1.4,10L0,8.6L3.6,5L0,1.4L1.4,0L5,3.6L8.6,0L10,1.4z"}))))};var y=function(e){let{items:t,draggableId:n,hasPointers:r=!0,className:a,tagName:c="div",direction:g="horizontal",group:y="header_sortables",options:b={},propsForItem:w=function(e){return{}},panelType:O="footer",displayWrapper:_=!0}=e,E=(0,o.A)(e,m);const{isDragging:C,setIsDragging:S,onChange:P,setList:x}=(0,i.useContext)(z),{panelsHelpers:k}=(0,i.useContext)(p.G),[D,j]=(0,i.useState)(!1),A=(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.A,{username:ct_customizer_localizations.username,isShowing:D,setIsShowing:j}),t.map(function(e,r){return(0,i.createElement)(v,(0,s.A)({key:e,index:r,panelType:O,item:e,className:k.isOpenFor(`builder_panel_${e}`)?"ct-customizing":"",onClick:function(t){t.stopPropagation(),t.preventDefault();ct_customizer_localizations.header_builder_data.footer.find(function(t){let{id:n}=t;return n===(0,d.T5)(e)})?k.open(`builder_panel_${e}`):j(!0)},onRemove:function(){k.close(),x({[n]:t.filter(function(t){return t!==e})})}},w(e)))}));return _?(0,i.createElement)(u.A,(0,s.A)({options:h({delay:0,group:y,fallbackOnBody:!0,forceFallback:!0,fallbackTolerance:5,filter:".ct-pointer, .ct-btn-remove",direction:g,touchStartThreshold:5,onStart:function(e){S(e.item.dataset.id),document.body.classList.add("ct-build
2025-08-27 08:44:30 +02:00
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2026-03-31 11:30:59 +02:00
*/if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),c=b("react.provider"),l=b("react.context"),s=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),d=b("react.memo"),f=b("react.lazy"),m=b("react.block"),g=b("react.server.block"),h=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case f:case d:case c:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},9016:function(e,t,n){"use strict";n.r(t);var r=n(1230);const o=function(e){let{option:{text:t="",attr:n={}}}=e;return(0,r.createElement)(r.Fragment,null)};o.renderingConfig={design:"none"},o.MetaWrapper=function(){return null},t.default=o},9032:function(e,t,n){"use strict";var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,u=c(Object.prototype.toString),p=c(Number.prototype.valueOf),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(l)var m=c(BigInt.prototype.valueOf);if(s)var g=c(Symbol.prototype.valueOf);function h(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===u(e)}function y(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function O(e){return"[object ArrayBuffer]"===u(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===u(e)}function C(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||C(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=C;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function P(e){return"[object SharedArrayBuffer]"===u(e)}function x(e){return void 0!==S&&(void 0===P.working&&(P.working=P(new S)),P.working?P(e):e instanceof S)}function k(e){return h(e,p)}function D(e){return h(e,d)}function j(e){return h(e,f)}function A(e){return l&&h(e,m)}function I(e){return s&&h(e,g)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIter
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(e,"__esModule",{value:!0});var t;e.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},(t=e.nodeType||(e.nodeType={})).stylesheet="stylesheet",t.comment="comment",t.atRule="atRule",t.ruleset="ruleset",t.expression="expression",t.declaration="declaration",t.rulelist="rulelist",t.discarded="discarded"}(ue),
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(se,"__esModule",{value:!0});const pe=ne(),de=ue;se.iterateOverAst=function*e(t){switch(yield t,t.type){case de.nodeType.stylesheet:for(const n of t.rules)yield*e(n);return;case de.nodeType.ruleset:return yield*e(t.rulelist);case de.nodeType.rulelist:for(const n of t.rules)yield*e(n);return;case de.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case de.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case de.nodeType.expression:case de.nodeType.comment:case de.nodeType.discarded:return;default:const n=t;console.error(`Got a node of unknown type: ${pe.inspect(n)}`)}};var fe={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(fe,"__esModule",{value:!0});const me=ue;fe.NodeFactory=class{stylesheet(e,t){return{type:me.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,n=void 0,r,o,i){return{type:me.nodeType.atRule,name:e,parameters:t,rulelist:n,nameRange:r,parametersRange:o,range:i}}comment(e,t){return{type:me.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:me.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,n,r){return{type:me.nodeType.ruleset,selector:e,rulelist:t,selectorRange:n,range:r}}declaration(e,t,n,r){return{type:me.nodeType.declaration,name:e,value:t,nameRange:n,range:r}}expression(e,t){return{type:me.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:me.nodeType.discarded,text:e,range:t}}};var ge={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(ge,"__esModule",{value:!0});ge.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}};var he={},ve={};!function(e){var t;
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(t=e.TokenType||(e.TokenType={}));class n{constructor(e,t,n){this.type=e,this.start=t,this.end=n,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=t,e.Token=n;const r={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};e.boundaryTokenTypes=r}(ve);var ye={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(ye,"__esModule",{value:!0});const be=ue,we=ve;ye.Tokenizer=class{constructor(e){this.cursorToken_=new we.Token(we.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t=void 0){const{start:n,end:r}=this.getRange(e,t);return this.cssText.substring(n,r)}getRange(e,t=void 0){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=be.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):be.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):be.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let n=!1;const r=e;let o;for(;o=this.cssText[++e];)if(n)n=!1;else{if(o===t){++e;break}"\\"===o&&(n=!0)}return new we.Token(we.Token.type.string,r,e)}tokenizeWord(e){const t=e;let n;for(;(n=this.cssText[e])&&!be.matcher.boundary.test(n);)e++;return new we.Token(we.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;be.matcher.whitespaceGreedy.lastIndex=e;const n=be.matcher.whitespaceGreedy.exec(this.cssText);return null!=n&&n.index===e&&(e=be.matcher.whitespaceGreedy.lastIndex),new we.Token(we.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;be.matcher.commentGreedy.lastIndex=e;return e=null==be.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:be.matcher.commentGreedy.lastIndex,new we.Token(we.Token.type.comment,t,e)}tokenizeBoundary(e){const t=we.boundaryTokenTypes[this.cssText[e]]||we.Token.type.boundary;return new we.Token(t,e,e+1)}},
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(he,"__esModule",{value:!0});const Oe=fe,_e=ve,Ee=ye;he.Parser=class{constructor(e=new Oe.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new Ee.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const n=this.parseRule(e);n&&t.push(n)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(_e.Token.type.whitespace)?(e.advance(),null):t.is(_e.Token.type.comment)?this.parseComment(e):t.is(_e.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(_e.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(_e.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let n;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(_e.Token.type.boundary);)n=e.advance();return this.nodeFactory.discarded(e.slice(t,n),e.getRange(t,n))}parseAtRule(e){let t,n,r,o,i;if(!e.currentToken)return null;const a=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(_e.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(_e.Token.type.at)){e.advance();const r=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(_e.Token.type.word);)o=e.advance();n=e.getRange(r,o),t=e.cssText.slice(n.start,n.end)}else{if(e.currentToken.is(_e.Token.type.openBrace)){r=this.parseRulelist(e);break}if(e.currentToken.is(_e.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===n)return null;let c,l="";o&&(c=e.trimRange(e.getRange(o,i)),l=e.cssText.slice(c.start,c.end));const s=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,l,r,n,c,{start:a,end:s})}parseRulelist(e){const t=[],n=e.currentToken.start;let r;for(e.advance();e.currentToken;){if(e.currentToken.is(_e.Token.type.closeBrace)){r=e.currentToken,e.advance();break}{const n=this.parseRule(e);n&&t.push(n)}}const o=r?r.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:n,end:o})}parseDeclarationOrRuleset(e){let t=null,n=null,r=null;for(;e.currentToken;)if(e.currentToken.is(_e.Token.type.whitespace))e.advance();else if(e.currentToken.is(_e.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(_e.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(_e.Token.type.openBrace)||e.currentToken.is(_e.Token.type.propertyBoundary))break;e.currentToken.is(_e.Token.type.colon)&&(r=e.currentToken),null===t?(t=e.advance(),n=t):n=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(_e.Token.type.propertyBoundary)){const o=e.getRange(t,r?r.previous:n),i=e.cssText.slice(o.start,o.end);let a;if(r&&r.next){const t=e.getRange(r.next,n),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);a=this.nodeFactory.expression(i,o)}e.currentToken.is(_e.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,a,o,c)}if(r&&r===n){const r=this.parseRulelist(e);e.currentToken.is(_e.Token.type.semicolon)&&e.advance();const o=e.getRange(t,n.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,r,o,a)}{const r=e.getRange(t,n),o=e.cssText.slice(r.start,r.end),i=this.parseRulelist(e),a=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,r,{start:a,end:c})}}};var Ce={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(Ce,"__esModule",{value:!0});const Se=ue,Pe=ge;class xe extends Pe.NodeVisitor{stringify(e){return this.visit(e)||""}[Se.nodeType.stylesheet](e){let t="";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t}[Se.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[Se.nodeType.rulelist](e){let t="{";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t+"}"}[Se.nodeType.comment](e){return`${e.value}`}[Se.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[Se.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[Se.nodeType.expression](e){return`${e.text}`}[Se.nodeType.discarded](e){return""}}Ce.Stringifier=xe,
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(le,"__esModule",{value:!0});var ke=se;le.iterateOverAst=ke.iterateOverAst;var De=ue;le.nodeType=De.nodeType;var je=fe;le.NodeFactory=je.NodeFactory;var Ae=ge;le.NodeVisitor=Ae.NodeVisitor;var Ie=he,Ne=le.Parser=Ie.Parser,Te=Ce,Re=le.Stringifier=Te.Stringifier,Me=ve;le.Token=Me.Token;var Le=ye;le.Tokenizer=Le.Tokenizer;var Be={},Fe=function(){Be={}},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e=oe({cacheId:"default",initialStyleTagsDescriptor:[],initialStyleTags:[]},e),Be[e.cacheId])return Be[e.cacheId];var t=new Ne,n=ae(e.initialStyleTags),r=document.querySelector("#ct-main-styles-inline-css");return r&&n.push(r),Be[e.cacheId]=[].concat(ae(e.initialStyleTagsDescriptor),ae(n.map(function(e){return{style:e}}))).map(function(e){var n={readStyles:e.readStyles?e.readStyles:function(){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a readStyles function.");return e.style.innerText},persistStyles:e.persistStyles?e.persistStyles:function(t){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a persistStyles function.");e.style.innerText=t}};return oe(oe({},n),{},{ast:t.parse(n.readStyles().replace(new RegExp("\n","g"),""))})}),Be[e.cacheId]},Ve=function(e,t){Be[e]=t;var n=new Re;Be[e].map(function(e){var t=e.ast.rules.reduce(function(e,t){return"atRule"===t.type&&"media"===t.name?oe(oe({},e),{},{media:[].concat(ae(e.media),[t])}):oe(oe({},e),{},{nonMedia:[].concat(ae(e.nonMedia),[t])})},{nonMedia:[],media:[]}),r=n.stringify(oe(oe({},e.ast),{},{rules:[].concat(ae(t.nonMedia),ae(t.media))}));e.persistStyles(r)})},Ue=function(e){if("auto"===e||""===e)return{value:e,unit:""};var t=parseFloat(e);return isNaN(t)?{value:"",unit:""}:{value:t,unit:e.toString().replace(t.toString(),"")}},He=function(e){return e},Ge=function(e){return e&&"[object Function]"==={}.toString.call(e)},$e=function(e){var t=e.variableDescriptor,n=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:n}}},We=function(e,t){return e.selector&&e.selector.desktop?e.selector[t]:e.selector||":root"},qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=oe({variableDescriptorsWithValue:[],ast:{},device:"desktop"},e)).ast,n=e.variableDescriptorsWithValue.flatMap(function(e){return e.variableDescriptor.dropSelectors||[]});if(n.length>0&&Array.isArray(t.rules)){var r=new Set(t.rules.map(function(e){return e.selector}));t=oe(oe({},t),{},{rules:t.rules.filter(function(e){var t=r.has(e.selector),o="string"==typeof e.selector&&n.some(function(t){return e.selector.includes(t)});return!(t&&o)})})}if(0===e.variableDescriptorsWithValue.length)return t;var o,i,a=(o=e.variableDescriptorsWithValue,i=function(t){var n=t.variableDescriptor;return We(n,e.device)},o.reduce(function(e,t,n){var r;return(e[r=i(t,n,o)]||(e[r]=[])).push(t),e},{})),c=[],l={};if(l=oe(oe({},t),{},{rules:t.rules.map(function(e){if(!e.selector||!a[e.selector])return e;c.push(e.selector);var t=a[e.selector],n=[],r=t.filter(function(e){return!e.value.includes("CT_CSS_SKIP_RULE")}).reduce(function(e,t){return oe(oe({},e),{},ie({},t.variableDescriptor.variableName,t))},{}),o=t.filter(function(e){return e.value.includes("CT_CSS_SKIP_RULE")}).reduce(function(e,t){return oe(oe({},e),{},ie({},t.variableDescriptor.variableName,t))},{}),i=e.rulelist.rules.filter(function(e){var t=e.type,n=e.name;return"declaration"!==t||!o[n]}).map(function(e){return"declaration"===e.type&&r[e.name]?(n.push(e.name),oe(oe({},e),{},{value:oe(oe({},e.value),{},{text:r[e.name].value})})):e});return n.length!==Object.values(r).length&&(i=[].concat(ae(i),ae(Object.values(r).filter(function(e){var t=e.variableDescriptor;return!n.includes(t.variableName)}).map(function(e){return $e(e)})))),oe(oe({},e),{},{rulelist:oe(oe({},e.rulelist),{},{rules:i})})})}),c.length!==Object.keys(a).length){var s=Object.values(a).filter(function(t){return!c.includes(We(t[0].variableDescriptor,e.device))&&!!t.find(function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})});l=oe(oe({},