%PDF- %PDF-
Direktori : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/ |
Current File : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/editor.js |
!function(){var e={626:function(e,t){"use strict";t.T=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}},924:function(e,t,r){"use strict";var n=r(210),o=r(559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},559:function(e,t,r){"use strict";var n=r(612),o=r(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(n,a,arguments);u&&s&&(u(t,"length").configurable&&s(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var p=function(){return c(n,i,arguments)};s?s(e.exports,"apply",{value:p}):e.exports.apply=p},29:function(e,t,r){"use strict";var n=r(320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===o.call(e)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},648:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i=t.call(arguments,1),a=Math.max(0,n.length-i.length),c=[],u=0;u<a;u++)c.push("$"+u);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var r=n.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,i.concat(t.call(arguments)))})),n.prototype){var s=function(){};s.prototype=n.prototype,o.prototype=new s,s.prototype=null}return o}},612:function(e,t,r){"use strict";var n=r(648);e.exports=Function.prototype.bind||n},210:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var s=function(){throw new a},l=u?function(){try{return s}catch(e){try{return u(arguments,"callee").get}catch(e){return s}}}():s,p=r(405)(),f=r(185)(),y=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),d={},b="undefined"!=typeof Uint8Array&&y?y(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&y?y((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&y?y((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&y?y(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":b,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(y)try{null.error}catch(e){var v=y(y(e));g["%Error.prototype%"]=v}var m=function e(t){var r;if("%AsyncFunction%"===t)r=c("async function () {}");else if("%GeneratorFunction%"===t)r=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=c("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(r=y(o.prototype))}return g[t]=r,r},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(612),_=r(642),S=w.call(Function.call,Array.prototype.concat),k=w.call(Function.apply,Array.prototype.splice),T=w.call(Function.call,String.prototype.replace),O=w.call(Function.call,String.prototype.slice),P=w.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,A=function(e,t){var r,n=e;if(_(h,n)&&(n="%"+(r=h[n])[0]+"%"),_(g,n)){var i=g[n];if(i===d&&(i=m(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,j,(function(e,t,r,o){n[n.length]=r?T(o,x,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=A("%"+n+"%",t),c=i.name,s=i.value,l=!1,p=i.alias;p&&(n=p[0],k(r,S([0,1],p)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],b=O(d,0,1),v=O(d,-1);if(('"'===b||"'"===b||"`"===b||'"'===v||"'"===v||"`"===v)&&b!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(l=!0),_(g,c="%"+(n+="."+d)+"%"))s=g[c];else if(null!=s){if(!(d in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&f+1>=r.length){var m=u(s,d);s=(y=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else y=_(s,d),s=s[d];y&&!l&&(g[c]=s)}}return s}},296:function(e,t,r){"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},185:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},405:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},410:function(e,t,r){"use strict";var n=r(419);e.exports=function(){return n()&&!!Symbol.toStringTag}},642:function(e,t,r){"use strict";var n=r(612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},584:function(e,t,r){"use strict";var n=r(410)(),o=r(924)("Object.prototype.toString"),i=function(e){return!(n&&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},320:function(e){"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;u.call(f)===u.call(document.all)&&(p=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&c(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},662:function(e,t,r){"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=r(410)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},155:function(e){var t,r,n=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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,u=[],s=!1,l=-1;function p(){s&&c&&(s=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!s){var e=a(p);s=!0;for(var t=u.length;t;){for(c=u,u=[];++l<t;)c&&c[l].run();l=-1,t=u.length}c=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new y(e,t)),1!==u.length||s||a(f)},y.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},20:function(e,t,r){"use strict";var n=r(29),o=r(83),i=r(924),a=i("Object.prototype.toString"),c=r(410)(),u="undefined"==typeof globalThis?r.g:globalThis,s=o(),l=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},p=i("String.prototype.slice"),f={},y=r(882),d=Object.getPrototypeOf;c&&y&&d&&n(s,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=d(t),n=y(r,Symbol.toStringTag);if(!n){var o=d(r);n=y(o,Symbol.toStringTag)}f[e]=n.get}}));e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c||!(Symbol.toStringTag in e)){var t=p(a(e),8,-1);return l(s,t)>-1}return!!y&&function(e){var t=!1;return n(f,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},384:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},955:function(e,t,r){"use strict";var n=r(584),o=r(662),i=r(430),a=r(20);function c(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,l=c(Object.prototype.toString),p=c(Number.prototype.valueOf),f=c(String.prototype.valueOf),y=c(Boolean.prototype.valueOf);if(u)var d=c(BigInt.prototype.valueOf);if(s)var b=c(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===l(e)}function m(e){return"[object Set]"===l(e)}function h(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function T(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,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)||T(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)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},h.working="undefined"!=typeof WeakMap&&h(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(h.working?h(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=S,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function P(e){return"[object SharedArrayBuffer]"===l(e)}function j(e){return void 0!==O&&(void 0===P.working&&(P.working=P(new O)),P.working?P(e):e instanceof O)}function x(e){return g(e,p)}function A(e){return g(e,f)}function E(e){return g(e,y)}function R(e){return u&&g(e,d)}function D(e){return s&&g(e,b)}t.isSharedArrayBuffer=j,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=x,t.isStringObject=A,t.isBooleanObject=E,t.isBigIntObject=R,t.isSymbolObject=D,t.isBoxedPrimitive=function(e){return x(e)||A(e)||E(e)||R(e)||D(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},539:function(e,t,r){var n=r(155),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!h(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),c=n[r];r<o;c=n[++r])v(c)||!S(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var a={},c=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+u+"$","i")}function s(e,r){var n={seen:[],stylize:p};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),f(n,e,n.depth)}function l(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function p(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return h(o)||(o=f(e,o,n)),o}var i=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(h(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),c=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),T(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return y(r);if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(T(r))return y(r)}var s,l="",p=!1,S=["{","}"];(b(r)&&(p=!0,S=["[","]"]),O(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(l=" "+RegExp.prototype.toString.call(r)),k(r)&&(l=" "+Date.prototype.toUTCString.call(r)),T(r)&&(l=" "+y(r)),0!==a.length||p&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),s=p?function(e,t,r,n,o){for(var i=[],a=0,c=t.length;a<c;++a)A(t,String(a))?i.push(d(e,t,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,r,n,o,!0))})),i}(e,r,n,c,a):a.map((function(t){return d(e,r,n,c,t,p)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(s,l,S)):S[0]+l+S[1]}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,c,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(c=e.stylize("[Setter]","special")),A(n,o)||(a="["+o+"]"),c||(e.seen.indexOf(u.value)<0?(c=v(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function b(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function h(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===P(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===P(e)}function T(e){return S(e)&&("[object Error]"===P(e)||e instanceof Error)}function O(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(c.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(955),t.isArray=b,t.isBoolean=g,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=h,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=T,t.types.isNativeError=T,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),x[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var E="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var t;if("function"!=typeof(t=e[E]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,E,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),E&&Object.defineProperty(t,E,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=E,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(R.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},430:function(e,t,r){"use strict";var n=r(29),o=r(83),i=r(559),a=r(924),c=r(296),u=a("Object.prototype.toString"),s=r(410)(),l="undefined"==typeof globalThis?r.g:globalThis,p=o(),f=a("String.prototype.slice"),y=Object.getPrototypeOf,d=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},b={__proto__:null};n(p,s&&c&&y?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=y(t),n=c(r,Symbol.toStringTag);if(!n){var o=y(r);n=c(o,Symbol.toStringTag)}b["$"+e]=i(n.get)}}:function(e){var t=new l[e];b["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=f(u(e),8,-1);return d(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(b,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}})),t}(e)}return c?function(e){var t=!1;return n(b,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}})),t}(e):null}},83:function(e,t,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},882:function(e,t,r){"use strict";e.exports=r(296)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};!function(){"use strict";r.d(n,{S:function(){return Ae},d:function(){return Ee}});var e=window.wp.element,t=window.wp.plugins,o=window.wp.editPost,i=window.wp.data,a=window.wp.compose,c=(window.wp.components,ctEvents),u=r.n(c),s=r(539),l=r.n(s);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g={},v={},m={};!function(e){ /** * @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 */ 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"}(m), /** * @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 */ Object.defineProperty(v,"__esModule",{value:!0});const h=l(),w=m;v.iterateOverAst=function*e(t){switch(yield t,t.type){case w.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case w.nodeType.ruleset:return yield*e(t.rulelist);case w.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case w.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case w.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case w.nodeType.expression:case w.nodeType.comment:case w.nodeType.discarded:return;default:const r=t;console.error(`Got a node of unknown type: ${h.inspect(r)}`)}};var _={}; /** * @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 */Object.defineProperty(_,"__esModule",{value:!0});const S=m;_.NodeFactory=class{stylesheet(e,t){return{type:S.nodeType.stylesheet,rules:e,range:t}}atRule(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return{type:S.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:i}}comment(e,t){return{type:S.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:S.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:S.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:S.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:S.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:S.nodeType.discarded,text:e,range:t}}};var k={}; /** * @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 */Object.defineProperty(k,"__esModule",{value:!0});k.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 T={},O={};!function(e){var t; /** * @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 */ 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 r{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}r.type=t,e.Token=r;const n={"(":r.type.openParenthesis,")":r.type.closeParenthesis,":":r.type.colon,"@":r.type.at,"{":r.type.openBrace,"}":r.type.closeBrace,";":r.type.semicolon,"-":r.type.hyphen,_:r.type.underscore};e.boundaryTokenTypes=n}(O);var P={}; /** * @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 */Object.defineProperty(P,"__esModule",{value:!0});const j=m,x=O;P.Tokenizer=class{constructor(e){this.cursorToken_=new x.Token(x.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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return{start:e.start,end:(t||e).end}}trimRange(e){let{start:t,end:r}=e;for(;t<=r&&/\s/.test(this.cssText.charAt(t));)t++;for(;t<=r&&r>0&&/\s/.test(this.cssText.charAt(r-1));)r--;return{start:t,end:r}}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=j.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):j.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):j.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 r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new x.Token(x.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!j.matcher.boundary.test(r);)e++;return new x.Token(x.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;j.matcher.whitespaceGreedy.lastIndex=e;const r=j.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=j.matcher.whitespaceGreedy.lastIndex),new x.Token(x.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;j.matcher.commentGreedy.lastIndex=e;return e=null==j.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:j.matcher.commentGreedy.lastIndex,new x.Token(x.Token.type.comment,t,e)}tokenizeBoundary(e){const t=x.boundaryTokenTypes[this.cssText[e]]||x.Token.type.boundary;return new x.Token(t,e,e+1)}}, /** * @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 */ Object.defineProperty(T,"__esModule",{value:!0});const A=_,E=O,R=P;T.Parser=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new A.NodeFactory;this.nodeFactory=e}parse(e){return this.parseStylesheet(new R.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 r=this.parseRule(e);r&&t.push(r)}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 r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(E.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t,r,n,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 n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(E.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(E.Token.type.openBrace)){n=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===r)return null;let c,u="";o&&(c=e.trimRange(e.getRange(o,i)),u=e.cssText.slice(c.start,c.end));const s=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,u,n,r,c,{start:a,end:s})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(E.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=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)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(E.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),i=e.cssText.slice(o.start,o.end);let a;if(n&&n.next){const t=e.getRange(n.next,r),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||r));return this.nodeFactory.declaration(i,a,o,c)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(E.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,n,o,a)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.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,n,{start:a,end:c})}}};var D={}; /** * @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 */Object.defineProperty(D,"__esModule",{value:!0});const I=m,C=k;class F extends C.NodeVisitor{stringify(e){return this.visit(e)||""}[I.nodeType.stylesheet](e){let t="";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t}[I.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[I.nodeType.rulelist](e){let t="{";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t+"}"}[I.nodeType.comment](e){return`${e.value}`}[I.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[I.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[I.nodeType.expression](e){return`${e.text}`}[I.nodeType.discarded](e){return""}}D.Stringifier=F, /** * @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 */ Object.defineProperty(g,"__esModule",{value:!0});var M=v;g.iterateOverAst=M.iterateOverAst;var U=m;g.nodeType=U.nodeType;var B=_;g.NodeFactory=B.NodeFactory;var V=k;g.NodeVisitor=V.NodeVisitor;var z=T,N=g.Parser=z.Parser,L=D,$=g.Stringifier=L.Stringifier,G=O;g.Token=G.Token;var W=P;g.Tokenizer=W.Tokenizer;var K={},J=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(),"")}},Q=function(e){return e},H=function(e){return e&&"[object Function]"==={}.toString.call(e)},q=function(e){var t=e.variableDescriptor,r=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:r}}},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===(e=f({variableDescriptorsWithValue:[],ast:{}},e)).variableDescriptorsWithValue.length)return e.ast;var t,r,n=(t=e.variableDescriptorsWithValue,r=function(e){return e.variableDescriptor.selector},t.reduce((function(e,n,o){var i;return(e[i=r(n,o,t)]||(e[i]=[])).push(n),e}),{})),o=[],i={};if(i=f(f({},e.ast),{},{rules:e.ast.rules.map((function(e){if(!e.selector||!n[e.selector])return e;o.push(e.selector);var t=n[e.selector],r=[],i=t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return f(f({},e),{},y({},t.variableDescriptor.variableName,t))}),{}),a=t.filter((function(e){return e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return f(f({},e),{},y({},t.variableDescriptor.variableName,t))}),{}),c=e.rulelist.rules.filter((function(e){var t=e.type,r=e.name;return"declaration"!==t||!a[r]})).map((function(e){return"declaration"===e.type&&i[e.name]?(r.push(e.name),f(f({},e),{},{value:f(f({},e.value),{},{text:i[e.name].value})})):e}));return r.length!==Object.values(i).length&&(c=[].concat(d(c),d(Object.values(i).filter((function(e){var t=e.variableDescriptor;return!r.includes(t.variableName)})).map((function(e){return q(e)}))))),f(f({},e),{},{rulelist:f(f({},e.rulelist),{},{rules:c})})}))}),o.length!==Object.keys(n).length){var a=Object.values(n).filter((function(e){return!o.includes(e[0].variableDescriptor.selector)&&!!e.find((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")}))}));i=f(f({},i),{},{rules:[].concat(d(i.rules),d(a.map((function(e){return{type:"ruleset",selector:e[0].variableDescriptor.selector,rulelist:{type:"rulelist",rules:e.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).map(q)}}}))))})}return i},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=f({variableDescriptor:{},value:{},device:"desktop"},e)).value;(e.variableDescriptor.type||"").indexOf("color")>-1&&"CT_CSS_SKIP_RULE"!==e.value&&(t=e.value["color"===e.variableDescriptor.type?"default":e.variableDescriptor.type.split(":")[1]].color),"border"===(e.variableDescriptor.type||"")&&(t=e.value&&"none"!==e.value.style?"".concat(e.value.width,"px ").concat(e.value.style," ").concat(e.value.color.color):"none",e.variableDescriptor.skip_none&&"none"===t&&(t="CT_CSS_SKIP_RULE")),"spacing"===(e.variableDescriptor.type||"")&&(t=function(e,t,r){if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";e.values||(e={values:[J(e.top),J(e.right),J(e.bottom),J(e.left)],custom:"",state:e.linked?1:2});var n=t.transformSpacingValue||Q;if(3===e.state)return e.custom.trim()?n(e.custom.trim(),[e.custom.trim()],r):"CT_CSS_SKIP_RULE";var o=0;t.emptyValue&&(o=t.emptyValue);var i=e.values.map((function(e){return""===e.value||"auto"===e.value?f(f({},e),{},{value:o}):e})),a=!0,c="";return i.forEach((function(e){e.value!==o&&(a=!1),""!==e.unit&&(c=e.unit)})),c&&(i=i.map((function(e){return""===e.unit?f(f({},e),{},{unit:c}):e}))),a?"CT_CSS_SKIP_RULE":(i=i.map((function(e){return"".concat(e.value).concat(e.unit)})))[0]===i[1]&&i[0]===i[2]&&i[0]===i[3]?n(i[0],[i[0]],r):i[0]===i[2]&&i[1]===i[3]?n("".concat(i[0]," ").concat(i[3]),[i[0],i[3]],r):n(i.join(" "),i,r)}(e.value,e.variableDescriptor,e.device)),"box-shadow"===(e.variableDescriptor.type||"")&&(t=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return"none";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")}(e.value,e.variableDescriptor));var r="--";"property"===e.variableDescriptor.variableType&&(r="");var n="".concat(r).concat(H(e.variableDescriptor.variable)?e.variableDescriptor.variable():e.variableDescriptor.variable);return{variableDescriptor:f(f({},e.variableDescriptor),{},{selector:e.variableDescriptor.selector||":root",variableName:n}),value:"".concat(t).concat(e.variableDescriptor.unit||"").concat(e.variableDescriptor.important?" !important":"")}},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=f({variableDescriptor:{},value:"",fullValue:{},tabletMQ:"(max-width: 999.98px)",mobileMQ:"(max-width: 689.98px)",cacheId:"default",initialStyleTagsDescriptor:[]},e)).variableDescriptor;return H(t)&&(t=t(e.value)),Array.isArray(t)||(t=[t]),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e=f({cacheId:"default",initialStyleTagsDescriptor:[],initialStyleTags:[]},e),K[e.cacheId])return K[e.cacheId];var t=new N,r=d(e.initialStyleTags),n=document.querySelector("#ct-main-styles-inline-css");return n&&r.push(n),K[e.cacheId]=[].concat(d(e.initialStyleTagsDescriptor),d(r.map((function(e){return{style:e}})))).map((function(e){var r={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 f(f({},r),{},{ast:t.parse(r.readStyles().replace(new RegExp("\n","g"),""))})})),K[e.cacheId]}({cacheId:e.cacheId,initialStyleTagsDescriptor:e.initialStyleTagsDescriptor}).map((function(r){var n=function(r){return("desktop"===r?t:t.filter((function(e){return!!e.responsive}))).map((function(t){var n=t.fullValue?e.fullValue:e.value;return n=t.extractValue?t.extractValue(n):n,t.whenDone&&t.whenDone(n,e.value),n=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}(n,!!t.responsive),Y({variableDescriptor:t,value:t.responsive?n[r]:n,device:r})}))},o=Z({variableDescriptorsWithValue:n("desktop"),ast:r.ast});return t.find((function(e){return!!e.responsive}))?(o.rules.find((function(t){var r=t.type,n=t.parameters;return"atRule"===r&&n===e.tabletMQ}))||(o=f(f({},o),{},{rules:[].concat(d(o.rules),[{type:"atRule",name:"media",parameters:e.tabletMQ,rulelist:{type:"rulelist",rules:[]}}])})),o.rules.find((function(t){var r=t.type,n=t.parameters;return"atRule"===r&&n===e.mobileMQ}))||(o=f(f({},o),{},{rules:[].concat(d(o.rules),[{type:"atRule",name:"media",parameters:e.mobileMQ,rulelist:{type:"rulelist",rules:[]}}])})),o=f(f({},o),{},{rules:o.rules.map((function(t){if("atRule"!==t.type)return t;var r=t.rulelist;return t.parameters===e.tabletMQ&&(r=Z({variableDescriptorsWithValue:n("tablet"),ast:r})),t.parameters===e.mobileMQ&&(r=Z({variableDescriptorsWithValue:n("mobile"),ast:r})),f(f({},t),{},{rulelist:r})}))}),f(f({},r),{},{ast:o})):f(f({},r),{},{ast:o})}))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){K[e]=t;var r=new $;K[e].map((function(e){var t=e.ast.rules.reduce((function(e,t){return"atRule"===t.type&&"media"===t.name?f(f({},e),{},{media:[].concat(d(e.media),[t])}):f(f({},e),{},{nonMedia:[].concat(d(e.nonMedia),[t])})}),{nonMedia:[],media:[]}),n=r.stringify(f(f({},e.ast),{},{rules:[].concat(d(t.nonMedia),d(t.media))}));e.persistStyles(n)}))}((e=f({variableDescriptor:{},value:"",fullValue:{},tabletMQ:"(max-width: 999.98px)",mobileMQ:"(max-width: 689.98px)",cacheId:"default",initialStyleTagsDescriptor:[]},e)).cacheId,X(e))},te=window.blocksyOptions,re=r(626);function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ie(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ae=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t},ce=function(e){let{responsive:t,value:r,cb:n}=e;return r=(0,re.T)(r,t),t?{desktop:n(r.desktop),tablet:n(r.tablet),mobile:n(r.mobile)}:n(r)},ue=function(e){let{id:t,selector:r,responsive:n=!1,valueExtractor:o=function(e){return e},addToDescriptors:i={},conditional_var:a=!1,forced_background_image:c=!1}=e;return{[t]:[oe({variable:"background-color",variableType:"property",selector:r,responsive:n,extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(e){return"gradient"===e.background_type?"initial":a?`var(${a}, ${e.backgroundColor.default.color})`:e?e.backgroundColor.default.color:"CT_CSS_SKIP_RULE"}})}},i),oe({variable:"background-image",variableType:"property",selector:r,responsive:n,extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(){let{background_type:e="color",gradient:t,background_image:r,background_pattern:n,patternColor:o,backgroundColor:i,overlayColor:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return"CT_CSS_SKIP_RULE";if("color"===e)return c?"none":"CT_CSS_SKIP_RULE";const u=function(e,t,r){return(r+"").split(e).join(t)};if("image"===e)return r.url?`${"CT_CSS_SKIP_RULE"!==a.default.color?`linear-gradient(${a.default.color}, ${a.default.color}), `:""}url(${r.url})`:"CT_CSS_SKIP_RULE";if("gradient"===e)return t;let s=1,l=o?o.default.color:"";if(l.indexOf("theme-palette-color-1")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-1")),l.indexOf("theme-palette-color-2")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-2")),l.indexOf("theme-palette-color-3")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-3")),l.indexOf("theme-palette-color-4")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-4")),l.indexOf("theme-palette-color-5")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-5")),l.indexOf("theme-palette-color-6")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-6")),l.indexOf("theme-palette-color-7")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-7")),l.indexOf("theme-palette-color-8")>-1&&(l=getComputedStyle(document.body).getPropertyValue("--theme-palette-color-8")),l.indexOf("rgb")>-1){const e=u("rgb(","",u(")","",u("rgba(","",u(" ","",l)))).split(",");l=`#${ae(parseInt(e[0],10))}${ae(parseInt(e[1],10))}${ae(parseInt(e[2],10))}`,e.length>3&&(s=e[3])}return l=u("#","",l),`url("${u("OPACITY",s,u("COLOR",l,ct_localizations.customizer_sync.svg_patterns[n]||ct_localizations.customizer_sync.svg_patterns["type-1"]))}")`}})}},i),oe(oe({variable:"background-position",variableType:"property",selector:r,responsive:n},i),{},{extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(){let{background_type:e,background_image:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":`${Math.round(100*parseFloat(t.x||0))}% ${Math.round(100*parseFloat(t.y||0))}%`}})}}),oe(oe({variable:"background-size",variableType:"property",selector:r,responsive:n},i),{},{extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(){let{background_type:e,background_size:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":t}})}}),oe(oe({variable:"background-attachment",variableType:"property",selector:r,responsive:n},i),{},{extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(){let{background_type:e,background_attachment:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":t}})}}),oe(oe({selector:r,variable:"background-repeat",variableType:"property",responsive:n},i),{},{extractValue:function(e){return ce({value:o(e),responsive:n,cb:function(){let{background_type:e,background_repeat:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e||"repeat"===t?"CT_CSS_SKIP_RULE":t}})}})]}};function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const be=document.body.classList.contains("post-type-ct_content_block");let ge={desktop:'.ct-desktop-view iframe[name="editor-canvas"], .ct-desktop-view .edit-post-visual-editor',tablet:'.ct-tablet-view iframe[name="editor-canvas"]',mobile:'.ct-mobile-view iframe[name="editor-canvas"]'};if(document.body.className.indexOf("version-6-4")>-1){}const ve=ye(ye({},ue({id:"popup_background",selector:ge.desktop,responsive:!0,addToDescriptors:{important:!0}})),(me=["content_style_source","content_style","content_background","content_boxed_shadow","boxed_content_spacing","content_boxed_radius","content_boxed_border","page_structure_type","background",...be?["has_content_block_structure","content_block_structure","template_subtype","template_editor_width_source","template_editor_width"]:[]],he=[...["desktop","tablet","mobile"].reduce((function(e,t){return[...e,...ue({id:"background",selector:ge[t],responsive:!1,addToDescriptors:{fullValue:!0,important:!0},valueExtractor:function(e){const{background:r,template_subtype:n,has_content_block_structure:o,content_block_structure:i}=e;let a=r;return!r.desktop&&!be&&"color"===r.background_type&&r.backgroundColor.default.color&&r.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1&&(a=ct_editor_localizations.default_background),be&&(o&&"yes"!==o||"card"===n)&&(a={background_type:"color",backgroundColor:{default:{color:"CT_CSS_SKIP_RULE"}}}),(0,re.T)(a)[t]}}).background]}),[]),{selector:".editor-styles-wrapper",variable:"theme-block-max-width",extractValue:function(e){let{template_subtype:t,template_editor_width_source:r="small",template_editor_width:n=1290,has_content_block_structure:o,content_block_structure:i,page_structure_type:a}=e;return t&&"card"===t?"small"===r?"500px":"medium"===r?"900px":`${n}px`:("default"===a&&(a=ct_editor_localizations.default_page_structure),be&&(a=i,"yes"===o&&"card"!==t&&"content"!==t||"canvas"===t||(a="type-4")),"type-4"===a?"var(--theme-normal-container-max-width)":"var(--theme-narrow-container-max-width)")},fullValue:!0,important:!0,unit:""},{selector:".editor-styles-wrapper",variable:"theme-block-wide-max-width",extractValue:function(e){let{template_subtype:t,has_content_block_structure:r,content_block_structure:n,page_structure_type:o}=e;return t&&"card"===t?"CT_CSS_SKIP_RULE":(be&&(o=n,"yes"!==r&&(o="type-4")),"default"===o&&(o=ct_editor_localizations.default_page_structure),"type-4"===o?"calc(var(--theme-normal-container-max-width) + var(--theme-wide-offset) * 2)":"calc(var(--theme-narrow-container-max-width) + var(--theme-wide-offset) * 2)")},fullValue:!0,unit:""},{selector:".editor-styles-wrapper",variable:"has-boxed",responsive:!0,extractValue:function(e){let{template_subtype:t,content_style_source:r="inherit",has_content_block_structure:n="yes",content_style:o="wide"}=e;return be||"inherit"!==r||(o=ct_editor_localizations.default_content_style),o=(0,re.T)(o),!be||"yes"===n&&"card"!==t&&"content"!==t||(o={desktop:"wide",tablet:"wide",mobile:"wide"}),{desktop:"boxed"===o.desktop?"var(--true)":"var(--false)",tablet:"boxed"===o.tablet?"var(--true)":"var(--false)",mobile:"boxed"===o.mobile?"var(--true)":"var(--false)"}},fullValue:!0,unit:""},{selector:".editor-styles-wrapper",variable:"has-wide",responsive:!0,extractValue:function(e){let{template_subtype:t,has_content_block_structure:r="yes",content_style_source:n="inherit",content_style:o="wide"}=e;return be||"inherit"!==n||(o=ct_editor_localizations.default_content_style),o=(0,re.T)(o),!be||"yes"===r&&"card"!==t&&"content"!==t||(o={desktop:"wide",tablet:"wide",mobile:"wide"}),{desktop:"wide"===o.desktop?"var(--true)":"var(--false)",tablet:"wide"===o.tablet?"var(--true)":"var(--false)",mobile:"wide"===o.mobile?"var(--true)":"var(--false)"}},fullValue:!0,unit:""},...ue({id:"background",selector:".editor-styles-wrapper",responsive:!0,conditional_var:"--has-boxed",addToDescriptors:{fullValue:!0},valueExtractor:function(e){let{template_subtype:t,has_content_block_structure:r="yes",content_style_source:n="inherit",content_background:o}=e;return be||"inherit"!==n||(o=ct_editor_localizations.default_content_background),!be||"yes"===r&&"card"!==t&&"content"!==t||(o=JSON.parse(JSON.stringify((0,re.T)(o))),o.desktop.background_type="color",o.desktop.backgroundColor.default.color="transparent",o.tablet.background_type="color",o.tablet.backgroundColor.default.color="transparent",o.mobile.background_type="color",o.mobile.backgroundColor.default.color="transparent"),o}}).background,{selector:".editor-styles-wrapper",type:"spacing",variable:"theme-boxed-content-spacing",responsive:!0,unit:"",fullValue:!0,extractValue:function(e){let{template_subtype:t,content_style_source:r="inherit",boxed_content_spacing:n,has_content_block_structure:o="yes"}=e;return be||"inherit"!==r||(n=ct_editor_localizations.default_boxed_content_spacing),!be||"yes"===o&&"card"!==t&&"content"!==t?n:"CT_CSS_SKIP_RULE"}},{selector:".editor-styles-wrapper",type:"spacing",variable:"theme-boxed-content-border-radius",responsive:!0,fullValue:!0,extractValue:function(e){let{template_subtype:t,content_style_source:r="inherit",content_boxed_radius:n,has_content_block_structure:o="yes"}=e;return be||"inherit"!==r||(n=ct_editor_localizations.default_content_boxed_radius),!be||"yes"===o&&"card"!==t&&"content"!==t?n:"CT_CSS_SKIP_RULE"}},{selector:".editor-styles-wrapper",type:"border",variable:"theme-boxed-content-border",responsive:!0,fullValue:!0,extractValue:function(e){let{template_subtype:t,content_style_source:r="inherit",content_boxed_border:n,has_content_block_structure:o="yes"}=e;return be||"inherit"!==r||(n=ct_editor_localizations.default_content_boxed_border),!be||"yes"===o&&"card"!==t&&"content"!==t||(n=null),n}},{selector:".editor-styles-wrapper",type:"box-shadow",variable:"theme-boxed-content-box-shadow",responsive:!0,fullValue:!0,extractValue:function(e){let{template_subtype:t,content_style_source:r="inherit",content_boxed_shadow:n,has_content_block_structure:o="yes"}=e;return be||"inherit"!==r||(n=ct_editor_localizations.default_content_boxed_shadow),!be||"yes"===o&&"card"!==t&&"content"!==t?n:"CT_CSS_SKIP_RULE"}}],me.reduce((function(e,t){return le(le({},e),{},{[t]:he})}),{})));var me,he;function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){Se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Se(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ke=function(e,t){const r=_e(_e({},(0,te.getValueFromInput)(ct_editor_localizations.post_options,wp.data.select("core/editor").getEditedPostAttribute("blocksy_meta")||{})),{},{[e]:t});if(!ve[e])return;const n=(Array.isArray(ve[e])?ve[e]:[ve[e]]).reduce((function(e,t){const r=t.selector.includes('iframe[name="editor-canvas"]')?"backgroundVariables":"nonBackgroundVariables";return _e(_e({},e),{},{[r]:[...e[r],t]})}),{backgroundVariables:[],nonBackgroundVariables:[]});if(Ae(),n.backgroundVariables.length>0){const e=document.querySelector("#ct-main-editor-styles-inline-css");e&&ee({variableDescriptor:n.backgroundVariables,value:t,fullValue:r,tabletMQ:"(max-width: 800px)",mobileMQ:"(max-width: 370px)",cacheId:"background",initialStyleTagsDescriptor:[{style:e}]})}n.nonBackgroundVariables.length>0&&ee({variableDescriptor:n.nonBackgroundVariables,value:t,fullValue:r,tabletMQ:"(max-width: 800px)",mobileMQ:"(max-width: 370px)",cacheId:"non-background",initialStyleTagsDescriptor:[{readStyles:function(){const e=window.wp.data.select("core/editor").getEditorSettings().styles.find((function(e){return"blocksy"===e.source}));return e&&e.css?e.css:""},persistStyles:function(e){const t=window.wp.data.select("core/editor").getEditorSettings();wp.data.dispatch("core/editor").updateEditorSettings(_e(_e({},t),{},{styles:t.styles.map((function(t){return"blocksy"!==t.source?t:_e(_e({},t),{},{css:e})}))}))}}]}),Ee()};var Te=window.wp.i18n,Oe=window.wp.primitives;(0,e.createContext)(),(0,e.createContext)();function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ae=function(){const e=document.querySelector('iframe[name="editor-canvas"]');if(e){const t=e.contentDocument.querySelector("body");t&&(t.style.transition="none")}},Ee=function(){const e=document.querySelector('iframe[name="editor-canvas"]');if(e){const t=e.contentDocument.querySelector("body");t&&setTimeout((function(){t.removeAttribute("style")}),100)}};let Re=null;const De=function(){let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(wp.customize&&wp.customize.previewedDevice)return wp.customize.previewedDevice();let t=e;wp.data&&wp.data.select&&(t=wp.data.select);let r="desktop";return t&&(t("core/editor")&&t("core/editor").getDeviceType?r=t("core/editor").getDeviceType().toLowerCase():t("core/edit-post")&&t("core/edit-post").__experimentalGetPreviewDeviceType()&&(r=t("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase())),r}();Re!==e&&(Re=e,document.body.classList.remove("ct-desktop-view","ct-tablet-view","ct-mobile-view"),document.body.classList.add(`ct-${e}-view`))};De(),wp.data.subscribe((function(){De()}));(0,e.createElement)(Oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Oe.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),(0,e.createElement)(Oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Oe.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),(0,e.createElement)(Oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Oe.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"}));const Ie=(0,a.compose)((0,t.withPluginContext)((function(e,t){let{name:r}=t;return{sidebarName:`${e.name}/${r}`}})),(0,i.withSelect)((function(e,t){let{sidebarName:r}=t;const n=e("core/editor").getEditedPostAttribute("blocksy_meta"),{getActiveGeneralSidebarName:o,isPluginItemPinned:i}=e("core/edit-post");return{isActive:o()===r,value:Array.isArray(n)?{}:n||{},options:ct_editor_localizations.post_options}})),(0,i.withDispatch)((function(e,t){let{sidebarName:r}=t;return{onChange:function(t){e("core/editor").editPost({blocksy_meta:t})}}})))((function(t){let{name:r,value:n,options:i,onChange:a,isActive:c}=t;const s=(0,e.useRef)(),l=(0,e.useRef)(),[p,f]=(0,e.useState)(null);(0,e.useEffect)((function(){document.body.classList[c?"add":"remove"]("blocksy-sidebar-active")}),[c]);const y=function(e){let{id:t,value:r}=e;const o=je(je({},p||(0,te.getValueFromInput)(i,n||{})),{},{[t]:r});ke(t,r),a(je(je({},n),{},{[t]:r})),f(o)};return(0,e.useEffect)((function(){return u().on("ct:metabox:options:trigger-change",y),function(){u().off("ct:metabox:options:trigger-change",y)}}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.PluginSidebarMoreMenuItem,{target:"blocksy",icon:"admin-customizer"},(0,Te.sprintf)((0,Te.__)("%s Page Settings","blocksy"),ct_localizations.product_name)),(0,e.createElement)(o.PluginSidebar,{name:r,icon:(0,e.createElement)("span",{style:{display:"flex",width:"20px",height:"20px"},dangerouslySetInnerHTML:{__html:ct_editor_localizations.options_panel_svg}}),className:"ct-components-panel",title:(0,Te.sprintf)((0,Te.__)("%s Page Settings","blocksy"),ct_localizations.product_name)},(0,e.createElement)("div",{id:"ct-page-options",ref:l},(0,e.createElement)("div",{className:"ct-options-container",ref:s},(0,e.createElement)(te.DeviceManagerProvider,null,(0,e.createElement)(te.PanelLevel,{containerRef:s,parentContainerRef:l,useRefsAsWrappers:!0},(0,e.createElement)(te.OptionsPanel,{onChange:function(e,t){const r=je(je({},p||(0,te.getValueFromInput)(i,n||{})),{},{[e]:t});ke(e,t),a(je(je({},n),{},{[e]:t})),f(r)},value:p||(0,te.getValueFromInput)(i,n||{}),options:i})))))))}));ct_editor_localizations.post_options&&(0,t.registerPlugin)("blocksy",{render:function(){return(0,e.createElement)(Ie,{name:"blocksy"})}})}()}();