!function(e){function t(t){for(var n,i,o=t[0],a=t[1],c=0,u=[];c=0;c--)(i=e[c])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function c(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i1||c(e,t)}))})}function c(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(s,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}}function g(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function v(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}Object.create},10:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"r",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"q",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"o",(function(){return y})),n.d(t,"f",(function(){return O})),n.d(t,"e",(function(){return j})),n.d(t,"k",(function(){return w})),n.d(t,"n",(function(){return x})),n.d(t,"l",(function(){return k}));var r=n(1),i=n(32),o=n(19);function a(e,t){var n=Math.min(Math.max(e,0),1),r=Math.min(Math.max(t.a-n,0),1);return{r:t.r,g:t.g,b:t.b,a:r}}var c=function(e,t){return e?t:{}},s=function(){for(var e=[],t=0;t=t.__.length&&t.__.push({}),t.__[e]}function p(e){return b(E,e)}function b(e,t,n){var o=f(r++);return o.__c||(o.__c=i,o.__=[n?n(t):E(void 0,t),function(t){var n=e(o.__[0],t);o.__[0]!==n&&(o.__[0]=n,o.__c.setState({}))}]),o.__}function h(e,t){var n=f(r++);C(n.__H,t)&&(n.__=e,n.__H=t,i.__H.__h.push(n))}function g(e,t){var n=f(r++);C(n.__H,t)&&(n.__=e,n.__H=t,i.__h.push(n))}function v(e){return y((function(){return{current:e}}),[])}function m(e,t,n){g((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function y(e,t){var n=f(r++);return C(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function O(e,t){return y((function(){return e}),t)}function j(e){var t=i.context[e.__c];if(!t)return e.__;var n=f(r++);return null==n.__&&(n.__=!0,t.sub(i)),t.props.value}function w(e,t){a.options.useDebugValue&&a.options.useDebugValue(t?t(e):e)}function x(e){var t=f(r++),n=p();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){c.some((function(e){if(e.__P)try{e.__H.__h.forEach(_),e.__H.__h.forEach(S),e.__H.__h=[]}catch(t){return a.options.__e(t,e.__v),!0}})),c=[]}function _(e){e.t&&e.t()}function S(e){var t=e.__();"function"==typeof t&&(e.t=t)}function C(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function E(e,t){return"function"==typeof t?t(e):t}a.options.__r=function(e){s&&s(e),r=0,(i=e.__c).__H&&(i.__H.__h.forEach(_),i.__H.__h.forEach(S),i.__H.__h=[])},a.options.diffed=function(e){u&&u(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==c.push(t)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(k))}},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(_),e.__h=e.__h.filter((function(e){return!e.__||S(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.options.__e(n,e.__v)}})),l&&l(e,t)},a.options.unmount=function(e){d&&d(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach((function(e){return e.t&&e.t()}))}catch(e){a.options.__e(e,t.__v)}}}},107:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(1),i=n(32),o=n(54);function a(e,t){e.arrangement.default=Object(o.b)(t),"view"===e.type&&"view"===t.type&&(e.isFullWidth=t.width[1]===i.a,e.isFullHeight=t.height[1]===i.a)}function c(e,t){if("view"!==e.type)return!1;var n=e.width[0],r=e.height[0];return n>t.width||r>t.height}function s(e,t,n){var i=Object(r.k)(e,2)[1],o=Object(r.k)(t,2)[1];return i>n&&i!==o}},108:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r,i=n(112),o=function(){function e(){Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Object.defineProperty(e.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.storage={}}}),Object.defineProperty(e.prototype,"getItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}}),Object.defineProperty(e.prototype,"setItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.storage[e]=t}}),Object.defineProperty(e.prototype,"removeItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this.storage[e]}}),Object.defineProperty(e.prototype,"key",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return null!==(t=Object.keys(this.storage)[e])&&void 0!==t?t:null}}),Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.storage).length},enumerable:!1,configurable:!0}),e}(),a=null===(r=window.giosg)||void 0===r?void 0:r.tcAPI,c=new o;function s(){var e;try{return(!a||a.hasSufficientPermissions([i.d.AccessLocalOrSessionStorage]))&&null!==(e=window.localStorage)&&void 0!==e?e:c}catch(e){return c}}var u=new o;function l(){var e;try{return(!a||a.hasSufficientPermissions([i.d.AccessLocalOrSessionStorage]))&&null!==(e=window.sessionStorage)&&void 0!==e?e:u}catch(e){return u}}},112:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c}));var r,i;!function(e){e[e.AccessLocalOrSessionStorage=1]="AccessLocalOrSessionStorage",e[e.SelectBasicAds=2]="SelectBasicAds",e[e.CreatePersonalizedAdProfile=3]="CreatePersonalizedAdProfile",e[e.SelectPersonalizedAds=4]="SelectPersonalizedAds",e[e.CreatePersonalizedContentProfile=5]="CreatePersonalizedContentProfile",e[e.SelectPersonalizedContent=6]="SelectPersonalizedContent",e[e.MeasureAdPerformance=7]="MeasureAdPerformance",e[e.MeasureContentPerformance=8]="MeasureContentPerformance",e[e.ApplyMarketResearchToGenerateAudienceInsights=9]="ApplyMarketResearchToGenerateAudienceInsights",e[e.DevelopAndImproveProducts=10]="DevelopAndImproveProducts"}(r||(r={})),function(e){e[e.All=0]="All",e[e.Chat=1]="Chat"}(i||(i={}));const o={SEND_AUTOSUGGEST:1,JOIN_ROOMS:2,NO_CHATBUTTON:5,NO_AUTOSUGGEST:6,RUN_JAVASCRIPT:7,ENABLE_CHATBUTTON:8,SHOW_ELEMENTS:9,HIDE_ELEMENTS:10,REDIRECT:11,LOAD_LEAD_FORM:13,CHANGE_CB_TEXT:14,CHANGE_CB_TARGET:15,CHANGE_LANGUAGE:16,SHOW_LEAD_FORM:17,SET_LEAD_FORM_PROCESSOR:18,SHOW_BUTTON:19,SHOW_CHAT_DIALOG:20,SET_VISITOR_PRIORITY:21,DISABLE_CAPACITY_CHECK:22,INJECT_CSS:23,SEND_SYSTEM_MESSAGE:25,LOAD_INTERACTION:26,SEND_INTERACTION_TO_CHAT:27},a=(Object.keys(o),{VISITOR_CITY:1,CSS_SELECTOR:2,PREVIOUS_PAGE_URL_REGEXP:3,REFERRER_URL_REGEXP:4,PAGE_URL_REGEXP:5,VISITOR_COUNTRY:6,VISIT_COUNT_MORE_THAN:7,CART_SIZE_MORE_THAN:8,CART_SIZE_LESS_THAN:9,PRODUCT_NAMES_IN_CART:10,PIPELINE_STEP:11,JS_FUNCTION_RETURNS_TRUE:12,VISIT_COUNT_LESS_THAN:13,PURCHASE_COUNT_MORE_THAN:14,VISITOR_IP_ADDR:15,PAGE_URL_SIMPLE:16,OPERATOR_PRESENCE:17,AFTER_TIMEOUT:18,CLICK_ELEMENT:19,CLICK_BUTTON:20,DEVICE_TYPE:21,WEEKLY_SCHEDULE:22,VISITOR_PRIORITY_MORE_THAN:23,VISITOR_PRIORITY_LESS_THAN:24,VISITOR_TARGETED:25,VISITOR_CART_LOCKED:26,VISITOR_SENT_LEAD:27,PREVIOUS_PAGE_URL_SIMPLE:28,REFERRER_URL_SIMPLE:29,VISITOR_HAS_WAITED_FOR:30,HAS_CHATTED:31,CHAT_HAS_AT_LEAST_ONE_OF_TAGS:32,VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP:33,VISITOR_HAS_WAITED_FOR_THE_FIRST_ANSWER:34,VISITOR_BELONGS_TO_AN_USER_EXPERIMENT_GROUP:35,TARGET_PREDICTION_CONVERSION_PROBABILITY:36,AVERAGE_WAITING_TIME:37}),c=(Object.keys(a),"https://service.giosg.com/identity/authorize");Object.keys({NOT_AVAILABLE:0,DISABLED:1,ENABLED:2})},118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.darken=t.transparentize=t.hexToRgb=void 0;var r=n(585),i=n(586);function o(e){return{red:Math.min(parseInt("".concat(e[1]).concat(e[2]),16),255),green:Math.min(parseInt("".concat(e[3]).concat(e[4]),16),255),blue:Math.min(parseInt("".concat(e[5]).concat(e[6]),16),255)}}function a(e){var t=e.toString(16);return 1===t.length?"0"+t:t}t.hexToRgb=o,t.transparentize=function(e,t){var n=o(t),r=Math.min(Math.max(1-e,0),1);return"rgba(".concat(n.red,", ").concat(n.green,", ").concat(n.blue,", ").concat(r,")")},t.darken=function(e,t){var n=(0,i.rgbToHsl)(o(t)),c=Math.min(Math.max(n.lightness-e,0),1);return function(e){return"#"+a(e.red)+a(e.green)+a(e.blue)}((0,r.hslToRgb)(n.hue,n.saturation,c))}},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),i=function(e,t,n){var i=e.data.fields[t];function o(n){var i;e.setData({fields:Object(r.a)(Object(r.a)({},e.data.fields),(i={},i[t]=n,i))})}return e.data.info.editing?[n,o]:[i,o]}},121:function(e,t,n){"use strict";function r(e,t){return!e.data.invalidFields.some((function(e){return e===t}))}function i(e,t){var n=e.data.fields[t];return""===n||void 0===n}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},123:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},138:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){return e.includes(t.type)}},139:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(67),i=n(97);function o(e,t){if(t&&("object"===Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.a)(e)}},143:function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return I}));var r=n(1),i=n(30),o=n(47),a=n(58),c=n(26),s=function(){function e(e,t){Object.defineProperty(this,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Object.defineProperty(e.prototype,"storeElement",{get:function(){var e=Object(c.e)(this.store,this.initialElement.uid);if(!e||e.type!==this.initialElement.type)throw new Error("Element is not found.");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return!!Object(c.e)(this.store,this.initialElement.uid).hidden},set:function(e){Object(c.j)(this.store,Object(r.a)(Object(r.a)({},this.storeElement),{hidden:!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClicked",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return!!this.store.data.elementClicks.find((function(t){return t===e.initialElement.uid}))}}),Object.defineProperty(e.prototype,"applyThemeStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n=this,i=null===(t=this.store.data.info.themeStyles)||void 0===t?void 0:t.find((function(t){return t.elementType===n.initialElement.type&&t.name===e}));i&&Object(c.j)(this.store,Object(r.a)(Object(r.a)({},this.storeElement),{designs:i.designs}))}}),Object.defineProperty(e.prototype,"disabled",{set:function(e){var t=this;if(e){var n=new Set(Object(r.m)(Object(r.m)([],Object(r.k)(this.store.data.disablesElements),!1),[this.initialElement.uid],!1));this.store.setData({disablesElements:Object(r.m)([],Object(r.k)(n),!1)})}else this.store.setData({disablesElements:this.store.data.disablesElements.filter((function(e){return e!==t.initialElement.uid}))})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"addEventListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;return this.store.setData({jsApiEventListeners:Object(r.m)(Object(r.m)([],Object(r.k)(this.store.data.jsApiEventListeners),!1),[{type:e,listener:t,elementUid:this.initialElement.uid}],!1)}),function(){n.store.setData({jsApiEventListeners:n.store.data.jsApiEventListeners.filter((function(e){return e.listener!==t}))})}}}),e}(),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.storeElement.label},set:function(e){Object(c.j)(this.store,Object(r.a)(Object(r.a)({},this.storeElement),{label:e}))},enumerable:!1,configurable:!0}),t}(s),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"checked",{get:function(){var e=this.store.data.fields[this.initialElement.uid];if(void 0===e)return!1;if("boolean"!=typeof e)throw new Error("Expected boolean field value.");return e},set:function(e){var t;this.store.setData({fields:Object(r.a)(Object(r.a)({},this.store.data.fields),(t={},t[this.initialElement.uid]=e,t))})},enumerable:!1,configurable:!0}),t}(s),d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),t}(s),f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"url",{get:function(){return this.storeElement.imageUrl},set:function(e){Object(c.j)(this.store,Object(r.a)(Object(r.a)({},this.storeElement),{imageUrl:e,giosgAssetUrl:void 0}))},enumerable:!1,configurable:!0}),t}(s),p=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.store.data.fields[this.initialElement.uid];if(void 0===e)return"";if("string"!=typeof e)throw new Error("Expected string field value.");return e},set:function(e){var t;this.store.setData({fields:Object(r.a)(Object(r.a)({},this.store.data.fields),(t={},t[this.initialElement.uid]=e,t))})},enumerable:!1,configurable:!0}),t}(s),b=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),t}(s),h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),t}(s),g=n(27),v=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperty(r,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.store.data.fields[this.initialElement.uid];if(void 0===e)return null;if("number"!=typeof e)throw new Error("Expected number field value.");return e>=0&&e=0&&e=0&&e=0&&e2||M(I)>3?"":" "}function V(e,t){for(;--t&&N()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return L(e,R()+(t<6&&32==F()&&32==N()))}function H(e,t){for(;N()&&e+I!==57&&(e+I!==84||47!==F()););return"/*"+L(t,E-1)+"*"+f(47===e?e:N())}function W(e){for(;!M(F());)N();return L(e,E)}function G(e){return D(function e(t,n,r,i,o,a,c,s,u){var l=0,d=0,p=c,b=0,h=0,g=0,O=1,w=1,k=1,C=0,P="",A=o,L=a,M=i,U=P;for(;w;)switch(g=C,C=N()){case 40:if(108!=g&&58==y(U,p-1)){-1!=m(U+=v(B(C),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:U+=B(C);break;case 9:case 10:case 13:case 32:U+=z(g);break;case 92:U+=V(R()-1,7);continue;case 47:switch(F()){case 42:case 47:x($(H(N(),R()),n,r),u);break;default:U+="/"}break;case 123*O:s[l++]=j(U)*k;case 125*O:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+d:h>0&&j(U)-p&&x(h>32?J(U+";",i,r,p-1):J(v(U," ","")+";",i,r,p-2),u);break;case 59:U+=";";default:if(x(M=q(U,n,r,l,d,o,s,P,A=[],L=[],p),a),123===C)if(0===d)e(U,n,M,M,A,a,p,s,L);else switch(99===b&&110===y(U,3)?100:b){case 100:case 109:case 115:e(t,M,M,i&&x(q(t,M,M,0,0,o,s,P,o,A=[],p),L),o,L,p,s,i?A:L);break;default:e(U,M,M,M,[""],L,0,s,L)}}l=d=h=0,O=k=1,P=U="",p=c;break;case 58:p=1+j(U),h=g;default:if(O<1)if(123==C)--O;else if(125==C&&0==O++&&125==(I=E>0?y(T,--E):0,S--,10===I&&(S=1,_--),I))continue;switch(U+=f(C),C*O){case 38:k=d>0?1:(U+="\f",-1);break;case 44:s[l++]=(j(U)-1)*k,k=1;break;case 64:45===F()&&(U+=B(N())),b=F(),d=p=j(P=U+=W(R())),C++;break;case 45:45===g&&2==j(U)&&(O=0)}}return a}("",null,null,null,[""],e=U(e),0,[0],e))}function q(e,t,n,r,i,o,a,c,u,l,f){for(var p=i-1,b=0===i?o:[""],g=w(b),m=0,y=0,j=0;m0?b[x]+" "+k:v(k,/&\f/g,b[x])))&&(u[j++]=_);return P(e,t,n,0===i?s:c,u,l,f)}function $(e,t,n){return P(e,t,n,c,f(I),O(e,2,-2),0)}function J(e,t,n,r){return P(e,t,n,u,O(e,0,r),O(e,r+1,-1),r)}function K(e,t){for(var n="",r=w(e),i=0;i-1&&!e.return)switch(e.type){case u:e.return=function e(t,n){switch(b(t,n)){case 5103:return a+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a+t+o+t+i+t+t;case 6828:case 4268:return a+t+i+t+t;case 6165:return a+t+i+"flex-"+t+t;case 5187:return a+t+v(t,/(\w+).+(:[^]+)/,a+"box-$1$2"+i+"flex-$1$2")+t;case 5443:return a+t+i+"flex-item-"+v(t,/flex-|-self/,"")+t;case 4675:return a+t+i+"flex-line-pack"+v(t,/align-content|flex-|-self/,"")+t;case 5548:return a+t+i+v(t,"shrink","negative")+t;case 5292:return a+t+i+v(t,"basis","preferred-size")+t;case 6060:return a+"box-"+v(t,"-grow","")+a+t+i+v(t,"grow","positive")+t;case 4554:return a+v(t,/([^-])(transform)/g,"$1"+a+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+t+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,a+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(t)-1-n>6)switch(y(t,n+1)){case 109:if(45!==y(t,n+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+o+(108==y(t,n+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch")?e(v(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==y(t,n+1))break;case 6444:switch(y(t,j(t)-3-(~m(t,"!important")&&10))){case 107:return v(t,":",":"+a)+t;case 101:return v(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===y(t,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+i+"$2box$3")+t}break;case 5936:switch(y(t,n+11)){case 114:return a+t+i+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a+t+i+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a+t+i+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a+t+i+t+t}return t}(e.value,e.length);break;case l:return K([A(e,{value:v(e.value,"@","@"+a)})],r);case s:if(e.length)return k(e.props,(function(t){switch(g(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([A(e,{props:[v(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return K([A(e,{props:[v(t,/:(plac\w+)/,":"+a+"input-$1")]}),A(e,{props:[v(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[v(t,/:(plac\w+)/,i+"input-$1")]})],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,c={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i1;)1&e&&(t+=n),e>>=1,n+=n;return t+n}),Array.prototype.findIndex||(Array.prototype.findIndex=function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i1?arguments[1]:void 0,c=a?Number(a):0;isNaN(c)&&(c=0);var s=Math.min(Math.max(c,0),i);return t.call(r,o,c)===s}}String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||(Array.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),-1!==this.indexOf(e,t)}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{value:function(e,t){var n=t||this;if(null===n)throw new TypeError("Array.prototype.flatMap called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");for(var r=[],i=Object(n),o=i.length>>>0,a=0;a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(((\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\.){3}\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b)|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function o(e){if(/^[+]?[0-9]*([ ]?\([0-9]{1,4}\))?[0-9 -]*$/.test(e)&&!/[ ]{3}|\-{2}| -|- |\)-/.exec(e)){var t=e.replace(/[ ()-]/g,"");return/^[+]?[0-9]{4,15}$/.test(t)}return!1}function a(e){return/^\-?\d*(\.\d*)?$/.test(e)}function c(e){var t=e.split(/[\s,;]+/).filter((function(e){return e}));return t.every((function(e){return function(e){try{return new URL("http://".concat(e)).hostname===e}catch(e){return!1}}(e)}))?t.join("\n"):null}function s(e){return d(e)||null!==c(e)}function u(e,t){void 0===t&&(t=!0);var n=e.split(/[\s,;]+/).filter((function(e){return e}));return n.every((function(e){return i(e)||t&&Object(r.d)(e)}))?n.join("\n"):null}function l(e,t){return void 0===t&&(t=!0),d(e)||null!==u(e,t)}function d(e){return/^\s*$/i.test(e)}},204:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={opacity:1,fontBold:!1,fontSize:14,textColor:{a:1,b:56,g:43,r:37},fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontItalic:!1,textAlignment:"center",fontUnderlined:!1,backgroundColorApplied:!1,backgroundColor:{a:0,b:255,g:255,r:255},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,shadowApplied:!1,shadowBlur:0,shadowPosX:0,shadowPosY:0,shadowSpread:0,borderApplied:!1,borderColor:{a:0,b:228,g:228,r:228},borderStyle:"solid",borderWidth:0,shadowColor:{a:0,b:255,g:87,r:115},borderRadius:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},verticalTextAlignment:"top",padding:5,backgroundImageGiosgAssetUrl:void 0}},205:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return f}));var r,i=n(1),o=n(44);function a(e,t,n,r,o){return Object(i.e)(this,void 0,void 0,(function(){var a,c,s,u;return Object(i.h)(this,(function(i){switch(i.label){case 0:if(a={cookieGuid:"giosg",kpiGuid:"giosg",branch:void 0,clientBrowser:"giosg",clientDevice:"giosg",clients:"giosg",interaction:void 0,referrer:"giosg"},!r)return[2];if(!e)throw new Error(":: Missing required parameter 'code'");c="".concat(r,"/api/kpis/").concat(e),s=":: Error while sending KPI ".concat(e),a.branch=n,a.interaction="",0!==Object.keys(o).length&&(a.interaction=JSON.stringify(o)),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(c,{method:"POST",headers:{token:t},body:JSON.stringify(a)})];case 2:if(!(u=i.sent()).ok)throw new Error(s);return[4,u.json()];case 3:return[2,i.sent()];case 4:return i.sent(),[2,Promise.reject(s)];case 5:return[2]}}))}))}function c(e,t,n,r){return Object(i.e)(this,void 0,void 0,(function(){var r,o,a;return Object(i.h)(this,(function(i){switch(i.label){case 0:if(!e)throw new Error(":: Missing required parameter 'apiKey'");if(!t)throw new Error(":: Missing required parameter 'seedId'");r={branch:t},i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch("".concat(n,"/token/").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})];case 2:if(!(o=i.sent()).ok)throw Error(":: Error getting token for seed [".concat(t,"]"));return[4,o.json()];case 3:return[2,i.sent()];case 4:return a=i.sent(),[2,Promise.reject(a)];case 5:return[2]}}))}))}function s(e,t,n){return Object(i.e)(this,void 0,void 0,(function(){var r,o;return Object(i.h)(this,(function(a){switch(a.label){case 0:return r="".concat(n,"/api/agents/?branch=").concat(e,"&include_agent_list=true"),o="Error while getting the agents availability. ".concat(e),[4,fetch(r,{method:"GET",headers:{"Content-Type":"application/json",token:"".concat(t)}}).then((function(e){return Promise.all([e,e.json()])})).then((function(e){var t=Object(i.k)(e,2),n=t[0],r=t[1];if(!n.ok)throw Error("".concat(o));return r})).catch((function(e){console.log(e)}))];case 1:return[2,a.sent()]}}))}))}function u(e){return Object(i.e)(this,void 0,void 0,(function(){var t;return Object(i.h)(this,(function(n){switch(n.label){case 0:return e&&window.whisbi?[4,c(window.whisbi._config.api.apiKey,window.whisbi._config.api.primarySeed,e)]:[3,3];case 1:return(null==(t=n.sent())?void 0:t.token)?[4,s(window.whisbi._config.api.secondarySeed?window.whisbi._config.api.secondarySeed:window.whisbi._config.api.primarySeed,t.token,e)]:[3,3];case 2:return[2,n.sent()];case 3:return[2]}}))}))}var l;function d(e){return Object(i.e)(this,void 0,void 0,(function(){var t,n;return Object(i.h)(this,(function(r){switch(r.label){case 0:return[4,c(window.whisbi._config.api.apiKey,window.whisbi._config.api.primarySeed,e)];case 1:return(null==(t=r.sent())?void 0:t.token)?(n=window.whisbi._config.api.secondarySeed?window.whisbi._config.api.secondarySeed:window.whisbi._config.api.primarySeed,[4,a(1144,t.token,n,e,"")]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))}var f=function(e,t){var n=function(e){var t,n,r,o,a,c,s,u;try{for(var l=Object(i.n)(e.views),d=l.next();!d.done;d=l.next()){var f=d.value;try{for(var p=(r=void 0,Object(i.n)(f.elements)),b=p.next();!b.done;b=p.next()){var h=b.value;try{for(var g=(a=void 0,Object(i.n)(h.clickEvents||[])),v=g.next();!v.done;v=g.next()){var m=v.value;try{for(var y=(s=void 0,Object(i.n)(m.actions||[])),O=y.next();!O.done;O=y.next()){var j=O.value;if("showWhisbiClient"===j.type)return j}}catch(e){s={error:e}}finally{try{O&&!O.done&&(u=y.return)&&u.call(y)}finally{if(s)throw s.error}}}}catch(e){a={error:e}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}}catch(e){r={error:e}}finally{try{b&&!b.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}(e);(null==n?void 0:n.landingGuid)&&(l=function(e,t,n){return Object(i.e)(this,void 0,void 0,(function(){return Object(i.h)(this,(function(i){return r?[2,r]:[2,r=new Promise((function(r,i){var a;null===(a=null==e?void 0:e.on)||void 0===a||a.call(e,"whisbiloaded",r);var c=document.createElement("script");c.onerror=i,setTimeout(i,8e3);var s="".concat(o.i,"/").concat(t,"/connect.js");n&&(s+="?".concat(n)),c.src=s,document.body.appendChild(c)}))]}))}))}(t,n.landingGuid,n.customConfig))}},206:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(1),i=n(44),o=n(68),a=function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var t,n;return Object(r.h)(this,(function(r){switch(r.label){case 0:t="".concat(i.d,"/api/pim/v1/public/orgs/").concat(e,"/products/"),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(t,{mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json"}})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:return n=r.sent(),console.error("Failed to get products",n),[2,[]];case 5:return[2]}}))}))},c=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,c;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(n="".concat(i.d,"/api/pim/v1/orgs/").concat(e,"/products/"),!(a=Object(o.a)("giosg_editor_oauth_token")))return[2,null];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json",authorization:"Bearer ".concat(a)},body:JSON.stringify({url:t})})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:return c=r.sent(),console.error("Failed to create a product",c),[2,null];case 5:return[2]}}))}))},s=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,c;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(n="".concat(i.d,"/api/pim/v1/orgs/").concat(e,"/products/").concat(t,"/"),!(a=Object(o.a)("giosg_editor_oauth_token")))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,fetch(n,{method:"DELETE",mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json",authorization:"Bearer ".concat(a)}})];case 2:return r.sent(),[3,4];case 3:return c=r.sent(),console.error("Failed to delete a product",c),[3,4];case 4:return[2]}}))}))},u=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,o;return Object(r.h)(this,(function(r){switch(r.label){case 0:n="".concat(i.d,"/api/pim/v1/public/orgs/").concat(e,"/groups/").concat(t,"/campaigns/"),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(n,{mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json"}})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:return o=r.sent(),console.error("Failed to get campaings",o),[2,[]];case 5:return[2]}}))}))}},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return M})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return x})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return P})),n.d(t,"l",(function(){return U})),n.d(t,"m",(function(){return D})),n.d(t,"n",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return h})),n.d(t,"r",(function(){return Y})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return N})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return Z})),n.d(t,"w",(function(){return g})),n.d(t,"x",(function(){return X})),n.d(t,"y",(function(){return J})),n.d(t,"z",(function(){return R})),n.d(t,"A",(function(){return K})),n.d(t,"B",(function(){return O})),n.d(t,"C",(function(){return L}));var r="-ms-",i="-moz-",o="-webkit-",a="comm",c="rule",s="decl",u="@keyframes",l=Math.abs,d=String.fromCharCode,f=Object.assign;function p(e,t){return 45^m(e,0)?(((t<<2^m(e,0))<<2^m(e,1))<<2^m(e,2))<<2^m(e,3):0}function b(e){return e.trim()}function h(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,n){return e.replace(t,n)}function v(e,t){return e.indexOf(t)}function m(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function O(e){return e.length}function j(e){return e.length}function w(e,t){return t.push(e),e}function x(e,t){return e.map(t).join("")}var k=1,_=1,S=0,C=0,E=0,I="";function T(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:k,column:_,length:a,return:""}}function P(e,t){return f(T("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return E=C2||L(E)>3?"":" "}function z(e,t){for(;--t&&A()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return R(e,F()+(t<6&&32==N()&&32==A()))}function V(e,t){for(;A()&&e+E!==57&&(e+E!==84||47!==N()););return"/*"+R(t,C-1)+"*"+d(47===e?e:A())}function H(e){for(;!L(N());)A();return R(e,C)}function W(e){return U(function e(t,n,r,i,o,a,c,s,u){var l=0,f=0,p=c,b=0,h=0,y=0,j=1,x=1,S=1,T=0,P="",R=o,L=a,M=i,U=P;for(;x;)switch(y=T,T=A()){case 40:if(108!=y&&58==m(U,p-1)){-1!=v(U+=g(D(T),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:U+=D(T);break;case 9:case 10:case 13:case 32:U+=B(y);break;case 92:U+=z(F()-1,7);continue;case 47:switch(N()){case 42:case 47:w(q(V(A(),F()),n,r),u);break;default:U+="/"}break;case 123*j:s[l++]=O(U)*S;case 125*j:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+f:-1==S&&(U=g(U,/\f/g,"")),h>0&&O(U)-p&&w(h>32?$(U+";",i,r,p-1):$(g(U," ","")+";",i,r,p-2),u);break;case 59:U+=";";default:if(w(M=G(U,n,r,l,f,o,s,P,R=[],L=[],p),a),123===T)if(0===f)e(U,n,M,M,R,a,p,s,L);else switch(99===b&&110===m(U,3)?100:b){case 100:case 108:case 109:case 115:e(t,M,M,i&&w(G(t,M,M,0,0,o,s,P,o,R=[],p),L),o,L,p,s,i?R:L);break;default:e(U,M,M,M,[""],L,0,s,L)}}l=f=h=0,j=S=1,P=U="",p=c;break;case 58:p=1+O(U),h=y;default:if(j<1)if(123==T)--j;else if(125==T&&0==j++&&125==(E=C>0?m(I,--C):0,_--,10===E&&(_=1,k--),E))continue;switch(U+=d(T),T*j){case 38:S=f>0?1:(U+="\f",-1);break;case 44:s[l++]=(O(U)-1)*S,S=1;break;case 64:45===N()&&(U+=D(A())),b=N(),f=p=O(P=U+=H(F())),T++;break;case 45:45===y&&2==O(U)&&(j=0)}}return a}("",null,null,null,[""],e=M(e),0,[0],e))}function G(e,t,n,r,i,o,a,s,u,d,f){for(var p=i-1,h=0===i?o:[""],v=j(h),m=0,O=0,w=0;m0?h[x]+" "+k:g(k,/&\f/g,h[x])))&&(u[w++]=_);return T(e,t,n,0===i?c:s,u,d,f)}function q(e,t,n){return T(e,t,n,a,d(E),y(e,2,-2),0)}function $(e,t,n,r){return T(e,t,n,s,y(e,0,r),y(e,r+1,-1),r)}function J(e,t){for(var n="",r=j(e),i=0;i-1&&!e.return)switch(e.type){case s:return void(e.return=function e(t,n,a){switch(p(t,n)){case 5103:return o+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o+t+t;case 4789:return i+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return o+t+i+t+r+t+t;case 5936:switch(m(t,n+11)){case 114:return o+t+r+g(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return o+t+r+g(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return o+t+r+g(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return o+t+r+t+t;case 6165:return o+t+r+"flex-"+t+t;case 5187:return o+t+g(t,/(\w+).+(:[^]+)/,o+"box-$1$2"+r+"flex-$1$2")+t;case 5443:return o+t+r+"flex-item-"+g(t,/flex-|-self/g,"")+(h(t,/flex-|baseline/)?"":r+"grid-row-"+g(t,/flex-|-self/g,""))+t;case 4675:return o+t+r+"flex-line-pack"+g(t,/align-content|flex-|-self/g,"")+t;case 5548:return o+t+r+g(t,"shrink","negative")+t;case 5292:return o+t+r+g(t,"basis","preferred-size")+t;case 6060:return o+"box-"+g(t,"-grow","")+o+t+r+g(t,"grow","positive")+t;case 4554:return o+g(t,/([^-])(transform)/g,"$1"+o+"$2")+t;case 6187:return g(g(g(t,/(zoom-|grab)/,o+"$1"),/(image-set)/,o+"$1"),t,"")+t;case 5495:case 3959:return g(t,/(image-set\([^]*)/,o+"$1$`$1");case 4968:return g(g(t,/(.+:)(flex-)?(.*)/,o+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o+t+t;case 4200:if(!h(t,/flex-|baseline/))return r+"grid-column-align"+y(t,n)+t;break;case 2592:case 3360:return r+g(t,"template-","")+t;case 4384:case 3616:return a&&a.some((function(e,t){return n=t,h(e.props,/grid-\w+-end/)}))?~v(t+(a=a[n].value),"span")?t:r+g(t,"-start","")+t+r+"grid-row-span:"+(~v(a,"span")?h(a,/\d+/):+h(a,/\d+/)-+h(t,/\d+/))+";":r+g(t,"-start","")+t;case 4896:case 4128:return a&&a.some((function(e){return h(e.props,/grid-\w+-start/)}))?t:r+g(g(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return g(t,/(.+)-inline(.+)/,o+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(t)-1-n>6)switch(m(t,n+1)){case 109:if(45!==m(t,n+4))break;case 102:return g(t,/(.+:)(.+)-([^]+)/,"$1"+o+"$2-$3$1"+i+(108==m(t,n+3)?"$3":"$2-$3"))+t;case 115:return~v(t,"stretch")?e(g(t,"stretch","fill-available"),n,a)+t:t}break;case 5152:case 5920:return g(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,i,o,a,c,s){return r+n+":"+i+s+(o?r+n+"-span:"+(a?c:+c-+i)+s:"")+t}));case 4949:if(121===m(t,n+6))return g(t,":",":"+o)+t;break;case 6444:switch(m(t,45===m(t,14)?18:11)){case 120:return g(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+o+(45===m(t,14)?"inline-":"")+"box$3$1"+o+"$2$3$1"+r+"$2box$3")+t;case 100:return g(t,":",":"+r)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n));case u:return J([P(e,{value:g(e.value,"@","@"+o)})],a);case c:if(e.length)return x(e.props,(function(t){switch(h(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return J([P(e,{props:[g(t,/:(read-\w+)/,":"+i+"$1")]})],a);case"::placeholder":return J([P(e,{props:[g(t,/:(plac\w+)/,":"+o+"input-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,":"+i+"$1")]}),P(e,{props:[g(t,/:(plac\w+)/,r+"input-$1")]})],a)}return""}))}}},215:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r,i=n(260),o=n(468),a=n(226),c="group-ag5ulxf3jufbccgjmtpdfnynr6pu20q71h5t",s=function(){return r||(r=function(){var e=Object(i.a)("addToCardButton",{leftOffset:18,rightOffset:18,topOffset:void 0,bottomOffset:18,xType:"stretch",yType:"bottom",height:41});e.label="ADD TO CART",e.designs.borderRadius={topLeft:5,topRight:5,bottomLeft:5,bottomRight:5},e.designs.borderWidth=0,e.designs.backgroundColor={r:115,g:87,b:255,a:1},e.designs.textColor={r:255,g:255,b:255,a:1};var t=Object(a.a)("dealName",{leftOffset:84,rightOffset:18,topOffset:18,xType:"stretch",yType:"top",width:50,height:12});t.richText=[{children:[{bold:!1,color:"rgba(115, 87, 255, 255)",fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontSize:12,isSelected:!1,italic:!1,text:"CURRENT DEAL",underline:!1}],textAlignment:"left",type:"PARAGRAPH"}];var n=Object(a.a)("productName",{leftOffset:84,rightOffset:18,topOffset:38,xType:"stretch",yType:"top",width:50,height:12});n.richText=[{children:[{bold:!0,color:"rgba(0, 0, 0, 255)",fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontSize:12,isSelected:!1,italic:!1,text:"Product example",underline:!1}],textAlignment:"left",type:"PARAGRAPH"}];var r=Object(a.a)("priceText",{leftOffset:84,rightOffset:18,topOffset:58,xType:"stretch",yType:"top",width:50,height:12});r.richText=[{children:[{bold:!0,color:"rgba(115, 87, 255, 255)",fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontSize:12,isSelected:!1,italic:!1,text:"34,90€",underline:!1}],textAlignment:"left",type:"PARAGRAPH"}];var c=Object(o.a)("productImage",{leftOffset:18,topOffset:18,xType:"left",yType:"top",width:50,height:50});return c.imageUrl="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='50' height='50' fill='%23c1c1c1' class='wp-exclude-emoji needsclick player-styles-irrelevant-15i93oi'%3E%3Cpath class='wp-exclude-emoji needsclick cls-1' d='M40.432,15.753c-.014-.025-.04-.04-.058-.062a.5.5,0,0,0-.109-.115l-16-10a.5.5,0,0,0-.53,0l-16,10a.5.5,0,0,0-.109.115c-.018.022-.044.037-.058.062A.49.49,0,0,0,7.5,16V32a.5.5,0,0,0,.235.424l16,10c.008.005.019,0,.027.008a.45.45,0,0,0,.476,0c.008-.005.019,0,.027-.008l16-10A.5.5,0,0,0,40.5,32V16A.49.49,0,0,0,40.432,15.753ZM24,6.59,39.057,16,32,20.41,16.943,11Zm-8,5L31.057,21,24,25.41,8.943,16ZM8.5,16.9l15,9.375V41.1l-15-9.375Zm31,14.821L24.5,41.1V26.277l15-9.375Z'%3E%3C/path%3E%3C/svg%3E",[e,c,t,n,r]}()),{uid:c,elements:r}}},220:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(306),i=n.n(r);function o(e){var t=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+|undefined)\)$/.exec(e);if(!t)throw new Error("Unknown color string '".concat(e,"'"));return{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3]),a:"undefined"!==t[4]?parseFloat(t[4]):1}}function a(e){var t=i()(e.r,e.g,e.b,e.a,"rgb"),n=-20,r=e.r+n,o=e.g+n,a=e.b+n;r<=0&&o<=0&&a<=0&&(n=50);var c=function(e,t){var n=i()(e),r=n.alpha();return n=(n=(n=(n=n.set("rgb.r",n.get("rgb.r")+t)).set("rgb.g",n.get("rgb.g")+t)).set("rgb.b",n.get("rgb.b")+t)).alpha(r)}(t.hex("rgba"),n).rgba();return{r:c[0],g:c[1],b:c[2],a:c[3]}}},224:function(e,t,n){"use strict";n.d(t,"f",(function(){return Z})),n.d(t,"a",(function(){return ee})),n.d(t,"c",(function(){return ne})),n.d(t,"d",(function(){return re})),n.d(t,"e",(function(){return oe})),n.d(t,"b",(function(){return ce})),n.d(t,"g",(function(){return ue})),n.d(t,"i",(function(){return le})),n.d(t,"h",(function(){return pe}));var r=n(1),i="a17cea80-e397-11e0-b51a-00163e0c01f2",o="b76acd00-cf09-11e0-8104-00163ee6f85d",a="87b0e280-ad21-11e4-aba0-00163e0c01f2",c="e8365c22-7b97-11e9-9bcf-0242ac110014",s="c72ad400-ff8a-11e4-826c-00163e0c01f2",u="6c84f108-8f10-11e7-82cd-00163ea6143a",l="fdb59924-d2e4-11e9-8f3b-0242ac110018",d="d2d94c8a-6ce7-11ea-b778-0242ac110007",f="1dc75f54-3cdf-11ea-8af8-0242ac110006",p="e5960d2c-3fe8-11e9-ac8d-0242ac110014",b="bd005a52-a924-11e9-ad7e-0242ac110017",h="4f479800-756b-11e4-a20c-00163e0c01f2",g="70cf6c00-1363-11e5-8d52-00163e0c01f2",v="bb1ba24c-2357-11eb-a56f-0242ac110023",m="32d1e468-d3f2-11eb-8fc1-0242ac11000a",y="8ec368b0-766d-11eb-bfab-0242ac110023",O="6e7cb8c6-d965-11eb-aad9-0242ac110020",j="444af3c4-d965-11eb-954d-0242ac110025",w="58841bd6-d965-11eb-b696-0242ac110027",x="bc7ba4c8-6351-11e5-b483-00163ee6cf12",k="553bef26-db97-11e9-a8a9-0242ac11000f",_="34792536-5b04-11eb-9802-0242ac110019",S="0283e0aa-5c74-11e5-bfb3-00163e1f6a22",C="02371b30-bf5c-11ea-8c4a-0242ac110014",E="e171f8ee-1c2f-11e6-a86c-00163ec8dfa6",I="6a340d14-9694-11e6-9fab-00163e75537f",T="00acf9b6-6795-11ea-a6f6-0242ac11001e",P="85f0bd46-8861-11ea-9936-0242ac11000c",A="107a9000-85b5-11e4-9878-00163e0c01f2",N="ec3a980a-d98d-11eb-a496-0242ac11000a",F="aecfed74-48c1-11e6-a6cd-00163e570d16",R="7c48640e-04a9-11ec-a460-0242ac120029",L="c8e0a9a2-11fb-11ec-8530-0242ac120024",M="c8be4000-949b-11e3-92d8-00163e0c01f2",U="d11b40ae-ff46-11eb-a82d-0242ac12001e",D="17f1175e-0456-11e9-931c-0242ac110014",B="4b704eb2-7678-11e9-b284-0242ac110020",z="31cbf9ba-8ef9-11ec-8825-0242ac120019",V="251cb586-da92-11eb-b708-0242ac110008",H="f6c2aa80-34e7-11e4-8cdb-00163e0c01f2",W="9d0fb118-a425-11eb-a9ed-0242ac110014",G="852d23c4-b4cc-11ec-81a9-0242ac120018",q="98dae558-ebd8-11e7-b6bf-00163e299b40",$="e5808f80-50a2-11e5-9c06-00163e0c01f2",J="a6a2450c-02af-11e9-8ab3-0242ac110018",K="5d86f78c-db28-11e7-802f-00163ecee92a",Y="8205cafc-2c13-11e8-b73d-0242ac110007",X=[i,o,"14580418-3a70-11e9-8a4a-0242ac11001e","5042c510-f57a-11e9-9eeb-0242ac110018","6771293c-75b4-11eb-b54a-0242ac11000c","474e33ce-bebe-11ee-aa6c-0242ac130105","6f94ce10-ba95-11ee-a76c-0242ac12000d"];function Z(e){return X.includes(e)}var Q=Object(r.m)(Object(r.m)([],Object(r.k)(X),!1),[d,c,N,F,U,D],!1);function ee(e){return Q.includes(e)}var te=Object(r.m)(Object(r.m)([],Object(r.k)(X),!1),[s,l,u,f,p,b,a,x,k,_,S,C,E,P,A,L,J],!1);function ne(e){return te.includes(e)}function re(e){return Z(e)}var ie=Object(r.m)(Object(r.m)([],Object(r.k)(X),!1),[h,g,I,T,R,K,M],!1);function oe(e){return ie.includes(e)}var ae=[c,i,o,B,z,V,H,W,G,q,a,$];function ce(e){return ae.includes(e)}var se=[m,O,j,w];function ue(e,t){return se.includes(e)||!t}function le(e){return Object(r.m)(Object(r.m)([],Object(r.k)(X),!1),[T],!1).includes(e)}var de=Object(r.m)(Object(r.m)([],Object(r.k)(X),!1),[a,v,m,y,O,j,w,Y],!1),fe=["5efb0f2a-cd01-11ec-b9ce-0242ac120018","683face4-cd01-11ec-a1a0-0242ac120005","45db99fa-cd16-11ec-bc7e-0242ac120016","e11c2066-a9c5-11ec-a5c8-0242ac120005","dd97d3d6-a9c5-11ec-b15c-0242ac120016","4af7821e-7a04-11ed-9587-0242ac12000e","444af3c4-d965-11eb-954d-0242ac110025","a33d71d6-7a13-11ed-9b26-0242ac120005","5adcc392-f77d-11ec-88a9-0242ac120019","6bf80c42-0c8a-11ec-8697-0242ac120022","68e21528-f77d-11ec-8f90-0242ac12001a","6f2eb774-f77d-11ec-be50-0242ac120027","6f8f653c-1b6c-11ea-8d91-0242ac11001f","7df79dca-f77d-11ec-99aa-0242ac12001b","68eb10a8-1fac-11ee-8e37-0242ac120009","0b410174-1fb6-11ee-b29d-0242ac120017","8e84c474-f77d-11ec-a9e7-0242ac120003","7071315e-1fac-11ee-9c9f-0242ac120009","8445d610-f77d-11ec-aff6-0242ac120003","27a3be96-caaf-11eb-93b8-0242ac110018","c1ea0cd4-ddd2-11ed-b1f7-0242ac120011","e938ea2a-ddd8-11ed-8409-0242ac120006","297f39bc-49ec-11ed-8c8a-0242ac12000e","5838d584-ddd4-11ed-bda6-0242ac120017","4ba1fdcc-1fac-11ee-ad07-0242ac12000c","e495ce72-a9c5-11ec-9b46-0242ac120006","093d79c4-ddd6-11ed-9085-0242ac120009","3d0bace0-49ec-11ed-aea9-0242ac120018","2843c666-ddb3-11ed-a10d-0242ac120017","5e875626-1fac-11ee-ae73-0242ac120017","0d131030-ddbe-11ed-b181-0242ac120019","27300cfe-dddf-11ed-98d4-0242ac120019","818dc952-1fac-11ee-a440-0242ac120017","ff21f3c2-f63c-11e9-b856-0242ac110020","22add55c-dde0-11ed-8a19-0242ac120019","0831dcc4-1fb6-11ee-a13e-0242ac120019","0d34626a-1fb5-11ee-a13f-0242ac12001c","ac6685ee-1fd2-11ee-90be-0242ac12000f","6667e2b0-ddcc-11ed-9372-0242ac12001c","3159369a-1fbd-11ee-bdeb-0242ac120009","0e87c138-1fb6-11ee-b6a4-0242ac120011","b5aebc66-1fd2-11ee-b859-0242ac120011","59b54c64-dddc-11ed-a108-0242ac12000f","0ba681d8-0a75-11eb-a712-0242ac11001b","fed9aa68-1fbe-11ee-968b-0242ac120017","395d8f90-caaf-11eb-8195-0242ac110017","c68b3d52-1fd2-11ee-a6cd-0242ac120017","415592e2-caaf-11eb-ba83-0242ac110012","ffb8c1ba-1fc0-11ee-9290-0242ac120019","d13b69d4-1fd2-11ee-a59c-0242ac12000c","3899da7c-f77d-11ec-9bc1-0242ac12001b","711a585a-caaf-11eb-9f27-0242ac110028","083a0c2c-1fc1-11ee-8778-0242ac120009","d95231c0-1fd2-11ee-a3c1-0242ac120005","03f5ecae-1fb6-11ee-aafb-0242ac120005","a591415e-dadb-11ee-875f-0242ac12001c","10a04e1c-1fc1-11ee-8b9f-0242ac12001c","61e21d22-f77d-11ec-a4e0-0242ac120019","6795114e-caaf-11eb-a154-0242ac11000b","61456ae6-caaf-11eb-9be4-0242ac11000f","770fdb9a-caaf-11eb-ae82-0242ac110027","741757d8-caaf-11eb-9b2b-0242ac110013","2a1e5010-5a7c-11ed-810a-0242ac120016","7a5fac3a-caaf-11eb-9e70-0242ac11000b","b5f29ece-5aa5-11ed-96f1-0242ac120019","5328e16c-f77d-11ec-8170-0242ac120006","bfc7ad90-5aa5-11ed-8d8a-0242ac120019","767fb71c-f77d-11ec-981a-0242ac120003","96002618-caaf-11eb-a6bd-0242ac11001d","6410b44c-cd01-11ec-b7bc-0242ac120018","1d213ad0-49ec-11ed-abd1-0242ac120018","dd7f89f2-5aa5-11ed-b764-0242ac12001b","a0780192-caaf-11eb-bc38-0242ac110024","3659a3ce-caaf-11eb-93b8-0242ac110018","6e36ec48-caaf-11eb-b08b-0242ac110013","ac570846-caaf-11eb-980b-0242ac11000e","b4b149a2-caaf-11eb-9682-0242ac110018","bd369c9e-caaf-11eb-9eaf-0242ac11000b","3e838bdc-caaf-11eb-a7ed-0242ac110021","643b8d70-caaf-11eb-81c2-0242ac110006","df21b106-cab2-11eb-a01a-0242ac11000b","5f4cb8f2-7a2b-11ed-b672-0242ac12000e","365eb220-49ec-11ed-9bb0-0242ac12000e","2776418e-0c89-11ec-9fbe-0242ac12002c","99a808c6-caaf-11eb-b279-0242ac110013","5ddafad8-caaf-11eb-8983-0242ac110013","90d1fe26-7a28-11ed-bff8-0242ac120015","bab3311e-7a10-11ed-ac8c-0242ac12000e","4e373c0e-7a12-11ed-907b-0242ac120015","d93921d2-a9c5-11ec-b0ea-0242ac120019","0f2396e8-caaf-11eb-8300-0242ac110024","0a588f70-0c8a-11ec-b184-0242ac12001e","92b54088-caaf-11eb-9408-0242ac110021","ecf74496-7a0e-11ed-9d91-0242ac12000e","6e7cb8c6-d965-11eb-aad9-0242ac110020","11cfd3f8-49ec-11ed-a202-0242ac120005","8ec368b0-766d-11eb-bfab-0242ac110023","859d64ce-7a2c-11ed-a876-0242ac120018","f4bb38c0-7a2e-11ed-acac-0242ac120006","06870f7e-7a30-11ed-819d-0242ac120005","58841bd6-d965-11eb-b696-0242ac110027","6afbc0d0-caaf-11eb-a369-0242ac110024","ba73799a-0c87-11ec-ab24-0242ac120027","e7a42a32-a9c5-11ec-8e24-0242ac120018","a9aa5c6a-5aa5-11ed-89ff-0242ac120003","5399fbd8-510a-11eb-ad00-0242ac110018","13c96310-aee8-11ee-8c43-0242ac12000a","9d18699c-caaf-11eb-994e-0242ac110012","4695e5de-aee8-11ee-8182-0242ac120009","255d1644-aee8-11ee-9713-0242ac120008","4de0d5f6-aee8-11ee-83eb-0242ac12000f","556636e0-aee8-11ee-8c43-0242ac12000a","812e7bca-aee8-11ee-8acb-0242ac120009","5ed3e5ce-aee8-11ee-9f7f-0242ac120009","88ac5386-aee8-11ee-bf01-0242ac120008","911035e2-aee8-11ee-97f3-0242ac120009","687d856c-aee8-11ee-8e92-0242ac120009","99536d82-aee8-11ee-9009-0242ac120009","9fca30ec-aee8-11ee-b27f-0242ac12000a","1c8b35d2-aee8-11ee-b367-0242ac12000d","2d33d8b2-aee8-11ee-baf9-0242ac12000d","aa099a34-aee8-11ee-bbc5-0242ac120005","b182e482-aee8-11ee-b92e-0242ac120006","b8b8c0aa-aee8-11ee-8413-0242ac120008","c0a9969a-aee8-11ee-920e-0242ac120008","c73ec656-aee8-11ee-8549-0242ac120009","cfa1f76e-aee8-11ee-b61b-0242ac120005","ff6e7834-9d89-11e9-a62f-0242ac110003"];function pe(e){return de.includes(e)||fe.includes(e)}},226:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(86),i=n(357),o=n(75),a=n(204),c=Object(o.a)((function(e){return{type:"text",get label(){return r.a.t("designStep.elementsDefaults.TextLabel")},designs:null!=e?e:a.a,autoParseLinkInTargetBlank:!0,autoParseLinks:!0,get richText(){return Object(i.a)(r.a.t("designStep.elementsDefaults.TextLabel"),null!=e?e:a.a)}}}),{width:120,height:40})},228:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},229:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(67);function i(e){var t=function(e,t){if("object"!==Object(r.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(r.a)(t)?t:String(t)}},231:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(1),i={opacity:1,shadowApplied:!0,shadowPosX:0,shadowSpread:0,borderApplied:!1,borderRadius:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},borderStyle:"solid",borderWidth:0,backgroundColorApplied:!0,backgroundImageSize:"contain",backgroundImageGiosgAssetUrl:void 0,fontBold:!0,fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontItalic:!1,textAlignment:"center",fontUnderlined:!1,shadowBlur:0,shadowPosY:0,backgroundColor:{a:1,b:255,g:87,r:115},backgroundImageApplied:!0,backgroundImage:"https://cdn.giosgusercontent.com/assets/1/5ge6U5SIp21jQr3zpW7tfun6HqcdhG.png",borderColor:{a:1,b:255,g:97,r:124},shadowColor:{a:.19,b:0,g:0,r:0},fontSize:14,textColor:{a:1,b:255,g:255,r:255}},o=Object(r.a)(Object(r.a)({},i),{backgroundImageApplied:!0,backgroundColor:{a:1,b:255,g:87,r:115},buttonSize:32,outerBorderColor:{a:1,b:255,g:161,r:177},outerBorderWidth:2,radiusLineColor:{a:1,b:255,g:255,r:255},radiusLineWidth:0,perpendicularText:!1,textDistance:65,pointerRotation:0,shadowPosX:0,shadowPosY:10,shadowBlur:15,shadowSpread:0,shadowApplied:!0}),a=Object(r.a)(Object(r.a)({},i),{borderColor:{a:1,b:255,g:161,r:177},shadowColor:{a:0,b:0,g:0,r:0},backgroundImage:void 0,backgroundImageApplied:!1,fontSize:24,imageOffsetY:50,imageOffsetX:0,imageSizeMultiplier:15}),c=Object(r.a)(Object(r.a)({},a),{backgroundColor:{a:1,b:157,g:35,r:0},textColor:{a:1,b:72,g:216,r:253}}),s=Object(r.a)(Object(r.a)({},a),{backgroundColor:{a:1,b:255,g:222,r:227},textColor:{a:1,b:225,g:87,r:115}}),u=Object(r.a)(Object(r.a)({},a),{backgroundColor:{a:1,b:248,g:200,r:209},textColor:{a:1,b:225,g:87,r:115}})},259:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return S}));var r,i=n(1),o=n(5),a=n(41),c=n(317),s=n(26),u=n(10),l=n(57),d=n(105);!function(e){e.GoToStart="Start",e.GoToEnd="End"}(r||(r={}));var f=function(e){var t=e.innerRef,n=e.onFocus;return o.b.jsx("div",{ref:t,tabIndex:0,onFocus:n})},p=function(e,t){var n=e.current;if(n){var i=n.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])");if(i.length>3)i[t===r.GoToStart?2:i.length-2].focus()}},b=function(e){var t=e.rootRef;return o.b.jsx(o.b.Fragment,null,o.b.jsx(h,{rootRef:t}),o.b.jsx(f,{innerRef:t,onFocus:function(){return p(t,r.GoToEnd)}}))},h=function(e){var t=e.rootRef;return o.b.jsx(f,{innerRef:t,onFocus:function(){return p(t,r.GoToStart)}})},g=n(42),v=n(96),m=n(157),y=function(e){var t=o.b.useCss(),n=e.message,r=e.polite,i=o.b.useRef(null);return o.b.useEffect((function(){var e=i.current;e&&(e.textContent=n)}),[n]),o.b.jsx("div",{className:t(O),ref:i,"aria-live":r?"polite":"assertive"})},O=Object(u.d)({"&&":{height:0,width:0,overflow:"hidden"}}),j=n(37),w=n(320),x=n(319),k=function(e,t,n,r,o,a,c){var s=t.arrangement.default,l=!!t.isFullHeight,d=!!t.isFullWidth;return Object(i.m)(Object(i.m)([],Object(i.k)(c?[{pointerEvents:"none"}]:[Object(u.f)(t.designs,e,n),Object(u.h)(t.designs,e)]),!1),[Object(u.c)(!a&&d,{width:"100%"}),Object(u.c)(!a&&l,{height:"100%"}),Object(u.c)(r,{position:"relative",marginLeft:"left"!==s.xType?"auto":0,marginRight:"right"!==s.xType?"auto":0,marginTop:"top"!==s.yType?"auto":0,marginBottom:"bottom"!==s.yType?"auto":0}),Object(u.n)(o),Object(u.c)(a,{transform:s.rotation?"rotate(".concat(s.rotation,"deg)"):void 0,width:"100%",height:"100%"})],!1)},_=function(e){var t;return null!==(t=e.goalUids)&&void 0!==t?t:e.goalEnabled&&void 0!==e.goalUid?[e.goalUid]:[]},S=function(e){var t,n,r,u,f,p=e.store,O=e.className,S=e.element,E=e.innerRef,I=Object(i.l)(e,["store","className","element","innerRef"]),T=o.b.useCss(),P=o.b.useRef(null),A=o.b.useRef(null),N=Object(m.a)(p,S),F=p.playerFeatures.enableResponsivePlayer,R=p.data.project.isInInvisibleViewMode;o.b.useEffect((function(){"chat_message_visitor"!==p.environment.runtime&&"chat_message_user"!==p.environment.runtime&&"on_the_task_list"!==p.environment.runtime||Object(v.b)({type:"size",height:S.arrangement.default.height})}),[S.arrangement.default.height]),o.b.useEffect((function(){Object(g.d)(p,S);var e=_(S);return e.length>0&&Object(c.a)(p,S.uid,e,void 0),function(){Object(g.c)(p,S)}}),[]);var L=!F&&!p.data.info.editing&&"chat_message_visitor"!==p.environment.runtime&&"chat_message_user"!==p.environment.runtime;o.b.useEffect((function(){if(L&&P.current){var e=P.current,t=e.offsetHeight,n=e.offsetWidth,r=e.parentElement;if(r&&p.data.project.allowScaling){if((r.offsetHeight-t)/2n?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:o,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==o(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==o(e[t])?e[t].toLowerCase():null},PI:a,TWOPI:2*a,PITHIRD:a/3,DEG2RAD:a/180,RAD2DEG:180/a},s={format:{},autodetect:[]},u=c.last,l=c.clip_rgb,d=c.type,f=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===d(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=u(e),i=!1;if(!r){i=!0,s.sorted||(s.autodetect=s.autodetect.sort((function(e,t){return t.p-e.p})),s.sorted=!0);for(var o=0,a=s.autodetect;o4?e[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},j=c.unpack,w=c.type;p.prototype.cmyk=function(){return m(this._rgb)},h.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["cmyk"])))},s.format.cmyk=O,s.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=j(e,"cmyk"),"array"===w(e)&&4===e.length)return"cmyk"}});var x=c.unpack,k=c.last,_=function(e){return Math.round(100*e)/100},S=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=x(e,"hsla"),r=k(e)||"lsa";return n[0]=_(n[0]||0),n[1]=_(100*n[1])+"%",n[2]=_(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},C=c.unpack,E=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=C(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var o,a,c=Math.min(n,r,i),s=Math.max(n,r,i),u=(s+c)/2;return s===c?(o=0,a=Number.NaN):o=u<.5?(s-c)/(s+c):(s-c)/(2-s-c),n==s?a=(r-i)/(s-c):r==s?a=2+(i-n)/(s-c):i==s&&(a=4+(n-r)/(s-c)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,o,u,e[3]]:[a,o,u]},I=c.unpack,T=c.last,P=Math.round,A=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=I(e,"rgba"),r=T(e)||"rgb";return"hsl"==r.substr(0,3)?S(E(n),r):(n[0]=P(n[0]),n[1]=P(n[1]),n[2]=P(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},N=c.unpack,F=Math.round,R=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,o,a=(t=N(t,"hsl"))[0],c=t[1],s=t[2];if(0===c)r=i=o=255*s;else{var u=[0,0,0],l=[0,0,0],d=s<.5?s*(1+c):s+c-s*c,f=2*s-d,p=a/360;u[0]=p+1/3,u[1]=p,u[2]=p-1/3;for(var b=0;b<3;b++)u[b]<0&&(u[b]+=1),u[b]>1&&(u[b]-=1),6*u[b]<1?l[b]=f+6*(d-f)*u[b]:2*u[b]<1?l[b]=d:3*u[b]<2?l[b]=f+(d-f)*(2/3-u[b])*6:l[b]=f;r=(e=[F(255*l[0]),F(255*l[1]),F(255*l[2])])[0],i=e[1],o=e[2]}return t.length>3?[r,i,o,t[3]]:[r,i,o,1]},L=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,M=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,U=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,D=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,B=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,z=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,V=Math.round,H=function(e){var t;if(e=e.toLowerCase().trim(),s.format.named)try{return s.format.named(e)}catch(e){}if(t=e.match(L)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(M)){for(var i=t.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(t=e.match(U)){for(var a=t.slice(1,4),c=0;c<3;c++)a[c]=V(2.55*a[c]);return a[3]=1,a}if(t=e.match(D)){for(var u=t.slice(1,5),l=0;l<3;l++)u[l]=V(2.55*u[l]);return u[3]=+u[3],u}if(t=e.match(B)){var d=t.slice(1,4);d[1]*=.01,d[2]*=.01;var f=R(d);return f[3]=1,f}if(t=e.match(z)){var p=t.slice(1,4);p[1]*=.01,p[2]*=.01;var b=R(p);return b[3]=+t[4],b}};H.test=function(e){return L.test(e)||M.test(e)||U.test(e)||D.test(e)||B.test(e)||z.test(e)};var W=H,G=c.type;p.prototype.css=function(e){return A(this._rgb,e)},h.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["css"])))},s.format.css=W,s.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===G(e)&&W.test(e))return"css"}});var q=c.unpack;s.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=q(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},h.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["gl"])))},p.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var $=c.unpack,J=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=$(e,"rgb"),i=r[0],o=r[1],a=r[2],c=Math.min(i,o,a),s=Math.max(i,o,a),u=s-c,l=100*u/255,d=c/(255-u)*100;return 0===u?n=Number.NaN:(i===s&&(n=(o-a)/u),o===s&&(n=2+(a-i)/u),a===s&&(n=4+(i-o)/u),(n*=60)<0&&(n+=360)),[n,l,d]},K=c.unpack,Y=Math.floor,X=function(){for(var e,t,n,r,i,o,a=[],c=arguments.length;c--;)a[c]=arguments[c];var s,u,l,d=(a=K(a,"hcg"))[0],f=a[1],p=a[2];p*=255;var b=255*f;if(0===f)s=u=l=p;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var h=Y(d/=60),g=d-h,v=p*(1-f),m=v+b*(1-g),y=v+b*g,O=v+b;switch(h){case 0:s=(e=[O,y,v])[0],u=e[1],l=e[2];break;case 1:s=(t=[m,O,v])[0],u=t[1],l=t[2];break;case 2:s=(n=[v,O,y])[0],u=n[1],l=n[2];break;case 3:s=(r=[v,m,O])[0],u=r[1],l=r[2];break;case 4:s=(i=[y,v,O])[0],u=i[1],l=i[2];break;case 5:s=(o=[O,v,m])[0],u=o[1],l=o[2]}}return[s,u,l,a.length>3?a[3]:1]},Z=c.unpack,Q=c.type;p.prototype.hcg=function(){return J(this._rgb)},h.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcg"])))},s.format.hcg=X,s.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Z(e,"hcg"),"array"===Q(e)&&3===e.length)return"hcg"}});var ee=c.unpack,te=c.last,ne=Math.round,re=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ee(e,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],c=te(e)||"auto";void 0===a&&(a=1),"auto"===c&&(c=a<1?"rgba":"rgb");var s=(r=ne(r))<<16|(i=ne(i))<<8|(o=ne(o)),u="000000"+s.toString(16);u=u.substr(u.length-6);var l="0"+ne(255*a).toString(16);switch(l=l.substr(l.length-2),c.toLowerCase()){case"rgba":return"#"+u+l;case"argb":return"#"+l+u;default:return"#"+u}},ie=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,oe=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ae=function(e){if(e.match(ie)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(oe)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},ce=c.type;p.prototype.hex=function(e){return re(this._rgb,e)},h.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hex"])))},s.format.hex=ae,s.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===ce(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var se=c.unpack,ue=c.TWOPI,le=Math.min,de=Math.sqrt,fe=Math.acos,pe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=se(e,"rgb"),i=r[0],o=r[1],a=r[2],c=le(i/=255,o/=255,a/=255),s=(i+o+a)/3,u=s>0?1-c/s:0;return 0===u?n=NaN:(n=(i-o+(i-a))/2,n/=de((i-o)*(i-o)+(i-a)*(o-a)),n=fe(n),a>o&&(n=ue-n),n/=ue),[360*n,u,s]},be=c.unpack,he=c.limit,ge=c.TWOPI,ve=c.PITHIRD,me=Math.cos,ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=be(e,"hsi"))[0],a=e[1],c=e[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*me(ge*o)/me(ve-ge*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*me(ge*(o-=1/3))/me(ve-ge*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*me(ge*(o-=2/3))/me(ve-ge*o))/3)),[255*(n=he(c*n*3)),255*(r=he(c*r*3)),255*(i=he(c*i*3)),e.length>3?e[3]:1]},Oe=c.unpack,je=c.type;p.prototype.hsi=function(){return pe(this._rgb)},h.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsi"])))},s.format.hsi=ye,s.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Oe(e,"hsi"),"array"===je(e)&&3===e.length)return"hsi"}});var we=c.unpack,xe=c.type;p.prototype.hsl=function(){return E(this._rgb)},h.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsl"])))},s.format.hsl=R,s.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=we(e,"hsl"),"array"===xe(e)&&3===e.length)return"hsl"}});var ke=c.unpack,_e=Math.min,Se=Math.max,Ce=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=ke(e,"rgb"))[0],a=e[1],c=e[2],s=_e(o,a,c),u=Se(o,a,c),l=u-s;return i=u/255,0===u?(n=Number.NaN,r=0):(r=l/u,o===u&&(n=(a-c)/l),a===u&&(n=2+(c-o)/l),c===u&&(n=4+(o-a)/l),(n*=60)<0&&(n+=360)),[n,r,i]},Ee=c.unpack,Ie=Math.floor,Te=function(){for(var e,t,n,r,i,o,a=[],c=arguments.length;c--;)a[c]=arguments[c];var s,u,l,d=(a=Ee(a,"hsv"))[0],f=a[1],p=a[2];if(p*=255,0===f)s=u=l=p;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var b=Ie(d/=60),h=d-b,g=p*(1-f),v=p*(1-f*h),m=p*(1-f*(1-h));switch(b){case 0:s=(e=[p,m,g])[0],u=e[1],l=e[2];break;case 1:s=(t=[v,p,g])[0],u=t[1],l=t[2];break;case 2:s=(n=[g,p,m])[0],u=n[1],l=n[2];break;case 3:s=(r=[g,v,p])[0],u=r[1],l=r[2];break;case 4:s=(i=[m,g,p])[0],u=i[1],l=i[2];break;case 5:s=(o=[p,g,v])[0],u=o[1],l=o[2]}}return[s,u,l,a.length>3?a[3]:1]},Pe=c.unpack,Ae=c.type;p.prototype.hsv=function(){return Ce(this._rgb)},h.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsv"])))},s.format.hsv=Te,s.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Pe(e,"hsv"),"array"===Ae(e)&&3===e.length)return"hsv"}});var Ne=18,Fe=.95047,Re=1,Le=1.08883,Me=.137931034,Ue=.206896552,De=.12841855,Be=.008856452,ze=c.unpack,Ve=Math.pow,He=function(e){return(e/=255)<=.04045?e/12.92:Ve((e+.055)/1.055,2.4)},We=function(e){return e>Be?Ve(e,1/3):e/De+Me},Ge=function(e,t,n){return e=He(e),t=He(t),n=He(n),[We((.4124564*e+.3575761*t+.1804375*n)/Fe),We((.2126729*e+.7151522*t+.072175*n)/Re),We((.0193339*e+.119192*t+.9503041*n)/Le)]},qe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ze(e,"rgb"),r=n[0],i=n[1],o=n[2],a=Ge(r,i,o),c=a[0],s=a[1],u=a[2],l=116*s-16;return[l<0?0:l,500*(c-s),200*(s-u)]},$e=c.unpack,Je=Math.pow,Ke=function(e){return 255*(e<=.00304?12.92*e:1.055*Je(e,1/2.4)-.055)},Ye=function(e){return e>Ue?e*e*e:De*(e-Me)},Xe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=$e(e,"lab"))[0],a=e[1],c=e[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(c)?r:r-c/200,r=Re*Ye(r),n=Fe*Ye(n),i=Le*Ye(i),[Ke(3.2404542*n-1.5371385*r-.4985314*i),Ke(-.969266*n+1.8760108*r+.041556*i),Ke(.0556434*n-.2040259*r+1.0572252*i),e.length>3?e[3]:1]},Ze=c.unpack,Qe=c.type;p.prototype.lab=function(){return qe(this._rgb)},h.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lab"])))},s.format.lab=Xe,s.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ze(e,"lab"),"array"===Qe(e)&&3===e.length)return"lab"}});var et=c.unpack,tt=c.RAD2DEG,nt=Math.sqrt,rt=Math.atan2,it=Math.round,ot=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=et(e,"lab"),r=n[0],i=n[1],o=n[2],a=nt(i*i+o*o),c=(rt(o,i)*tt+360)%360;return 0===it(1e4*a)&&(c=Number.NaN),[r,a,c]},at=c.unpack,ct=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=at(e,"rgb"),r=n[0],i=n[1],o=n[2],a=qe(r,i,o),c=a[0],s=a[1],u=a[2];return ot(c,s,u)},st=c.unpack,ut=c.DEG2RAD,lt=Math.sin,dt=Math.cos,ft=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=st(e,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,dt(o*=ut)*i,lt(o)*i]},pt=c.unpack,bt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=pt(e,"lch"))[0],r=e[1],i=e[2],o=ft(n,r,i),a=o[0],c=o[1],s=o[2],u=Xe(a,c,s),l=u[0],d=u[1],f=u[2];return[l,d,f,e.length>3?e[3]:1]},ht=c.unpack,gt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ht(e,"hcl").reverse();return bt.apply(void 0,n)},vt=c.unpack,mt=c.type;p.prototype.lch=function(){return ct(this._rgb)},p.prototype.hcl=function(){return ct(this._rgb).reverse()},h.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lch"])))},h.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcl"])))},s.format.lch=bt,s.format.hcl=gt,["lch","hcl"].forEach((function(e){return s.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=vt(t,e),"array"===mt(t)&&3===t.length)return e}})}));var yt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ot=c.type;p.prototype.name=function(){for(var e=re(this._rgb,"rgb"),t=0,n=Object.keys(yt);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===Ot(e)&&yt[e.toLowerCase()])return"named"}});var jt=c.unpack,wt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=jt(e,"rgb"),r=n[0],i=n[1],o=n[2];return(r<<16)+(i<<8)+o},xt=c.type,kt=function(e){if("number"==xt(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},_t=c.type;p.prototype.num=function(){return wt(this._rgb)},h.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["num"])))},s.format.num=kt,s.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===_t(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var St=c.unpack,Ct=c.type,Et=Math.round;p.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Et)},p.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:Et(t):t}))},h.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["rgb"])))},s.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=St(e,"rgba");return void 0===n[3]&&(n[3]=1),n},s.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=St(e,"rgba"),"array"===Ct(e)&&(3===e.length||4===e.length&&"number"==Ct(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var It=Math.log,Tt=function(e){var t,n,r,i=e/100;return i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*It(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*It(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*It(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*It(n),r=255),[t,n,r,1]},Pt=c.unpack,At=Math.round,Nt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=Pt(e,"rgb"),i=r[0],o=r[2],a=1e3,c=4e4,s=.4;c-a>s;){var u=Tt(n=.5*(c+a));u[2]/u[0]>=o/i?c=n:a=n}return At(n)};p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return Nt(this._rgb)},h.temp=h.kelvin=h.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["temp"])))},s.format.temp=s.format.kelvin=s.format.temperature=Tt;var Ft=c.type;p.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Ft(e)?t?(this._rgb[3]=e,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=Ne*e,new p(t,"lab").alpha(this.alpha(),!0)},p.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var Rt=c.type,Lt=Math.pow;p.prototype.luminance=function(e){if(void 0!==e&&"number"===Rt(e)){if(0===e)return new p([0,0,0,this._rgb[3]],"rgb");if(1===e)return new p([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,i){var o=t.interpolate(i,.5,"rgb"),a=o.luminance();return Math.abs(e-a)<1e-7||!n--?o:a>e?r(t,o):r(o,i)},i=(t>e?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(i.concat([this._rgb[3]]))}return Mt.apply(void 0,this._rgb.slice(0,3))};var Mt=function(e,t,n){return.2126*(e=Ut(e))+.7152*(t=Ut(t))+.0722*(n=Ut(n))},Ut=function(e){return(e/=255)<=.03928?e/12.92:Lt((e+.055)/1.055,2.4)},Dt={},Bt=c.type,zt=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(Dt[o]||r.length||(o=Object.keys(Dt)[0]),!Dt[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Bt(e)&&(e=new p(e)),"object"!==Bt(t)&&(t=new p(t)),Dt[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};p.prototype.mix=p.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return zt.apply(void 0,[this,e,t].concat(n))},p.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new p([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},p.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=Ne*e,t[1]<0&&(t[1]=0),new p(t,"lch").alpha(this.alpha(),!0)},p.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var Vt=c.type;p.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],o=r[1],a=this[i]();if(o){var c=i.indexOf(o);if(c>-1){if("string"==Vt(t))switch(t.charAt(0)){case"+":case"-":a[c]+=+t;break;case"*":a[c]*=+t.substr(1);break;case"/":a[c]/=+t.substr(1);break;default:a[c]=+t}else{if("number"!==Vt(t))throw new Error("unsupported value for Color.set");a[c]=t}var s=new p(a,i);return n?(this._rgb=s._rgb,this):s}throw new Error("unknown channel "+o+" in mode "+i)}return a},Dt.rgb=function(e,t,n){var r=e._rgb,i=t._rgb;return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var Ht=Math.sqrt,Wt=Math.pow;Dt.lrgb=function(e,t,n){var r=e._rgb,i=r[0],o=r[1],a=r[2],c=t._rgb,s=c[0],u=c[1],l=c[2];return new p(Ht(Wt(i,2)*(1-n)+Wt(s,2)*n),Ht(Wt(o,2)*(1-n)+Wt(u,2)*n),Ht(Wt(a,2)*(1-n)+Wt(l,2)*n),"rgb")},Dt.lab=function(e,t,n){var r=e.lab(),i=t.lab();return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var Gt=function(e,t,n,r){var i,o,a,c,s,u,l,d,f,b,h,g;return"hsl"===r?(a=e.hsl(),c=t.hsl()):"hsv"===r?(a=e.hsv(),c=t.hsv()):"hcg"===r?(a=e.hcg(),c=t.hcg()):"hsi"===r?(a=e.hsi(),c=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=e.hcl(),c=t.hcl()),"h"===r.substr(0,1)&&(s=(i=a)[0],l=i[1],f=i[2],u=(o=c)[0],d=o[1],b=o[2]),isNaN(s)||isNaN(u)?isNaN(s)?isNaN(u)?g=Number.NaN:(g=u,1!=f&&0!=f||"hsv"==r||(h=d)):(g=s,1!=b&&0!=b||"hsv"==r||(h=l)):g=s+n*(u>s&&u-s>180?u-(s+360):u180?u+360-s:u-s),void 0===h&&(h=l+n*(d-l)),new p([g,h,f+n*(b-f)],r)},qt=function(e,t,n){return Gt(e,t,n,"lch")};Dt.lch=qt,Dt.hcl=qt,Dt.num=function(e,t,n){var r=e.num(),i=t.num();return new p(r+n*(i-r),"num")},Dt.hcg=function(e,t,n){return Gt(e,t,n,"hcg")},Dt.hsi=function(e,t,n){return Gt(e,t,n,"hsi")},Dt.hsl=function(e,t,n){return Gt(e,t,n,"hsl")},Dt.hsv=function(e,t,n){return Gt(e,t,n,"hsv")};var $t=c.clip_rgb,Jt=Math.pow,Kt=Math.sqrt,Yt=Math.PI,Xt=Math.cos,Zt=Math.sin,Qt=Math.atan2,en=function(e,t){for(var n=e.length,r=[0,0,0,0],i=0;i.9999999&&(r[3]=1),new p($t(r))},tn=c.type,nn=Math.pow,rn=function(e){var t="rgb",n=h("#ccc"),r=0,i=[0,1],o=[],a=[0,0],c=!1,s=[],u=!1,l=0,d=1,f=!1,p={},b=!0,g=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===tn(e)&&h.brewer&&h.brewer[e.toLowerCase()]&&(e=h.brewer[e.toLowerCase()]),"array"===tn(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=c){for(var t=c.length-1,n=0;n=c[n];)n++;return n-1}return 0}(e)/(c.length-2):d!==l?(e-l)/(d-l):1,u=y(u),r||(u=m(u)),1!==g&&(u=nn(u,g)),u=a[0]+u*(1-a[0]-a[1]),u=Math.min(1,Math.max(0,u));var f=Math.floor(1e4*u);if(b&&p[f])i=p[f];else{if("array"===tn(s))for(var v=0;v=O&&v===o.length-1){i=s[v];break}if(u>O&&u2){var u=e.map((function(t,n){return n/(e.length-1)})),f=e.map((function(e){return(e-l)/(d-l)}));f.every((function(e,t){return u[t]===e}))||(y=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=f[t+1];)t++;var n=(e-f[t])/(f[t+1]-f[t]);return u[t]+n*(u[t+1]-u[t])})}}return i=[l,d],w},w.mode=function(e){return arguments.length?(t=e,j(),w):t},w.range=function(e,t){return v(e),w},w.out=function(e){return u=e,w},w.spread=function(e){return arguments.length?(r=e,w):r},w.correctLightness=function(e){return null==e&&(e=!0),f=e,j(),m=f?function(e){for(var t=O(0,!0).lab()[0],n=O(1,!0).lab()[0],r=t>n,i=O(e,!0).lab()[0],o=t+(n-t)*e,a=i-o,c=0,s=1,u=20;Math.abs(a)>.01&&u-- >0;)r&&(a*=-1),a<0?(c=e,e+=.5*(s-e)):(s=e,e+=.5*(c-e)),i=O(e,!0).lab()[0],a=i-o;return e}:function(e){return e},w},w.padding=function(e){return null!=e?("number"===tn(e)&&(e=[e,e]),a=e,w):a},w.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=s.slice(0);else if(1===t)r=[w(.5)];else if(t>1){var o=i[0],a=i[1]-o;r=on(0,t,!1).map((function(e){return w(o+e/(t-1)*a)}))}else{e=[];var u=[];if(c&&c.length>2)for(var l=1,d=c.length,f=1<=d;f?ld;f?l++:l--)u.push(.5*(c[l-1]+c[l]));else u=i;r=u.map((function(e){return w(e)}))}return h[n]&&(r=r.map((function(e){return e[n]()}))),r},w.cache=function(e){return null!=e?(b=e,w):b},w.gamma=function(e){return null!=e?(g=e,w):g},w.nodata=function(e){return null!=e?(n=h(e),w):n},w};function on(e,t,n){for(var r=[],i=eo;i?a++:a--)r.push(a);return r}var an=function(e){var t,n,r,i,o,a,c;if(2===(e=e.map((function(e){return new p(e)}))).length)t=e.map((function(e){return e.lab()})),o=t[0],a=t[1],i=function(e){var t=[0,1,2].map((function(t){return o[t]+e*(a[t]-o[t])}));return new p(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),o=n[0],a=n[1],c=n[2],i=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*a[t]+e*e*c[t]}));return new p(t,"lab")};else if(4===e.length){var s;r=e.map((function(e){return e.lab()})),o=r[0],a=r[1],c=r[2],s=r[3],i=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*c[t]+e*e*e*s[t]}));return new p(t,"lab")}}else if(5===e.length){var u=an(e.slice(0,3)),l=an(e.slice(2,5));i=function(e){return e<.5?u(2*e):l(2*(e-.5))}}return i},cn=function(e,t,n){if(!cn[n])throw new Error("unknown blend mode "+n);return cn[n](e,t)},sn=function(e){return function(t,n){var r=h(n).rgb(),i=h(t).rgb();return h.rgb(e(r,i))}},un=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};cn.normal=sn(un((function(e){return e}))),cn.multiply=sn(un((function(e,t){return e*t/255}))),cn.screen=sn(un((function(e,t){return 255*(1-(1-e/255)*(1-t/255))}))),cn.overlay=sn(un((function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))}))),cn.darken=sn(un((function(e,t){return e>t?t:e}))),cn.lighten=sn(un((function(e,t){return e>t?e:t}))),cn.dodge=sn(un((function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e}))),cn.burn=sn(un((function(e,t){return 255*(1-(1-t/255)/(e/255))})));for(var ln=cn,dn=c.type,fn=c.clip_rgb,pn=c.TWOPI,bn=Math.pow,hn=Math.sin,gn=Math.cos,vn=Math.floor,mn=Math.random,yn=Math.log,On=Math.pow,jn=Math.floor,wn=Math.abs,xn=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===o(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return kn(n,e,t)},n},kn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==o(e)&&(e=xn(e));var r=e.min,i=e.max,a=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,i];var c=[];if("c"===t.substr(0,1)&&(c.push(r),c.push(i)),"e"===t.substr(0,1)){c.push(r);for(var s=1;s 0");var u=Math.LOG10E*yn(r),l=Math.LOG10E*yn(i);c.push(r);for(var d=1;d200&&(O=!1)}for(var L={},M=0;M=360;)h-=360;a[b]=h}else a[b]=a[b]/c[b];return f/=r,new p(a,t).alpha(f>.99999?1:f,!0)},h.bezier=function(e){var t=an(e);return t.scale=function(){return rn(t)},t},h.blend=ln,h.cubehelix=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===dn(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var c=function(c){var s=pn*((e+120)/360+t*c),u=bn(i[0]+o*c,r),l=(0!==a?n[0]+c*a:n)*u*(1-u)/2,d=gn(s),f=hn(s);return h(fn([255*(u+l*(-.14861*d+1.78277*f)),255*(u+l*(-.29227*d-.90649*f)),255*(u+l*(1.97294*d)),1]))};return c.start=function(t){return null==t?e:(e=t,c)},c.rotations=function(e){return null==e?t:(t=e,c)},c.gamma=function(e){return null==e?r:(r=e,c)},c.hue=function(e){return null==e?n:("array"===dn(n=e)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,c)},c.lightness=function(e){return null==e?i:("array"===dn(e)?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),c)},c.scale=function(){return h.scale(c)},c.hue(n),c},h.mix=h.interpolate=zt,h.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(vn(16*mn()));return new p(e,"hex")},h.scale=rn,h.analyze=_n.analyze,h.contrast=function(e,t){e=new p(e),t=new p(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},h.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new p(e),t=new p(t);for(var i=Array.from(e.lab()),o=i[0],a=i[1],c=i[2],s=Array.from(t.lab()),u=s[0],l=s[1],d=s[2],f=Sn(a*a+c*c),b=Sn(l*l+d*d),h=o<16?.511:.040975*o/(1+.01765*o),g=.0638*f/(1+.0131*f)+.638,v=f<1e-6?0:180*Cn(c,a)/Tn;v<0;)v+=360;for(;v>=360;)v-=360;var m=v>=164&&v<=345?.56+En(.2*In(Tn*(v+168)/180)):.36+En(.4*In(Tn*(v+35)/180)),y=f*f*f*f,O=Sn(y/(y+1900)),j=g*(O*m+1-O),w=f-b,x=a-l,k=c-d,_=(o-u)/(n*h),S=w/(r*g);return Sn(_*_+S*S+(x*x+k*k-w*w)/(j*j))},h.distance=function(e,t,n){void 0===n&&(n="lab"),e=new p(e),t=new p(t);var r=e.get(n),i=t.get(n),o=0;for(var a in r){var c=(r[a]||0)-(i[a]||0);o+=c*c}return Math.sqrt(o)},h.limits=_n.limits,h.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(p,[null].concat(e))),!0}catch(e){return!1}},h.scales=Pn,h.colors=yt,h.brewer=Ln,h}()},315:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function i(e){var t,n,i={};try{for(var o=Object(r.n)(e.replace(/^\?/,"").split("&")),a=o.next();!a.done;a=o.next()){var c=a.value,s=Object(r.k)(c.split("="),2),u=s[0],l=s[1];u&&(i[u]=decodeURIComponent(l))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}},316:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var r=function(e,t,n){if(void 0===t)return e;switch(n){case"plus":return i(e,t);case"minus":return(parseFloat(e)-parseFloat(t)).toString();case"multiply":return(parseFloat(e)*parseFloat(t)).toString();case"divide":return(parseFloat(e)/parseFloat(t)).toString();default:return e}},i=function(e,t){return o(e)&&o(t)?(parseFloat(e)+parseFloat(t)).toString():e+t},o=function(e){return"string"==typeof e&&(!isNaN(e)&&!isNaN(parseFloat(e)))},a=function(e){return"chip"===e.type&&"Element"===e.data.segment.type},c=function(e){return"chip"===e.type&&"Variable"===e.data.segment.type},s=function(e){return"chip"===e.type&&"Operator"===e.data.segment.type},u=function(e,t){var n=e.find((function(e){return e.uid===t}));return n&&void 0!==n.value?n.value.toString():""},l=function(e,t){var n=e.find((function(e){return e.id===t}));return n?n.value||"":"[VARIABLE NOT IN CONTEXT ".concat(t,"]")},d=function(e,t,n){for(var i="",o="plus",d=0;dr},a=function(e,t){var n={start:1,middle:2,end:3,stretch:1};return n[e]-n[t]},c=function(e,t){return"end"!==e.xType?e.leftOffset-t.leftOffset:t.rightOffset-e.rightOffset},s=function(e,t){return"end"!==e.yType?e.topOffset-t.topOffset:t.bottomOffset-e.bottomOffset}},32:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s}));var r=function(e){return"start"===e?"left":"end"===e?"right":e},i=function(e){return"start"===e?"top":"end"===e?"bottom":e};function o(e){var t,n,r,i,o=function(e){return"left"===e?"start":"right"===e?"end":e}(e.xType),a=function(e){return"top"===e?"start":"bottom"===e?"end":e}(e.yType);return{type:"element",leftOffset:null!==(t=e.leftOffset)&&void 0!==t?t:["middle","start","stretch"].includes(o)?e.xPos:void 0,rightOffset:null!==(n=e.rightOffset)&&void 0!==n?n:["end"].includes(o)?-e.xPos:void 0,topOffset:null!==(r=e.topOffset)&&void 0!==r?r:["middle","start","stretch"].includes(a)?e.yPos:void 0,bottomOffset:null!==(i=e.bottomOffset)&&void 0!==i?i:["end"].includes(a)?-e.yPos:void 0,xType:o,yType:a,height:e.height,width:e.width,rotation:e.rotation,hidden:e.hidden}}var a=1e4,c=function(e){var t,n,r,i,c,s,u=e.arrangement.default,l=!!e.isFullHeight,d=!!e.isFullWidth,f=o(u);return{type:"view",width:[null!==(t=u.minWidth)&&void 0!==t?t:d?1:u.width,null!==(n=u.maxWidth)&&void 0!==n?n:d?a:u.width],height:[null!==(r=u.minHeight)&&void 0!==r?r:l?1:u.height,null!==(i=u.maxHeight)&&void 0!==i?i:l?a:u.height],xType:f.xType,yType:f.yType,topOffset:f.topOffset,bottomOffset:f.bottomOffset,leftOffset:f.leftOffset,rightOffset:f.rightOffset,rotation:f.rotation,hidden:f.hidden,isAutoMinWidth:null!==(c=u.isAutoMinWidth)&&void 0!==c&&c,isAutoMinHeight:null!==(s=u.isAutoMinHeight)&&void 0!==s&&s}};function s(e){return"view"===e.type?c(e):o(e.arrangement.default)}},320:function(e,t,n){"use strict";n.d(t,"a",(function(){return it})),n.d(t,"b",(function(){return at}));var r=n(1),i=n(5),o=n(359),a=n(41),c=n(10),s=n(57),u=n(105),l=n(58);var d=n(157),f=n(37),p=function(e,t,n,r){var i=t.designs;return Object(c.d)({padding:Object(c.m)(t)},Object(c.f)(i,e,!0),Object(c.o)(i),Object(c.g)(i,e),Object(c.j)(i,n),Object(c.i)(i,r))},b=n(19),h=n(61),g=n(121),v=n(120),m=function(e){return i.b.jsx("svg",Object(r.a)({viewBox:"0 0 12 9",version:"1.1"},e),i.b.jsx("g",{id:"🐼-Icons",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.b.jsx("g",{id:"Icon-/-Control-/-Checkbox-/-Checked",transform:"translate(-7.000000, -8.000000)",fill:"currentColor"},i.b.jsx("path",{d:"M18,11 L13,16 C12.447,16.553 11.553,16.553 11,16 L10,15 L8,13 C7.447,12.447 7.447,11.553 8,11 C8.553,10.447 9.447,10.447 10,11 L12,13 L16,9 C16.553,8.447 17.447,8.447 18,9 C18.553,9.553 18.553,10.447 18,11",id:"Path"}))))},y=function(e,t){return Object(c.d)(Object(c.f)(e,t,!1),Object(c.o)(e))},O=function(e){return Object(c.d)(Object(c.o)(e),{display:"inline-flex",position:"relative",cursor:"pointer"})},j=function(e){var t=e.fontSize+2;return Object(c.d)(Object(c.o)(e),{cursor:"pointer",display:"inline-block",marginLeft:t+Math.floor(t/4),userSelect:"none"})},w=function(e,t){var n=e.fontSize+2,r=e.borderInvalidColor,i=e.backgroundInvalidColor;return Object(c.d)({borderRadius:"10%",border:"2px solid",borderColor:Object(c.p)(e.unselectedBorderColor),backgroundColor:Object(c.p)(e.unselectedFillColor),cursor:"pointer",height:n,width:n,display:"inline-block",position:"absolute",boxSizing:"border-box",userSelect:"none"},Object(c.c)(!t,{backgroundColor:i&&Object(c.p)(i),borderColor:r&&Object(c.p)(r)}))},x=function(e,t){return Object(c.d)({margin:0,width:0,opacity:0,":checked ~ span":{borderColor:Object(c.p)(e.selectedBorderColor),backgroundColor:Object(c.p)(e.selectedFillColor)},":checked ~ span svg":{display:"block"}},t&&{":focus ~ span":{boxShadow:"0 0 0 2px ".concat(b.x)}})},k=function(e){var t=e.fontSize+2;return Object(c.d)({display:"none",width:t-6,margin:"auto",position:"absolute",top:0,bottom:0,left:0,right:0,color:Object(c.p)(e.selectedMarkColor)})},_=function(e){var t=Object(r.k)(i.b.useState(e.delay<=0),2),n=t[0],o=t[1];return i.b.useEffect((function(){e.delay>0&&window.setTimeout((function(){return o(!0)}),e.delay)}),[]),n?e.children:null},S=n(319),C=function(e){return[Object(c.f)({opacity:1},e,!1)]},E=n(148),I=n(170),T=Object(c.d)({height:"100%",width:"100%",overflow:"hidden"}),P=function(e){var t=i.b.useCss(),n=i.b.useRef(null),o=e.html;return i.b.useEffect((function(){var e,t;if(n.current){var i=(new DOMParser).parseFromString(o,"text/html"),a=i.querySelectorAll("script");try{for(var c=Object(r.n)(Array.from(a)),s=c.next();!s.done;s=c.next()){var u=s.value,l=document.createElement("script");l.type="text/javascript",l.innerText=u.innerText,u.src&&(l.src=u.src),document.head.appendChild(l),u.remove()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}n.current.innerHTML=i.body.innerHTML}}),[o]),i.b.jsx("div",{className:t(T),ref:n})},A=function(){return i.b.jsx("svg",{className:"ib-disable-style-reset",xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 17.49 10.91"},i.b.jsx("g",{id:"Layer_2","data-name":"Layer 2",fill:"currentColor"},i.b.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",fill:"currentColor"},i.b.jsx("path",{d:"M5.2,9.47a.51.51,0,0,1-.31-.11L.19,5.7A.49.49,0,0,1,0,5.31a.53.53,0,0,1,.19-.4l4.7-3.65a.49.49,0,0,1,.7.08.5.5,0,0,1-.08.7L1.31,5.31l4.2,3.26a.52.52,0,0,1,.08.71A.49.49,0,0,1,5.2,9.47Z"}),i.b.jsx("path",{d:"M12.29,9.47a.53.53,0,0,1-.4-.19A.51.51,0,0,1,12,8.57l4.19-3.26L12,2a.5.5,0,1,1,.61-.78l4.7,3.65a.54.54,0,0,1,.2.4.5.5,0,0,1-.2.39l-4.7,3.66A.5.5,0,0,1,12.29,9.47Z"}),i.b.jsx("path",{d:"M6.79,10.91l-.15,0a.5.5,0,0,1-.33-.63L9.37.35A.51.51,0,0,1,10,0a.51.51,0,0,1,.33.63L7.26,10.56A.49.49,0,0,1,6.79,10.91Z"}))))},N=function(e,t){return Object(c.d)(Object(c.f)(t,e,!0),Object(c.g)(t,e))},F=["allow-forms","allow-downloads","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation"].join(" "),R=Object(c.d)({height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#8D8C9A"}),L=n(30),M=function(e,t,n,r,i){var o=n.giosgAssetUrl&&e.environment.getFullAssetCdnUrl(n.giosgAssetUrl);return[Object(c.f)(t,e,r),Object(c.g)(t,e),Object(c.c)(!!n.imageUrl,{backgroundImage:"url(".concat(null!=o?o:n.imageUrl,")"),backgroundSize:U(n.objectFit),backgroundPosition:"center"}),r&&Object(c.j)(t,i)]};function U(e){switch(e){case"contain":return"contain";case"cover":return"cover";case"fill":return"100% 100%";case"none":return"auto";default:return Object(L.a)(e)}}var D=n(26),B=function(e,t,n,r,i,o){var a=t.shadowPosX,s=t.shadowBlur,u=t.shadowPosY,l=t.shadowSpread,d=t.shadowApplied,f=t.backgroundInvalidColor,p=t.shadowInvalidColor,b=t.borderInvalidColor;return Object(c.d)(Object(c.f)(t,e,n),Object(c.o)(t),Object(c.g)(t,e),Object(c.j)(t,i),{pointerEvents:"initial",padding:"0.5em",resize:"none"},Object(c.c)(!r,{backgroundColor:f&&Object(c.p)(f),borderColor:b&&Object(c.p)(b),boxShadow:p&&d&&"".concat(a,"px ").concat(u,"px ").concat(s,"px ").concat(l,"px ").concat(Object(c.p)(p))||void 0}),Object(c.c)("number"===o,{"::-webkit-outer-spin-button, ::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},MozAppearance:"textfield"}))};function z(e){var t=e.onClick,n=e.className;return i.b.jsx("div",{className:n,onClick:function(e){e.stopPropagation(),t()}},i.b.jsx("svg",{className:"ib-disable-style-reset",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 212.982 212.982",fill:"#7357FF"},i.b.jsx("g",{id:"Close"},i.b.jsx("path",{d:"M131.804,106.491l75.936-75.936c6.99-6.99,6.99-18.323,0-25.312\n c-6.99-6.99-18.322-6.99-25.312,0l-75.937,75.937L30.554,5.242c-6.99-6.99-18.322-6.99-25.312,0c-6.989,6.99-6.989,18.323,0,25.312\n l75.937,75.936L5.242,182.427c-6.989,6.99-6.989,18.323,0,25.312c6.99,6.99,18.322,6.99,25.312,0l75.937-75.937l75.937,75.937\n c6.989,6.99,18.322,6.99,25.312,0c6.99-6.99,6.99-18.322,0-25.312L131.804,106.491z"}))))}var V=n(44);function H(e){var t=e.size,n=e.emoteSymbol,r=e.containerElement,i=e.buttonElement,o=e.isOwnReaction;if(r&&i&&i.parentElement){for(var a=0;a<3;a++){setTimeout(d,150*a)}var c,s=((c=.5)+(1.25-c)*Math.random())*t*(Math.random()>.5?1:-1),u=10*t,l=i.parentElement.offsetHeight}function d(){var e=document.createElement("span");e.className="ib-disable-style-reset",Object.assign(e.style,{position:"absolute",bottom:"".concat(l,"px"),userSelect:"none",pointerEvents:"none",zIndex:o?1:0}),e.innerText=n;var t=[{marginLeft:"0px"},{marginLeft:"".concat(s,"px")}],i=[{transform:"scale(0.5)",opacity:1},{transform:"translateY(-".concat(u,"px) scale(3)"),opacity:0}];null==r||r.appendChild(e),e.animate(t,{duration:300,easing:"ease-in-out",direction:"alternate",iterations:1/0}),e.animate(i,{duration:1500,fill:"forwards",easing:"ease-in-out"}).addEventListener("finish",(function(){e.remove()}))}}var W=["👍","🎉","❤","😯"];function G(e){var t=e.animationContainer,n=e.emoteSymbol,o=e.className,a=e.size,c=e.orgId,s=e.interactionId,u=e.getUnpackedVisitorCid,l=i.b.useRef();return i.b.jsx("button",{className:o,onClick:function(e){return Object(r.e)(this,void 0,void 0,(function(){var i,o;return Object(r.h)(this,(function(r){switch(r.label){case 0:return e.stopPropagation(),(i=l.current)?(H({size:a,emoteSymbol:n,buttonElement:i,containerElement:t,isOwnReaction:!0}),[4,u()]):[2];case 1:return o=r.sent(),function(e,t,n,r){var i="".concat(V.d,"/api/pub/public/v1/orgs/").concat(e,"/live_reaction/").concat(t);fetch(i,{mode:"cors",method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({createdAt:(new Date).toISOString(),reaction:n,visitorId:r})}).catch((function(e){return console.error("Failed to send a reaction",e)}))}(c,s,n,o),[2]}}))}))},ref:l},n)}function q(){return i.b.jsx("svg",{height:"1em",width:"1em",className:"ib-disable-style-reset",viewBox:"0 0 5.4243832 4.8551788",version:"1.1",id:"svg1"},i.b.jsx("defs",{id:"defs1"}),i.b.jsx("g",{id:"layer1",transform:"translate(-102.20281,-139.90085)"},i.b.jsx("g",{id:"g2",transform:"matrix(0.26458333,0,0,0.26458333,102.26139,145.90051)"},i.b.jsx("path",{d:"m 14.278839,-22.675601 c -0.8559,0.0065 -1.7004,0.196447 -2.4767,0.55698 -0.7762,0.36052 -1.4661,0.88328 -2.0232997,1.53302 -0.55712,-0.64974 -1.24704,-1.1725 -2.0233,-1.53302 -0.77626,-0.360533 -1.62081,-0.550453 -2.47668,-0.55698 -0.72424,-0.0071 -1.44261,0.130342 -2.1131,0.40424 -0.67049,0.27389 -1.27961,0.67874 -1.79175,1.19088 -0.51214002,0.51214 -0.91702502,1.12129 -1.19091802,1.79178 -0.273893,0.67049 -0.41131763,1.38886 -0.40423572,2.1131 0,3.78 3.39998374,6.86002 8.54998374,11.5300204 l 1.45,1.32 1.4499997,-1.32 c 5.15,-4.6700004 8.55,-7.7500204 8.55,-11.5300204 0.0071,-0.72424 -0.1303,-1.44261 -0.4042,-2.1131 -0.2739,-0.67049 -0.6788,-1.27964 -1.1909,-1.79178 -0.5122,-0.51214 -1.1213,-0.91699 -1.7918,-1.19088 -0.6705,-0.273898 -1.3888,-0.411322 -2.1131,-0.40424 z",fill:"#ff507b",id:"path1"})),i.b.jsx("g",{id:"g1",transform:"matrix(0.26458333,0,0,0.26458333,104.98136,141.91626)"},i.b.jsx("rect",{width:"10",height:"10",rx:"5",fill:"#ffffff",id:"rect1",x:"0",y:"0"}),i.b.jsx("rect",{width:"6",height:"2",transform:"translate(2,4)",fill:"#7357ff",id:"rect2",x:"0",y:"0"}),i.b.jsx("rect",{width:"2",height:"6",transform:"translate(4,2)",fill:"#7357ff",id:"rect3",x:"0",y:"0"}))))}function $(e){var t=e.element,n=e.store,i=e.css,o=e.isDrawerOpen,a=e.emoteCount,s=t.designs,u=t.arrangement.default,l=u.width,d=u.height,f=Math.min(l,d),p=Math.max(0,.8*f),b=(a+1)*l,h=f/2,g=Math.max(0,.4*f),v=.6*g,m={display:"flex",transition:"100ms ease background",justifyContent:"center",alignItems:"center",borderRadius:"100%",width:p,height:p},y=Object(r.a)(Object(r.a)({},m),{fontSize:.8*g,cursor:"pointer",userSelect:"none",":hover":{background:"#EFEDFA"}});return function(e,t){return Object.fromEntries(Object.entries(e).map((function(e){var n=Object(r.k)(e,2),i=n[0],o=n[1];return[i,t(Object(c.d)(o))]})))}({base:[Object(c.f)(s,n,!1),Object(c.g)(s,n),{fontSize:g,fontFamily:"'Noto Color Emoji', sans-serif",display:"flex",width:l,height:d,justifyContent:"center",alignItems:"center",borderRadius:h,background:"white","&, & *":{cursor:"pointer"},":hover > div":{background:"#EFEDFA"}}],reactionDrawer:[Object(c.f)(s,n,!1),Object(c.g)(s,n),{borderRadius:h,background:"white",display:"flex",flexDirection:"column",justifyContent:"space-evenly",alignItems:"center",position:"absolute",transition:"200ms ease height, 100ms ease opacity",bottom:0,opacity:o?1:0,height:o?b:0,width:l,zIndex:1}],closeButton:Object(r.a)(Object(r.a)({},y),{"> svg":{width:v,height:v}}),innerContainer:m,emoteButton:y},i)}var J,K,Y,X=n(206),Z=function(e){return i.b.jsx("svg",Object(r.a)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:50,height:50,fill:"#c1c1c1"},e),i.b.jsx("path",{className:"cls-1",d:"M40.432,15.753c-.014-.025-.04-.04-.058-.062a.5.5,0,0,0-.109-.115l-16-10a.5.5,0,0,0-.53,0l-16,10a.5.5,0,0,0-.109.115c-.018.022-.044.037-.058.062A.49.49,0,0,0,7.5,16V32a.5.5,0,0,0,.235.424l16,10c.008.005.019,0,.027.008a.45.45,0,0,0,.476,0c.008-.005.019,0,.027-.008l16-10A.5.5,0,0,0,40.5,32V16A.49.49,0,0,0,40.432,15.753ZM24,6.59,39.057,16,32,20.41,16.943,11Zm-8,5L31.057,21,24,25.41,8.943,16ZM8.5,16.9l15,9.375V41.1l-15-9.375Zm31,14.821L24.5,41.1V26.277l15-9.375Z"}))},Q=function(e){return i.b.jsx("svg",Object(r.a)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:22,height:22},e),i.b.jsx("path",{d:"M6,5.869v4.262a1,1,0,0,0,1.555.833l3.2-2.132a1,1,0,0,0,0-1.664l-3.2-2.132A1,1,0,0,0,6,5.869Z",fill:"currentColor"}))},ee=function(e){return i.b.jsx("svg",Object(r.a)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:22,height:22},e),i.b.jsx("circle",{cx:"8",cy:"8",r:"3",fill:"currentColor",width:8,height:8}))},te=function(e,t){return Object(c.d)(Object(c.f)(e,t,!1),Object(c.g)(e,t),Object(c.o)(e),{width:"100%",height:"100%",padding:17,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box"})},ne=function(e){return Object(c.d)({width:"100%",display:"flex",alignItems:"center",fontFamily:"Nunito Sans",color:"#000000"},Object(c.c)("vertical"===e.orientation,{flexDirection:"column"}))},re=function(e){return Object(c.d)({width:"100%",display:"flex",alignItems:"flex-start",flexDirection:"column",overflow:"hidden"},Object(c.c)("vertical"===e.orientation,{alignSelf:"flex-start"}),Object(c.c)("vertical"===e.listDirection,{marginBottom:16}))},ie=Object(c.d)({maxWidth:50,maxHeight:50,objectFit:"contain",borderRadius:5,cursor:"pointer","& > path":{cursor:"pointer"}}),oe=function(e){return Object(c.d)({display:"inline-block",flexShrink:0,marginRight:16},Object(c.c)("vertical"===e.orientation,{marginRight:0,marginBottom:20}))},ae=function(e){return Object(c.d)({fontWeight:900,fontSize:14,lineHeight:"12px",letterSpacing:.2,textTransform:"uppercase",color:Object(c.p)(e)})},ce=Object(c.d)({width:"100%",display:"flex",justifyContent:"space-between",color:"#000000"}),se=Object(c.d)({display:"flex",justifyContent:"center",alignItems:"center",gap:8}),ue=function(e){var t=e.mirrorIcon,n=e.pointerEvents;return Object(c.d)({cursor:"pointer",color:"#000000","& > path":{cursor:"pointer"}},Object(c.c)(t,{transform:"scaleX(-1)"}),Object(c.c)(!n,{cursor:"auto",pointerEvents:"none"}))},le=function(e){var t,n,o,s=e.store,u=e.element,l=e.product,d=e.productsAmount,f=e.activeProductIndex,p=e.setActiveProductIndex,b=i.b.useCss(),h=Object(r.m)([],Object(r.k)(Array(Math.min(d,3)).keys()),!1);return i.b.jsx("div",{className:b(te(u.designs,s))},i.b.jsx("div",{className:b(ne(u))},i.b.jsx("a",{className:b(oe(u)),href:l.url,target:"_blank",rel:"noreferrer"},"product_example_id"===l.id?i.b.jsx(Z,{className:b(ie)}):l.image_url?i.b.jsx("img",{className:b(ie),src:l.image_url,alt:""}):null),i.b.jsx("div",{className:b(re(u))},u.callToActionText&&i.b.jsx("div",{className:b((o=u.designs.accentColor,Object(c.d)({fontWeight:800,fontSize:10,lineHeight:"12px",color:Object(c.p)(o),textTransform:"uppercase",marginBottom:8})))},u.callToActionText),i.b.jsx("div",{className:b((n=u.designs.productNameColor,Object(c.d)({fontWeight:900,fontSize:12,lineHeight:"14px",marginBottom:8,textAlign:"left",color:Object(c.p)(n)})))},l.name),l.price&&i.b.jsx("div",{className:b(ae(u.designs.accentColor))},l.price,l.currency?" "+l.currency:""))),u.buttonCallToActionText&&i.b.jsx("button",{onClick:function(){return function(){if(l.add_to_cart_script){var e=new Function(l.add_to_cart_script);try{e()}catch(e){console.error("Error occurred while runnning add to cart script")}}else l.url&&window.open(l.url,"_blank");Object(a.a)(s,u,{elementUid:u.uid,type:"click"})}()},className:b((t=u.designs,Object(c.d)({width:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"11px 24px",borderRadius:5,backgroundColor:Object(c.p)(t.accentColor),color:Object(c.p)(t.addToCartTextColor),fontFamily:"Nunito Sans",fontWeight:700,fontSize:14,lineHeight:"19px",textTransform:"uppercase",border:"none",cursor:"pointer",boxSizing:"border-box"})))},u.buttonCallToActionText),u.showControls&&d>1&&"carousel"===u.listStyle&&i.b.jsx("div",{className:b(ce),onClick:function(e){return e.stopPropagation()}},i.b.jsx(Q,{className:b(ue({mirrorIcon:!0,pointerEvents:f-1>=0})),onClick:function(){return p(f-1)}}),i.b.jsx("div",{className:b(se)},h.map((function(e,t){var n,r=0===f&&0===t,o=f===d-1&&t===h.length-1,a=0!==f&&f!==d-1&&1===t;return i.b.jsx(ee,{key:t,className:b((n=r||o||a,Object(c.d)({color:"rgba(0, 0, 0, 0.25)"},Object(c.c)(n,{color:"#000000"}))))})}))),i.b.jsx(Q,{className:b(ue({mirrorIcon:!1,pointerEvents:f+1t/2?-360+a:a},Ie=function(e,t,n){return Math.min(Math.max(e,+n),t)},Te=function(e){return e.slice(-1)[0].slice(-1)[0]+1},Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ae=function(e,t,n,r,i,o){e.beginPath(),e.moveTo(t+(r+1)*Math.cos(o),n+(r+1)*Math.sin(o)),e.lineTo(t+(i-1)*Math.cos(o),n+(i-1)*Math.sin(o)),e.closePath(),e.stroke()},Ne=function(e){var t=e.shadowColor,n=e.shadowBlur,r=e.shadowPosX,o=e.shadowPosY,a={position:"absolute",borderRadius:"50%",boxShadow:"".concat(r,"px ").concat(o,"px ").concat(n,"px rgba(").concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(t.a,")"),top:"3%",bottom:"3%",left:"3%",right:"3%"};return i.b.jsx("div",{style:a})},Fe=function(e){var t=e.width,n=e.height,r=e.data,o=e.outerBorderColor,a=e.outerBorderWidth,c=e.radiusLineColor,s=e.radiusLineWidth,u=e.textDistance,l=e.perpendicularText,d=e.prizeMap,f=e.rouletteUpdater,p=i.b.useRef(null),b={outerBorderColor:o,outerBorderWidth:a,radiusLineColor:c,radiusLineWidth:s,textDistance:u,perpendicularText:l,prizeMap:d,rouletteUpdater:f};return i.b.useEffect((function(){!function(e,t,n){var r,i,o,a,c,s=n.outerBorderColor,u=n.outerBorderWidth,l=n.radiusLineColor,d=n.radiusLineWidth,f=n.textDistance,p=n.perpendicularText,b=n.prizeMap,h=Te(b);u*=2,d*=2;var g=e.current;if(null==g?void 0:g.getContext("2d")){var v=g.getContext("2d");v.clearRect(0,0,500,500),v.strokeStyle="transparent",v.lineWidth=0;for(var m=0,y=g.width/2-10,O=y*Ie(0,100,f)/100,j=y*Ie(0,100,0)/100,w=g.width/2,x=g.height/2,k=0;k=0){var r=Math.floor(e)%t.length,i=t[r][Math.floor((null===(n=t[r])||void 0===n?void 0:n.length)/2)];A(Ee(i,Te(t),!1))}}(j,n),W(!0)}),[JSON.stringify(o)]),Object(i.d)((function(){var e;if(t&&!B){z(!0);var r=E[n][Math.floor(Math.random()*(null===(e=E[n])||void 0===e?void 0:e.length))],i=Ee(r,Te(E));R(i),ce(i)}}),[t,B,E,n,ce]),H?i.b.jsx(Re,{style:Z>0&&K!==Z?{visibility:"hidden"}:{}},i.b.jsx(Ne,{shadowBlur:l,shadowPosX:d,shadowPosY:f,shadowColor:u}),i.b.jsx(Le,{className:M?"started-spinning":"",classKey:te,startSpinningTime:re,continueSpinningTime:ie,stopSpinningTime:oe,startRotationDegrees:P,finalRotationDegrees:F,disableInitialAnimation:x},i.b.jsx(Fe,{width:"900",height:"900",data:_,outerBorderColor:c,outerBorderWidth:s,radiusLineColor:p,radiusLineWidth:b,textDistance:h,perpendicularText:g,prizeMap:E,rouletteUpdater:q})),i.b.jsx(Me,{style:v.style,src:v.src,alt:"roulette-static"})):null},De=function(e){var t=e.arrangement.default,n=Math.max(t.width,t.height),i=Object(r.k)([t.width/n,t.height/n],2),o=i[0],a=i[1];return{width:n,height:n,transform:"scale(".concat(o,", ").concat(a,")"),transformOrigin:"0 0","& > div":{width:"100%",height:"100%",maxHeight:"unset",maxWidth:"unset"}}},Be=function(e){var t=e.designs;return Object(c.d)({position:"absolute",borderRadius:"100%",left:"50%",top:"50%",transform:"translate(-50%, -50%) rotate(".concat(-e.arrangement.default.rotation,"deg)"),width:"".concat(t.buttonSize,"%"),height:"".concat(t.buttonSize,"%"),color:Object(c.p)(t.textColor),backgroundColor:Object(c.p)(t.backgroundColor),borderWidth:t.borderApplied?t.borderWidth:0,borderColor:t.borderApplied?Object(c.p)(t.borderColor):void 0,borderStyle:t.borderApplied?"solid":void 0,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.25)",zIndex:5,cursor:"pointer",pointerEvents:"auto"},Object(c.o)(t))},ze=function(){function e(e,t,n){Object.defineProperty(this,"organizationId",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"streamUrl",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"viewerId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewingEventInterval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.streamUrl||(this.streamUrl="No stream url"),this.viewerId=n||this.generateViewerId()}return Object.defineProperty(e.prototype,"generateViewerId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.m)([],Object(r.k)(Array(32)),!1).map((function(){return Math.floor(16*Math.random()).toString(16)})).join("")}}),Object.defineProperty(e.prototype,"sendEvents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(r.e)(this,void 0,void 0,(function(){var t,n,i=this;return Object(r.h)(this,(function(o){switch(o.label){case 0:return t=e.map((function(e){return Object(r.a)(Object(r.a)({},e),{vendor:"com.giosg.stream-player",category:"stream_player",visitor_id:i.viewerId,organization_id:i.organizationId})})),n={events:t},[4,fetch("https://api.giosg.com/events/v2/store/external",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})];case 1:return[2,o.sent().json()]}}))}))}}),Object.defineProperty(e.prototype,"streamLoadedEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.e)(this,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){return e=[{event_version:1,category:"stream_player",properties:["stream=".concat(this.streamUrl)],action:"load_stream",value:1}],[2,this.sendEvents(e)]}))}))}}),Object.defineProperty(e.prototype,"streamViewingEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.e)(this,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){return e=[{event_version:1,category:"stream_player",properties:["stream=".concat(this.streamUrl)],action:"view_stream",value:1}],[2,this.sendEvents(e)]}))}))}}),Object.defineProperty(e.prototype,"startStreamViewing",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.e)(this,void 0,void 0,(function(){var e=this;return Object(r.h)(this,(function(t){return this.viewingEventInterval&&this.stopStreamViewing(),this.viewingEventInterval=window.setInterval((function(){e.streamViewingEvent()}),5e3),this.streamViewingEvent(),[2]}))}))}}),Object.defineProperty(e.prototype,"stopStreamViewing",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.viewingEventInterval&&(window.clearInterval(this.viewingEventInterval),this.viewingEventInterval=void 0)}}),e}(),Ve=n(384),He=function(e,t){return[Object(c.d)(Object(c.f)(t,e,!1),Object(c.g)(t,e),{pointerEvents:"initial"})]},We=n(62),Ge=n(42),qe=function(e,t,n){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(r){return Object(Ge.b)({store:e,action:"changeview",triggerElementId:t.uid,dim3:n.viewId,actionUid:n.uid}),[2,Object(We.a)(e,n,t)]}))}))},$e=function(e,t,n,r){return Object(c.d)(Object(c.f)(t,e,n),Object(c.g)(t,e),Object(c.c)(n&&r,{":focus":{boxShadow:"0 0 0 2px ".concat(b.x),outline:"none"}}),Object(c.o)(t))},Je=function(e,t){var n=e.designs,r=n.verticalTextAlignment?{top:"0",center:"50",bottom:"100"}[n.verticalTextAlignment]:0,i=!!(n.backgroundColorApplied||n.borderApplied||n.shadowApplied)?Object(c.m)(e):void 0;return Object(c.d)({position:"absolute",width:"100%",top:"".concat(r,"%"),transform:"translateY(-".concat(r,"%)"),right:"right"===n.textAlignment?0:void 0,padding:i,lineHeight:c.a,boxSizing:"border-box"},Object(c.c)(t,{cursor:"pointer"}))},Ke=n(321),Ye=n(168),Xe=function(e,t){return Object(c.d)(Object(c.o)(e),Object(c.c)(t,{cursor:"pointer"}))},Ze=function(e,t){return Object(c.d)(Object(c.o)(e),{"&&":{textDecoration:"underline",cursor:"pointer"}},t&&{"&&":{":focus":{boxShadow:"0 0 0 2px ".concat(b.x),outline:"none"}}})},Qe=function(e,t,n,r,i){return Object(c.d)(Object(c.f)(t,e,n),Object(c.g)(t,e),Object(c.c)(n&&r,{":focus":{boxShadow:"0 0 0 2px ".concat(b.x),outline:"none"}}),i?{}:Object(c.o)(t))},et=function(e,t,n,r){var i=e.designs,o=i.verticalTextAlignment?{top:"0",center:"50",bottom:"100"}[i.verticalTextAlignment]:0,a=!!(i.backgroundColorApplied||i.borderApplied||i.shadowApplied)?Object(c.m)(e):void 0;return Object(c.d)({position:"absolute",width:"100%",top:"".concat(o,"%"),transform:"translateY(-".concat(o,"%)"),right:"right"===i.textAlignment?0:void 0,padding:a,lineHeight:c.a,boxSizing:"border-box"},Object(c.c)(n,{cursor:"pointer"}),Object(c.c)(r,{height:"100%",top:0,transform:"none",display:"flex",alignItems:Object(Ye.d)(i.verticalTextAlignment),fontSize:0,span:{overflowWrap:"normal",letterSpacing:"normal",cursor:n?"pointer":"auto"},p:{cursor:n?"pointer":"auto"}}),Object(c.c)(r&&!n&&t.isInIframe,{pointerEvents:"none","& *:not(a)":{pointerEvents:"none"}}),Object(c.c)(r,{"> span":{display:"none",width:"100%",":only-child":{display:"block"}}}))},tt=function(e,t,n,r,i){var o=i.width/i.height,a=Math.round(r*o),s=Math.round(n/o);return Object(c.d)(Object(c.f)(t,e,!1),Object(c.g)(t,e),{width:a<=n?a:n,height:s<=r?s:r,top:0,bottom:0,left:0,right:0,margin:"auto",position:"absolute",pointerEvents:"initial"})},nt=function(e){return Object(c.d)({backgroundColor:"#dcdcdc",opacity:.7,height:"100%",width:"100%",textAlign:"center",lineHeight:"".concat(e.arrangement.default.height,"px"),textTransform:"uppercase",fontFamily:"arial",color:"black",fontSize:12})},rt=n(472),it=function(e){var t,n=e.store,a=e.inViewElement,c=e.zIndex,s=e.baseProps,u=at(a.type);return i.b.jsx(_,{delay:null!==(t=a.entryDelay)&&void 0!==t?t:0},i.b.jsx(o.a,{animateOnMount:!0,key:a.uid,shown:!a.hidden,enter:a.animation,render:function(e){return i.b.jsx(u,Object(r.a)({},s,{store:n,innerRef:e,element:a,zIndex:c}))}}))},ot=Object(rt.a)({button:function(e){var t,n,o,c,b=e.element,h=e.store,g=e.elementState,v=b.description,m=b.label,y=i.b.useCss(),O=Object(r.k)(i.b.useState(!1),2),j=O[0],w=O[1],x=Object(d.a)(h,e.element),k="disabled"===x||Object(u.a)(h,b.uid),_=Object(s.b)(h,b,h.data.project.conditionalActions);return i.b.jsx(f.a,Object(r.a)({},e,{type:"button",className:y(p(h,b,j,g)),shouldClickThrough:!_,setIsOutlineEnabled:function(e){w(e)},elementProps:{"aria-label":v,"aria-disabled":k,hidden:"hidden"===x,onClick:function(){k||Object(a.a)(h,b,{elementUid:b.uid,type:"click"})},onMouseOver:function(){Object(a.a)(h,b,{elementUid:b.uid,type:"hover"})}}}),(n=(t=m).trim(),o=t.indexOf(n),c=t.length-n.length-o,l.d.repeat(o)+n+l.d.repeat(c)))},input:function(e){var t=i.b.useCss(),n=e.element,o=e.store,c=Object(r.k)(i.b.useState(!1),2),l=c[0],d=c[1],p=Object(r.k)(Object(v.a)(o,n.uid),2),b=p[0],m=p[1];void 0!==b&&"string"!=typeof b&&Object(h.b)(new Error("Expected string field value."));var y=Object(g.b)(o,n.uid),O=Object(s.b)(o,n,o.data.project.conditionalActions),j=Object(s.a)(o),w=Object(u.a)(o,n.uid);return i.b.jsx(f.a,Object(r.a)({},Object(r.a)(Object(r.a)({},e),{includeElementsIds:!1}),{type:"multiline"!==n.inputFieldType?"input":"textarea",className:t(B(o,n.designs,O||j,y,l,n.inputFieldType)),shouldClickThrough:!1,elementProps:{value:b,"giosg-autotest-valid":y.toString(),"aria-label":n.description,"aria-invalid":!y,"aria-required":n.isRequired,name:"tel"===n.inputFieldType?"phone":n.inputFieldType,autoComplete:n.inputFieldType,onClick:function(){w||Object(a.a)(o,n,{elementUid:n.uid,type:"click"})},onFocus:function(){w||Object(a.a)(o,n,{elementUid:n.uid,type:"click"})},onKeyPress:function(e){if(n.triggerElementOnEnter&&"Enter"===e.key&&!w){var t=Object(D.e)(o,n.triggerElementOnEnter);t&&Object(a.a)(o,t,{elementUid:n.uid,type:"click"})}},onInput:function(e){return m(e.target.value)},placeholder:n.placeholder,type:n.inputFieldType},setIsOutlineEnabled:function(e){d(e)}}))},view:null,radio:function(e){var t=e.element,n=e.store,o=t.designs,s=i.b.useCss(),u=Object(r.k)(i.b.useState(!1),2),l=u[0],d=u[1],p=Object(r.k)(Object(v.a)(n,t.uid,t.isRequired?void 0:""!==t.defaultValue?parseInt(t.defaultValue,10):void 0),2),b=p[0],m=p[1];void 0!==b&&"number"!=typeof b&&Object(h.b)(new Error("Expected string field value."));var y=Object(g.b)(n,t.uid),O=Array.apply(null,{length:t.columns}).map((function(e,t){return t})),j=i.b.useMemo((function(){return"".concat(t.uid,"-").concat(Math.random())}),[]);return i.b.jsx(f.a,Object(r.a)({},e,{type:"div",className:s(be(o,n,y)),shouldClickThrough:!1,elementProps:{role:"radiogroup","aria-label":t.description},setIsOutlineEnabled:function(e){d(e)}}),O.map((function(e){return i.b.jsx("div",{className:s((r=O.length,Object(c.d)({width:r>1?"".concat(100/r,"%"):"100%",display:"inline-block",verticalAlign:"top"}))),key:e},t.options.map((function(r,c){return c%O.length===e?i.b.jsx("div",{key:c},i.b.jsx("label",{className:s(ye(o))},i.b.jsx("input",{className:s(me(o,l)),checked:b===c,onChange:function(e){e.target.checked&&m(c),Object(a.a)(n,t,{elementUid:t.uid,type:"click"})},type:"radio","aria-labelledby":"".concat(t.uid,"-").concat(c,"-label"),name:j,value:r.label,"aria-required":t.isRequired,"aria-invalid":!y}),i.b.jsx("span",{className:s(ge(o,y))},i.b.jsx(pe,{className:"".concat(s(ve(o))," ib-disable-style-reset")})),i.b.jsx("div",{id:"".concat(t.uid,"-").concat(c,"-label"),className:s(he(o))},r.label))):null})));var r})))},checkbox:function(e){var t=e.element,n=e.store,o=t.designs,c=Object(r.k)(i.b.useState(!1),2),s=c[0],u=c[1],l=Object(r.k)(Object(v.a)(n,t.uid,!1),2),d=l[0],p=l[1],b=i.b.useCss();void 0!==d&&"boolean"!=typeof d&&Object(h.b)(new Error("Expected boolean field value."));var _=Object(g.b)(n,t.uid);return i.b.jsx(f.a,Object(r.a)({},e,{type:"div",className:b(y(o,n)),shouldClickThrough:!1,setIsOutlineEnabled:function(e){u(e)}}),i.b.jsx("label",{className:b(O(o))},i.b.jsx("input",{className:b(x(o,s)),onClick:function(e){e.stopPropagation()},onChange:function(e){p(e.target.checked),Object(a.a)(n,t,{elementUid:t.uid,type:"click"})},checked:d,type:"checkbox",value:t.label,title:t.description,"aria-labelledby":"".concat(t.uid,"-label")}),i.b.jsx("span",{className:b(w(o,_))},i.b.jsx(m,{className:"".concat(b(k(o))," ib-disable-style-reset")})),i.b.jsx("div",{id:"".concat(t.uid,"-label"),className:b(j(o))},t.label)))},image:function(e){var t=i.b.useCss(),n=e.element,o=e.store,l=Object(r.k)(i.b.useState(!1),2),p=l[0],b=l[1],h=Object(s.b)(o,n,o.data.project.conditionalActions),g=Object(s.a)(o),v=Object(d.a)(o,e.element),m="disabled"===v||Object(u.a)(o,n.uid);return i.b.jsx(f.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!h,className:t(c.d.apply(void 0,Object(r.m)(Object(r.m)([],Object(r.k)(M(o,n.designs,n,h||g,p)),!1),[Object(c.n)(v)],!1))),elementProps:{onClick:function(){m||Object(a.a)(o,n,{elementUid:n.uid,type:"click"})},onKeyDown:function(e){"Enter"!==e.key||m||Object(a.a)(o,n,{elementUid:n.uid,type:"click"})},role:"img","aria-label":n.description,alt:n.description,"aria-disabled":m,hidden:"hidden"===v,tabIndex:h?0:void 0},setIsOutlineEnabled:function(e){b(e)}}))},select:function(e){var t=e.element,n=e.store,o=i.b.useCss(),c=Object(r.k)(i.b.useState(!1),2),s=c[0],u=c[1],l=Object(r.k)(Object(v.a)(n,t.uid,t.isRequired?void 0:""!==t.defaultValue?parseInt(t.defaultValue,10):void 0),2),d=l[0],p=l[1],b=Object(g.b)(n,t.uid),m=(t.isRequired||!t.defaultValue)&&!!t.placeholder&&Object(g.a)(n,t.uid);return void 0!==d&&"number"!=typeof d&&Object(h.b)(new Error("Expected string field value.")),i.b.jsx(f.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!1,elementProps:{value:void 0!==d?d:-1},setIsOutlineEnabled:function(e){u(e)},className:o(xe(t.designs,n))}),i.b.jsx(we,{className:o(ke(n,t.designs,b,m,s)),element:t,isValid:b,isPlaceholderShown:!t.defaultValue,value:d,onChange:function(e){p(parseInt(e.target.value)),Object(a.a)(n,t,{elementUid:t.uid,type:"click"})}}))},text:function(e){var t=i.b.useCss(),n=e.element,o=e.store,l=e.editingMode,d=Object(r.k)(i.b.useState(!1),2),p=d[0],b=d[1],h=Object(s.b)(o,n,o.data.project.conditionalActions),g=Object(s.a)(o),v=Object(u.a)(o,n.uid),m=!!n.richText,y=n.richText,O=function(){for(var e=[],n=0;n=new Date(e.start_date)&&t li":{listStyleType:"LIST_BULLETED"===e?"disc":"decimal",background:"initial"}}:{};return Object(r.a)(Object(r.a)(Object(r.a)({},l),{'* :not([data-slate-string]="true")':l,paddingInline:"revert",marginBlock:0,textAlign:t,fontSize:0,lineHeight:1.2}),n)}(m,null!==(d=null===(u=h)||void 0===u?void 0:u.textAlignment)&&void 0!==d?d:v.textAlignment));if("li"===y){var j=h.children[0],w=i?n(s("children"in j?{}:j,i)):null===(f=v.children[0])||void 0===f?void 0:f.props.className;O="".concat(w," ").concat(O)}return t.createElement(y,Object(r.a)(Object(r.a)(Object(r.a)({},v),g),{className:O}))}}},327:function(e,t,n){"use strict";var r=n(154),i=n(91),o=n(71);function a(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function c(e,t,n){var r=[],i=Object(o.a)(e,r,n);return r.length<2?n:i+t(r)}var s=function e(t){for(var n="",r=0;r1)for(var n=1;n=100&&a.status<=299)try{var e=JSON.parse(a.responseText);i(e)}catch(e){console.info(e),o(e instanceof Error?e:new Error(""))}else a.statusText||a.responseText?o(new Error(a.statusText+": "+a.responseText)):o(new Error("Network error"))},a.onerror=function(e){return o(new Error("Network error"))},a.send(n?JSON.stringify(n):void 0)}))}var h=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,u,l,h,g,v;return Object(r.h)(this,(function(r){switch(r.label){case 0:return n=e.environment.getGiosg(),i={message:Object(f.b)(e,t.message||"Lead",!1),type:"interaction_submit"},(v={})[d.g]=Object(f.b)(e,t.title||d.a,!1),v[d.e]=t.avatarUrl,v[d.f]=t.avatarUrl,o=v,(null==n?void 0:n.api)?[4,n.api.chat.startTask(i,t.roomId,"incognito"===t.visitorType,o)]:[3,2];case 1:return r.sent(),[3,9];case 2:if(!(a=t.roomId))throw new Error("StartTask action without roomId is not supported in '".concat(e.environment.runtime,"' runtime"));if("incognito"===t.visitorType);else{if("current"===t.visitorType)throw new Error("StartTask action with current visitor is not supported in '".concat(e.environment.runtime,"' runtime"));Object(c.a)(t.visitorType)}return s=e.data.info.organizationUid,u=e.data.info.api.interactionPlayerChatOrigin,[4,b("".concat(u,"/api/v5/public/orgs/").concat(s,"/auth"),"POST",{})];case 3:return l=r.sent(),[4,b("".concat(u,"/api/v5/public/orgs/").concat(l.organization_id,"/rooms/").concat(a,"/visitors"),"POST",{id:l.visitor_id},l.access_token)];case 4:return h=r.sent(),[4,b("".concat(u,"/api/v5/public/orgs/").concat(l.organization_id,"/rooms/").concat(a,"/visitors/").concat(h.id,"/chats"),"POST",{chat_type:"task"},l.access_token)];case 5:return g=r.sent(),t.title||t.avatarUrl?[4,Object(p.h)("".concat(u,"/giosg_api/visitor/").concat(h.id,"/").concat(a,"/"),{data:o})]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,b("".concat(u,"/api/v5/public/visitors/").concat(h.id,"/chats/").concat(g.id,"/messages"),"POST",i,l.access_token)];case 8:r.sent(),r.label=9;case 9:return[2]}}))}))},g=n(317),v=function(e,t,n){return Object(r.e)(void 0,void 0,void 0,(function(){var i,a,d,f,b,v,m,y,O,j;return Object(r.h)(this,(function(w){switch(w.label){case 0:w.trys.push([0,45,46,47]),i=Object(r.n)(t),a=i.next(),w.label=1;case 1:if(a.done)return[3,44];d=a.value,w.label=2;case 2:return w.trys.push([2,42,,43]),f=n.uid,"changeview"!==d.type?[3,4]:(Object(o.b)({store:e,action:"changeview",triggerElementId:f,dim3:d.viewId,actionUid:d.uid}),[4,Object(u.a)(e,d,n)]);case 3:return w.sent(),[3,41];case 4:return"url"!==d.type?[3,6]:(Object(o.b)({store:e,action:"url",triggerElementId:f,actionUid:d.uid}),[4,Object(u.q)(e,d,n)]);case 5:return w.sent(),[3,41];case 6:return"delay"!==d.type?[3,8]:(Object(o.b)({store:e,action:"delay",triggerElementId:f,value:d.delayMs,actionUid:d.uid}),[4,Object(u.c)(e,d,n)]);case 7:return w.sent(),[3,41];case 8:return"localstorageflag"!==d.type?[3,10]:[4,Object(u.h)(e,d,n)];case 9:return w.sent(),[3,41];case 10:return"hubformdata"!==d.type?[3,12]:(Object(o.b)({store:e,action:"hubformdata",triggerElementId:f,actionUid:d.uid}),[4,Object(u.g)(e,d,n)]);case 11:return w.sent(),[3,41];case 12:return"formdata"!==d.type?[3,14]:(Object(o.b)({store:e,action:"formdata",triggerElementId:f,actionUid:d.uid}),[4,Object(u.e)(e,d,n)]);case 13:return w.sent(),[3,41];case 14:return"giosgprocessor"!==d.type?[3,16]:(Object(o.b)({store:e,action:"leadform",triggerElementId:f,actionUid:d.uid}),[4,Object(u.f)(e,d,n)]);case 15:return w.sent(),[3,41];case 16:return"openchat"!==d.type?[3,18]:(Object(o.b)({store:e,action:"openchat",triggerElementId:f,actionUid:d.uid}),[4,Object(u.i)(e,d,n)]);case 17:return w.sent(),[3,41];case 18:return"closechat"!==d.type?[3,20]:(Object(o.b)({store:e,action:"closechat",triggerElementId:f,actionUid:d.uid}),[4,Object(u.b)(e,d,n)]);case 19:return w.sent(),[3,41];case 20:return"runjs"!==d.type?[3,22]:(Object(o.b)({store:e,action:"runjs",triggerElementId:f,actionUid:d.uid}),[4,Object(u.j)(e,d,n)]);case 21:return w.sent(),[3,41];case 22:return"showhide"!==d.type?[3,24]:((b=d.targetUid&&Object(p.e)(e,d.targetUid))&&"view"!==b.type&&(v="show"===d.action||"toggle"===d.action&&b.hidden?"showelement":"hideelement",Object(o.b)({store:e,action:v,triggerElementId:f,actionUid:d.uid})),[4,Object(u.n)(e,d,n)]);case 23:return w.sent(),[3,41];case 24:return"exit"!==d.type?[3,26]:(Object(o.b)({store:e,action:"exit",triggerElementId:f,actionUid:d.uid}),[4,Object(u.d)(e)]);case 25:return w.sent(),[3,41];case 26:return"uploadFile"!==d.type?[3,28]:(Object(o.b)({store:e,action:"uploadFile",triggerElementId:f,actionUid:d.uid}),[4,Object(u.p)(e,d,n)]);case 27:return w.sent(),[3,41];case 28:return"starttask"!==d.type?[3,30]:(Object(o.b)({store:e,action:"starttask",triggerElementId:f,actionUid:d.uid}),[4,h(e,d)]);case 29:return w.sent(),[3,41];case 30:return"startcall"!==d.type?[3,32]:(Object(o.b)({store:e,action:"startcall",triggerElementId:f,actionUid:d.uid,dim4:d.kind}),[4,l(e,d)]);case 31:return w.sent(),[3,41];case 32:return"setdatafield"!==d.type?[3,34]:(Object(o.b)({store:e,action:"setdatafield",triggerElementId:f,actionUid:d.uid}),[4,Object(u.l)(e,d,n)]);case 33:return w.sent(),[3,41];case 34:return"setVisitorVariable"!==d.type?[3,36]:(Object(o.b)({store:e,action:"setVisitorVariable",triggerElementId:f,actionUid:d.uid}),[4,Object(u.m)(e,d,n)]);case 35:return w.sent(),[3,41];case 36:return"customaction"!==d.type?[3,38]:(Object(o.b)({store:e,action:"customaction",triggerElementId:f,actionUid:d.uid}),[4,Object(u.k)(e,d,n)]);case 37:return w.sent(),[3,41];case 38:return"showWhisbiClient"!==d.type?[3,40]:(Object(o.b)({store:e,action:"showWhisbiClient",triggerElementId:f,actionUid:d.uid}),[4,Object(u.o)(e,d,n)]);case 39:return w.sent(),[3,41];case 40:Object(c.a)(d),w.label=41;case 41:return d.goalUids&&Object(g.a)(e,f,d.goalUids,d.uid),[3,43];case 42:return(m=w.sent())instanceof Error&&(e.setData({error:m.message}),console.error("Action failed ".concat(d.type),d,m),Object(s.c)(m)),[3,43];case 43:return a=i.next(),[3,1];case 44:return[3,47];case 45:return y=w.sent(),O={error:y},[3,47];case 46:try{a&&!a.done&&(j=i.return)&&j.call(i)}finally{if(O)throw O.error}return[7];case 47:return[2]}}))}))},m=n(89),y=function(e,t){return void 0!==e&&void 0!==t&&e.toString()===t.toString()},O=function(e,t){return void 0!==e&&void 0!==t&&parseFloat(e.toString())>parseFloat(t.toString())},j=function(e,t){return void 0!==e&&void 0!==t&&parseFloat(e.toString())>=parseFloat(t.toString())},w=function(e,t){return void 0!==e&&void 0!==t&&parseFloat(e.toString())0)||("email"===t.inputFieldType?Object(k.d)(n):"tel"!==t.inputFieldType||Object(k.g)(n))));case"radio":case"select":return(void 0===n||"number"==typeof n)&&(void 0===n?!t.isRequired:n>=0&&n<=t.options.length);default:Object(c.a)(t)}},T=function(e,t,n){if("localstorageflag"===n.type){if(n.flagId){var r=!!Object(_.a)("local").getItem(Object(p.g)(n.flagId));if("set"===n.mustBe)return r;if("unset"===n.mustBe)return!r;Object(c.a)(n.mustBe)}}else{if("dataFieldValueEq"===n.type)return!!n.fieldName&&t.dataFields[n.fieldName]===n.targetValue;if("dataFieldValueNotEq"===n.type)return!!n.fieldName&&t.dataFields[n.fieldName]!==n.targetValue;if("viewvalid"===n.type)return function(e,t,n,r){return n.elements.map((function(n){return"input"!==n.type&&"radio"!==n.type&&"select"!==n.type||C(e,I(t,n),n.uid,r)})).every((function(e){return!!e}))}(e,t,Object(p.d)(e),n.highlightTarget);if("elementclicked"===n.type){var i=!n.wasClicked;if(!(a=n.targetId))return!1;if(l=Object(p.e)(e,a)){var o=function(e,t,n){var r=!!e.data.elementClicks.find((function(e){return e===t.uid}));return!(!n||r)||!(n||!r)}(e,l,i);return C(e,o,l.uid,!1)}return!1}if("targetId"in n&&"targetValue"in n){var a=n.targetId,s=n.targetValue,u=n.highlightTarget;if(a){var l,d=(l=Object(p.e)(e,a))?function(e,t){var n=e.fields[t.uid];return"radio"===t.type||"select"===t.type?"number"!=typeof n?"":n.toString():"checkbox"===t.type?"boolean"!=typeof n&&void 0!==n?"":n?"true":"false":"input"===t.type?"string"!=typeof n?"":n:""}(t,l):"";if(l){if("valuepresent"===n.type)return C(e,!Object(S.a)(e,l.uid),a,u);var f;if("valueeq"===n.type)return"radio"===l.type||"select"===l.type?(f=l.options.findIndex((function(e){return e.id===s})))<0||C(e,E(d,f.toString()),a,u):C(e,E(d,s),a,u);if("valuenoteq"===n.type&&s)return"radio"===l.type||"select"===l.type?(f=l.options.findIndex((function(e){return e.id===s})))<0||C(e,!E(d,f.toString()),a,u):C(e,!E(d,s),a,u);if("inputvalid"===n.type){if("input"===l.type||"radio"===l.type||"select"===l.type)return C(e,I(t,l),a,u)}else if("spinResult"===n.type){if("spinner"===l.type){o=l.resultSectionId===n.targetValue;return C(e,o,l.uid,u)}}else if("spinsLeft"===n.type){if("spinner"===l.type){var b=t.fields[l.uid];o=l.numberOfSpins-b===parseInt(n.targetValue,10);return C(e,o,l.uid,u)}}else if("spinsCount"===n.type&&"spinner"===l.type){o=(b=t.fields[l.uid])===parseInt(n.targetValue,10);return C(e,o,l.uid,u)}}}}else Object(c.a)(n.type)}return!0},P=n(316),A=function(e,t){var n=e.find((function(e){return e.uid===t}));if(n&&void 0!==n.value)return n.value},N=function(e,t){var n=e.find((function(e){return e.id===t}));return n?n.value:""},F=n(27);function R(e,t,n){return Object(r.e)(this,void 0,void 0,(function(){var c,s,u,l,d,f,b,h,g,k,_,S,C,E,I,R,M,U,D;return Object(r.h)(this,(function(B){switch(B.label){case 0:c=Object(p.d)(e),s=!!e.data.project.isInInvisibleViewMode,u=Object(i.a)(e,c),l=Object(r.m)(Object(r.m)([c],Object(r.k)(c.elements),!1),Object(r.k)(u),!1),n.forEach((function(t){e.data.jsApiEventListeners.filter((function(e){return e.type===t.type&&e.elementUid===t.elementUid})).forEach((function(e){e.listener()}))})),d=l.flatMap((function(e){var t;return"view"===e.type&&s?[]:(null!==(t=e.clickEvents)&&void 0!==t?t:[]).map((function(t){var n,i,o;return{events:(n=t.conditions,i=e.uid,o={elementId:i,uid:Object(F.d)(),type:"elementClickEvent"},Object(r.m)([o],Object(r.k)(n),!1)),actions:t.actions,variables:[]}}))})),f=L(c,e.data.project.conditionalActions||[]),b=Object(r.m)(Object(r.m)([],Object(r.k)(d),!1),Object(r.k)(f),!1),h={dataFields:Object(r.a)({},e.data.dataFields),fields:Object(r.a)({},e.data.fields),events:n},B.label=1;case 1:B.trys.push([1,8,9,10]),g=Object(r.n)(b),k=g.next(),B.label=2;case 2:return k.done?[3,7]:(_=k.value,S=_.events,C=_.actions,E=_.variables,0===S.length||0===C.length?[3,6]:function(e,t,n,i){var o,a,c=Object(m.c)(e),s=Object(P.a)(i,c);s.forEach((function(t){return e.data.customVariables[t.id]===t.value}));var u=function(n){if("elementClickEvent"===n.type){if(!t.events.some((function(e){return"click"===e.type&&e.elementUid===n.elementId})))return{value:!1}}else if("elementHoverEvent"===n.type){if(!t.events.some((function(e){return"hover"===e.type&&e.elementUid===n.elementId})))return{value:!1}}else if("elementValueEquals"===n.type){var r=A(c,n.elementId);if(!y(r,n.value))return{value:!1}}else if("elementValueEqualsAnotherElement"===n.type){r=A(c,n.elementId);var i=A(c,n.targetElementId);if(!y(r,i))return{value:!1}}else if("elementValueGreaterThan"===n.type){r=A(c,n.elementId);if(!O(r,n.value))return{value:!1}}else if("elementValueGreaterThanAnotherElement"===n.type){r=A(c,n.elementId),i=A(c,n.targetElementId);if(!O(r,i))return{value:!1}}else if("elementValueGreaterThanOrEqual"===n.type){r=A(c,n.elementId);if(!j(r,n.value))return{value:!1}}else if("elementValueGreaterThanOrEqualAnotherElement"===n.type){r=A(c,n.elementId),i=A(c,n.targetElementId);if(!j(r,i))return{value:!1}}else if("elementValueLessThan"===n.type){r=A(c,n.elementId);if(!w(r,n.value))return{value:!1}}else if("elementValueLessThanAnotherElement"===n.type){r=A(c,n.elementId),i=A(c,n.targetElementId);if(!w(r,i))return{value:!1}}else if("elementValueLessThanOrEqual"===n.type){r=A(c,n.elementId);if(!x(r,n.value))return{value:!1}}else if("elementValueLessThanOrEqualAnotherElement"===n.type){r=A(c,n.elementId),i=A(c,n.targetElementId);if(!x(r,i))return{value:!1}}else if("elementValueEqualsVariable"===n.type){r=A(c,n.elementId);var o=N(s,n.variableId);if(!y(r,o))return{value:!1}}else{if(!T(e,t,n))return{value:!1}}};try{for(var l=Object(r.n)(n),d=l.next();!d.done;d=l.next()){var f=u(d.value);if("object"==typeof f)return f.value}}catch(e){o={error:e}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return!0}(e,h,S,E)?h.events.filter((function(e){return"click"===e.type})).length>0?(I=C.filter((function(e){return"url"===e.type})),R="button"===t.type||"text"===t.type?t.label:void 0,[4,Object(a.a)({type:"interactiondesigner:click",interactionId:e.data.info.interactionUuid,elementId:t.uid,elementType:t.type,elementName:t.name,elementLabel:R,clickHistory:e.data.elementClicks,urlActions:I.map((function(e){return{type:e.urlType,targetUrl:e.targetUrl}}))})]):[3,4]:[3,6]);case 3:B.sent(),e.setData({elementClicks:Object(r.m)(Object(r.m)([],Object(r.k)(e.data.elementClicks),!1),[t.uid],!1)}),e.setData({clicks:Object(r.m)(Object(r.m)([],Object(r.k)(e.data.clicks),!1),[t.name],!1)}),Object(o.b)({store:e,action:"events",triggerElementId:t.uid}),B.label=4;case 4:return[4,v(e,C,t)];case 5:B.sent(),B.label=6;case 6:return k=g.next(),[3,2];case 7:return[3,10];case 8:return M=B.sent(),U={error:M},[3,10];case 9:try{k&&!k.done&&(D=g.return)&&D.call(g)}finally{if(U)throw U.error}return[7];case 10:return[2]}}))}))}var L=function(e,t){var n=[];return t.forEach((function(e){var t=[[]];e.conditionGroups.forEach((function(e){var n;"OR"===(null!==(n=e.operator)&&void 0!==n?n:"AND")&&t.push([]);var r=t.length>0?t.length-1:0;e.conditions.forEach((function(e){"OR"===e.operator?(t.push(t[r].slice()),r++,t[r].pop(),t[r].push(e.condition)):t[r].push(e.condition)}))})),t.forEach((function(t){n.push({events:t,actions:e.actions,variables:e.customVariables})}))})),n};function M(e,t,n){if("click"===n.type){Object(o.b)({store:e,action:"click",triggerElementId:t.uid});var r=e.data.project.workflowUid,i="button"===t.type&&t.label?t.label:t.name;Object(o.a)({store:e,workflowUid:r,action:"".concat(t.type," | ").concat(i),dim2:t.uid})}R(e,t,[n]).catch((function(e){console.log("Error while running events",t,e)}))}},42:function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(1),i=n(363);var o=function(e){return!(e.data.info.editing||"advert"===e.environment.runtime)},a=function(e){void 0===e&&(e=!1);var t="".concat(window.location.hostname).concat(window.location.pathname);return e||(t+=window.location.search),t=(t=t.replace(/^www\./i,"")).replace(/\/$/,"")},c=function(e,t){if(e.reportingPageloadFlag&&0===e.data.reportingSequenceNumber||!e.reportingPageloadFlag){!function(e){e.setData({reportingSequenceNumber:++e.data.reportingSequenceNumber})}(e);var n=t.uid;u({store:e,action:"showview",triggerElementId:n});var i=e.data.project.workflowUid;if(i){var o={workflowUid:i,dim2:n};l(Object(r.a)(Object(r.a)({},o),{store:e,action:"".concat(t.type," | ").concat(e.currentView.name)}))}}e.reportingPageloadFlag&&(e.reportingPageloadFlag=!1)},s=function(e,t){u({store:e,action:"hideview",triggerElementId:t.uid})};function u(e){var t=e.store,n=e.value,a=e.action,c=e.triggerElementId,s=e.dim3,u=e.dim4,l=e.actionUid,d=e.workflowUid;return Object(r.e)(this,void 0,void 0,(function(){var e,f,p,b,h,g,v;return Object(r.h)(this,(function(r){switch(r.label){case 0:return e=t.data,f=e.info,p=e.currentViewId,b=[],h=void 0,o(t)?("showview"===a?(s=t.currentView.name,u=t.data.reportingSequenceUid,h=t.data.reportingSequenceNumber.toString()):h=l,[4,t.environment.getSessionId()]):[2];case 1:return g=r.sent(),[4,t.environment.getUnpackedVisitorCid()];case 2:return v=r.sent(),b.push({event_version:3,organization_id:f.organizationUid,category:"widget",action:a,label:d||f.interactionUuid,value:null!=n?n:1,vendor:"com.giosg.editor",visitor_id:v,session_id:g,dim1:p,dim2:c,dim3:s,dim4:u,dim5:h}),f.publishedAt?(Object(i.a)(t.environment.getBreweryEventsUrl(),b),[2]):(console.info("Interaction generic event data",b),[2])}}))}))}function l(e){var t=e.store,n=e.workflowUid,c=e.vendor,s=void 0===c?"com.giosg.editor":c,u=e.action,l=e.stepName,d=e.dim2,f=e.dim3;return Object(r.e)(this,void 0,void 0,(function(){var e,c,p,b,h,g,v,m;return Object(r.h)(this,(function(y){switch(y.label){case 0:return e=t.data,c=e.info,p=e.reportingSequenceUid,b=[],n&&o(t)?[4,t.environment.getSessionId()]:[2];case 1:return h=y.sent(),[4,t.environment.getUnpackedVisitorCid()];case 2:return g=y.sent(),v={event_version:1,organization_id:c.organizationUid,category:"workflowReportingEvent",action:"unknown",vendor:s,visitor_id:g,session_id:h,label:n,value:1,dim1:p,dim2:d,dim3:f},0===t.data.reportingCustomSequenceNumber&&b.push(Object(r.a)(Object(r.a)({},v),{action:a(),dim4:"Source",dim5:"0"})),function(e){e.setData({reportingCustomSequenceNumber:++e.data.reportingCustomSequenceNumber})}(t),m=t.data.reportingCustomSequenceNumber,b.push(Object(r.a)(Object(r.a)({},v),{action:u,dim4:l,dim5:null==m?void 0:m.toString()})),c.publishedAt?(Object(i.a)(t.environment.getBreweryEventsUrl(),b),[2]):(console.info("Interaction custom event data",b),[2])}}))}))}},44:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"i",(function(){return p}));var r=n(112),i="https://editor-development.staging.giosg.com"===document.location.origin?"development":/https:\/\/\w+\.staging\.giosg\.com/.test(document.location.origin)?"staging":"https://interactiondesigner.giosg.com"===document.location.origin||"https://interactionbuilder.giosg.com"===document.location.origin||document.location.origin.includes("translation-review")?"production":"unknown",o="production"===i?"https://service.giosg.com":"staging"===i||"development"===i?"https://service-staging.giosg.com":"https://service.giosg.com",a="".concat(o,"/api"),c=window.location.origin,s=c+"/api",u="staging"===i||"development"===i?"https://api.preview.staging.giosg.com":"https://api.preview.giosg.com",l="production"===i?r.c:"staging"===i||"development"===i?"https://service-staging.giosg.com/identity/authorize":"".concat("https://service.giosg.com","/identity/authorize"),d=function(e){return"https://".concat(e,"staging"===i||"development"===i?".preview.staging.giosg.com":".preview.giosg.com")},f="staging"===i||"development"===i?"https://api-staging.giosg.com":"https://api.giosg.com",p="staging"===i||"development"===i||"localhost"===i?"https://frontend-pre.s3-eu-west-1.amazonaws.com":"https://static.whisbi.com"},453:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return j}));var r=n(1),i=n(32),o=n(107),a=n(470),c=n(27),s=n(261),u=n(54),l=n(167),d=function(e,t){var n,o,a=function(e,t){var n,o,a={top:1/0,left:1/0,right:-1/0,bottom:-1/0};try{for(var c=Object(r.n)(e),s=c.next();!s.done;s=c.next()){var d=s.value,f=Object(i.e)(d),p=Object(u.c)(f,t),b=Object(r.k)(Object(l.b)(d),2),h=b[0],g=b[1];a.top=Math.min(a.top,p.y+Math.min(g,0)),a.left=Math.min(a.left,p.x+Math.min(h,0)),a.right=Math.max(a.right,p.x+p.width+Math.max(h,0)),a.bottom=Math.max(a.bottom,p.y+p.height+Math.max(g,0))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}var v=a.right-a.left,m=a.bottom-a.top;return{x:a.left,y:a.top,width:v,height:m}}(e,t),c=null,s=null;try{for(var d=Object(r.n)(e),f=d.next();!f.done;f=d.next()){var b=f.value,h=Object(i.e)(b);c=p(c,h.xType),s=p(s,h.yType)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}var g={leftOffset:void 0,rightOffset:void 0,topOffset:void 0,bottomOffset:void 0,type:"element",width:1,height:1,xType:null!=c?c:"start",yType:null!=s?s:"start",rotation:0,hidden:!1};return[Object(u.a)(g,a,t),a]},f=function(e){return"start"===e||"end"===e||"stretch"===e},p=function(e,t){return null===e?t:t===e?e:f(e)&&f(t)?"stretch":"middle"},b=function(e,t,n){var a=Object(i.e)(e),c=Object(u.c)(a,{width:t.width,height:t.height}),s=Object(r.a)(Object(r.a)({},c),{x:c.x+t.x,y:c.y+t.y});Object(o.c)(e,Object(u.a)(a,s,n))},h=function(e,t,n){var r=e.findIndex((function(e){return e===t}));e.splice(r,0,n)},g=function(e,t,n){var o,a,c=e.activeElementsUids,l=Object(s.b)(e,t),d=l.parentBoundingBox,f=l.parent,p=Object(i.e)(n),g=Object(u.c)(p,d),v=e.getGroup(n.groupUid),m=function(e,t){var n=e.views,i=e.groups;return!Object(r.m)(Object(r.m)([],Object(r.k)(n),!1),Object(r.k)(null!=i?i:[]),!1).some((function(e){return e.elements.some((function(e){return"group"===e.type&&e.groupUid===t.groupUid&&e.uid!==t.uid}))}))}(e.interactionData,n);m&&function(e,t){var n;e.interactionData.groups=null===(n=e.interactionData.groups)||void 0===n?void 0:n.filter((function(e){return e.uid!==t}))}(e,n.groupUid);var y,O,j,w=[];try{for(var x=Object(r.n)(v.elements),k=x.next();!k.done;k=x.next()){var _=k.value,S=m?_:e.createElementCopy(_);b(S,g,d),h(f.elements,n,S),w.push(S)}}catch(e){o={error:e}}finally{try{k&&!k.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}y=f,O=n.uid,-1!==(j=y.elements.findIndex((function(e){return e.uid===O})))&&y.elements.splice(j,1),function(e,t,n){e.delete(t.uid),n.map((function(e){return e.uid})).forEach((function(t){return e.add(t)}))}(c,n,w)},v=function(e,t){var n,i=e.activeElements,c=Object(s.b)(e,t).parent,u=Object(a.a)(e.generateElementNameByType("group")),l=Object(r.k)(d(i,t),2),f=l[0],p=l[1];Object(o.c)(u,f);var b=m(e);u.groupUid=b.uid,y(b.elements,t,p);var g=b.elements.slice(-1)[0];h(c.elements,g,u),e.deleteActiveElements(),e.interactionData.groups=(null!==(n=e.interactionData.groups)&&void 0!==n?n:[]).concat([b])},m=function(e){var t=e.activeElements.filter((function(e){return"view"!==e.type}));return{uid:Object(c.f)(),elements:t}},y=function(e,t,n){var a,c;try{for(var s=Object(r.n)(e),l=s.next();!l.done;l=s.next()){var d=l.value,f=Object(i.e)(d),p=Object(u.c)(f,t),b=Object(r.a)(Object(r.a)({},p),{x:p.x-n.x,y:p.y-n.y});Object(o.c)(d,Object(u.a)(f,b,n))}}catch(e){a={error:e}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(a)throw a.error}}},O=function(e,t){return e.getGroup(t.groupUid).elements.flatMap((function(t){return"group"===t.type?O(e,t):[t]}))},j=function(e,t){return t.elements.filter((function(e){return"group"===e.type})).flatMap((function(t){return O(e,t)}))}},467:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(220),i={a:1,b:255,g:255,r:255},o={opacity:1,fontBold:!0,fontSize:14,textColor:{a:1,b:56,g:43,r:37},fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",fontItalic:!1,shadowApplied:!0,shadowBlur:6,shadowPosX:0,shadowPosY:4,shadowSpread:0,borderApplied:!0,borderColor:{a:1,b:228,g:228,r:228},borderStyle:"solid",borderWidth:2,shadowColor:{a:.02,b:255,g:87,r:115},borderRadius:{topLeft:100,topRight:100,bottomLeft:100,bottomRight:100},textAlignment:"center",fontUnderlined:!1,backgroundColorApplied:!0,backgroundColor:i,backgroundHoverColor:Object(r.a)(i),backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0,padding:5}},468:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(75),i=n(469),o=Object(r.a)((function(e){return{type:"image",imageUrl:void 0,objectFit:"contain",designs:null!=e?e:i.a}}),{width:100,height:30})},469:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={opacity:1,shadowApplied:!1,shadowBlur:6,shadowPosX:0,shadowPosY:4,shadowSpread:0,borderApplied:!1,borderColor:{a:1,b:0,g:0,r:0},borderStyle:"solid",borderWidth:1,shadowColor:{a:.5,b:0,g:0,r:0},borderRadius:{topLeft:5,topRight:5,bottomLeft:5,bottomRight:5},backgroundColorApplied:!0,backgroundColor:{a:.5,b:140,g:140,r:140},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0}},47:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(1);function i(e){return o(e.name)}function o(e){var t=e.replace(/ /g,"_").replace(/[^\p{Letter}\p{Number}_]/gu,"");return!t[0]||"0123456789".includes(t[0])?"e".concat(t):t}function a(e,t){return"middle"===t.xType&&"middle"===t.yType?e("propertiesTab.AnchoredCenter"):"stretch"===t.xType||"stretch"===t.yType?"stretch":{start:{start:e("propertiesTab.AnchoredTopLeft"),middle:e("propertiesTab.AnchoredTop"),end:e("propertiesTab.AnchoredTopRight")},middle:{start:e("propertiesTab.AnchoredLeft"),middle:e("propertiesTab.AnchoredCenter"),end:e("propertiesTab.AnchoredRight")},end:{start:e("propertiesTab.AnchoredBottomLeft"),middle:e("propertiesTab.AnchoredBottom"),end:e("propertiesTab.AnchoredBottomRight")}}[t.yType][t.xType]}function c(e){return[{label:e("booleanChoices.yes"),value:"true"},{label:e("booleanChoices.no"),value:"false"}]}function s(e,t){return Object(r.e)(this,void 0,void 0,(function(){var n,i,o,a,c,s;return Object(r.h)(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),n=Object(r.n)(e),i=n.next(),u.label=1;case 1:return i.done?[3,4]:(o=i.value,[4,t(o)]);case 2:if(u.sent())return[2,o];u.label=3;case 3:return i=n.next(),[3,1];case 4:return[3,7];case 5:return a=u.sent(),c={error:a},[3,7];case 6:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(c)throw c.error}return[7];case 7:return[2,null]}}))}))}},470:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(75),i=n(471),o=n(215),a=Object(r.a)((function(e){return{type:"group",designs:null!=e?e:i.a,groupUid:o.a}}),{width:200,height:150})},471:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={opacity:1}},472:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},473:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=["bold","italic","underline","color","fontFamily","fontSize","isSelected","url","openInNewTab"],i=["LIST_NUMBERED","LIST_BULLETED","LIST_ITEM","PARAGRAPH"]},475:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(327),i=n(21),o=function(e,t){if("decl"===e.type){var n=e.value.slice(0,-1);n.includes("!noImportant")?e.value="".concat(n.slice(0,-"!noImportant".length),";"):e.value="".concat(n," !important;")}};function a(e){return e.toString(16).split("").map((function(e){return e>="0"&&e<="9"?String.fromCharCode(e.charCodeAt(0)-"0".charCodeAt(0)+"g".charCodeAt(0)):e})).join("")}var c=function(e,t){return Object(r.a)({key:"player-styles-".concat(t),stylisPlugins:[o,i.v],container:e})}},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(1),i=n(51),o=n(106),a=n(58),c=i.createContext(null),s=o.useState,u=o.useEffect,l=o.useRef,d=i.render;t.b=Object(r.a)(Object(r.a)(Object(r.a)({},i),o),{jsx:function(e,t){for(var n=[],o=2;o3)for(n=[n],r=3;r2&&(t.children=f.slice.call(arguments,2)),v(e.type,t,t.key||e.key,t.ref||e.ref)}function D(e){var t={},n={__c:"__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=i,t},this.shouldComponentUpdate=function(t){e.value!==t.value&&r.some((function(e){e.context=t.value,x(e)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return x(n.__E=n)}catch(t){e=t}throw e}},i=function(e){return null!=e&&void 0===e.constructor},O.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},O.prototype.render=y,o=[],a=0,c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=d,l=0},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return p}));var r=n(1),i=n(30),o=n(32);function a(e){var t,n,i,a,s=c(e.xType,null!==(t=e.leftOffset)&&void 0!==t?t:0,null!==(n=e.rightOffset)&&void 0!==n?n:0),u=c(e.yType,null!==(i=e.topOffset)&&void 0!==i?i:0,null!==(a=e.bottomOffset)&&void 0!==a?a:0);return Object(r.a)(Object(r.a)({},function(e){var t,n;return"view"===e.type?{width:e.width[1],height:e.height[1],minWidth:e.width[0]!==e.width[1]?e.width[0]:void 0,maxWidth:e.width[0]!==e.width[1]?e.width[1]:void 0,minHeight:e.height[0]!==e.height[1]?e.height[0]:void 0,maxHeight:e.height[0]!==e.height[1]?e.height[1]:void 0,isAutoMinWidth:null!==(t=e.isAutoMinWidth)&&void 0!==t&&t,isAutoMinHeight:null!==(n=e.isAutoMinHeight)&&void 0!==n&&n}:{width:e.width,height:e.height}}(e)),{xType:Object(o.c)(e.xType),yType:Object(o.d)(e.yType),leftOffset:e.leftOffset,rightOffset:e.rightOffset,topOffset:e.topOffset,bottomOffset:e.bottomOffset,xPos:s,yPos:u,rotation:e.rotation,hidden:e.hidden})}function c(e,t,n){return("end"===e?-n:t)||0}function s(e,t,n,r,o,a){if("start"===e||"stretch"===e)return a?Math.max(0,r):r;if("middle"===e){var c=r,s=Math.floor(t/2-n/2)+c;return a?Math.max(s,0):s}return"end"===e?t-n-(a?Math.max(0,o):o):Object(i.a)(e)}function u(e,t,n,r,o,a){return o?"start"===e||"stretch"===e?r:"middle"===e?r-Math.floor(t/2-n/2):"end"===e?void 0:Object(i.a)(e):a}function l(e,t,n,r,o,a,c,s){return!o&&a&&"stretch"===e?l(e,t,n,null!=c?c:0,!0,!0,void 0,void 0):o?"end"===e||"stretch"===e?Math.floor(t-(r+n)):"start"===e||"middle"===e?void 0:Object(i.a)(e):s}function d(e,t,n){return Math.min(Math.max(e,t),n)}function f(e,t){var n,r,i,o,a=e.xType,c=e.yType,u="view"===e.type,l=null!==(n=e.leftOffset)&&void 0!==n?n:0,f=null!==(r=e.rightOffset)&&void 0!==r?r:0,p=null!==(i=e.topOffset)&&void 0!==i?i:0,b=null!==(o=e.bottomOffset)&&void 0!==o?o:0,h=t.width,g=t.height,v=u?d(h,e.width[0],e.width[1]):e.width,m=u?d(g,e.height[0],e.height[1]):e.height;return{x:s(a,t.width,v,l,f,u),y:s(c,t.height,m,p,b,u),width:"stretch"===a?t.width-Math.max(0,l)-Math.max(0,f):v,height:"stretch"===c?t.height-Math.max(0,p)-Math.max(0,b):m}}function p(e,t,n,i){void 0===i&&(i={x:!0,y:!0,width:!0,height:!0});var o={leftOffset:u(e.xType,n.width,t.width,t.x,i.x,e.leftOffset),rightOffset:l(e.xType,n.width,t.width,t.x,i.x,i.width,e.leftOffset,e.rightOffset),topOffset:u(e.yType,n.height,t.height,t.y,i.y,e.topOffset),bottomOffset:l(e.yType,n.height,t.height,t.y,i.y,i.height,e.topOffset,e.bottomOffset),xType:e.xType,yType:e.yType,rotation:e.rotation,hidden:e.hidden},a=function(e,t){var n=Object(r.k)(t,2),i=n[0];return i!==n[1]?[i,e]:[e,e]};if("view"===e.type){var c=Object(r.a)(Object(r.a)(Object(r.a)({},e),o),{width:i.width?a(t.width,e.width):e.width,height:i.height?a(t.height,e.height):e.height});return b(t,n,c,i)}return Object(r.a)(Object(r.a)(Object(r.a)({},e),o),{width:t.width,height:t.height})}var b=function(e,t,n,i){var a=h(e,t),c=a.isFullHeight,s=a.isFullWidth,u=function(e){var t=Object(r.k)(e,2);return t[0]===t[1]},l=function(e){return[u(e)?1:e[0],o.a]};return Object(r.a)(Object(r.a)(Object(r.a)({},n),s&&i.width?{xType:"start",leftOffset:0,rightOffset:void 0,width:l(n.width)}:{}),c&&i.height?{yType:"start",topOffset:0,bottomOffset:void 0,height:l(n.height)}:{})},h=function(e,t){var n=e.x,r=e.y,i=e.width,o=e.height;return{isFullWidth:n<=0&&n+i>=t.width,isFullHeight:r<=0&&r+o>=t.height}}},566:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),i=n(106),o=n(69),a=n(32),c=n(5),s=n(10),u=n(58);var l=function(e,t){var n=function(e){return window.GiosgClient&&!window.GiosgClient.visitorCidDeferred&&function(e){return".giosg-chat-container"===e.mountSelector}(e)?window.GiosgClient._getInteractionRoot()||document.body:e.mountSelector&&document.querySelector(e.mountSelector)||document.body}(e),o=Object(i.useCallback)((function(){return null!=t?t:function(e,t){var n,r,i=void 0===(null===(r=null===(n=e.publishingSettings)||void 0===n?void 0:n[0])||void 0===r?void 0:r.interactionType);return{width:void 0!==e.mountSelector&&i?t instanceof ShadowRoot?t.host.clientWidth:t.clientWidth:window.innerWidth,height:void 0!==e.mountSelector&&i?e.mountAsInlineBlock?1/0:t instanceof ShadowRoot?t.host.clientHeight:t.clientHeight:window.innerHeight}}(e,n)}),[t,e,n]),a=Object(r.k)(Object(c.f)(o()),2),s=a[0],u=a[1];return Object(c.d)((function(){var e=function(){return u(o())},t=new ResizeObserver(e);return t.observe(n instanceof ShadowRoot?n.host:n),window.addEventListener("resize",e),function(){t.disconnect(),window.removeEventListener("resize",e)}}),[o,n]),Object(c.d)((function(){u(o())}),[o,null==t?void 0:t.height,null==t?void 0:t.width]),s},d=function(e){var t=e.store,n=e.view,i=e.innerRef,d=e.isDesignMode,g=t.data.project,v=c.b.useCss(),m=l(g,e.canvasSize),y=function(e,t,n){var i,o=void 0!==t.mountSelector,a=o&&!!t.mountAsInlineBlock,c=!n&&!!(o?t.allowMountedScaling:t.allowScaling);return Object(r.a)(Object(r.a)({},e),{type:"interaction",fitWithScaling:c,positionInPage:o,reserveSpaceInContainer:a,zIndex:a?0:null!==(i=t.zIndex)&&void 0!==i?i:u.b,yType:a?"start":e.yType,topOffset:a?0:e.topOffset})}(Object(a.f)(n),g,function(e,t){var n,r;return[o.a.OperatorSendToVisitor,o.a.OperatorSendToGroup].includes((null===(r=null===(n=e.publishingSettings)||void 0===n?void 0:n[0])||void 0===r?void 0:r.interactionType)||o.a.WebsiteNormal)||"chat_message_visitor"===t.environment.runtime||"chat_message_user"===t.environment.runtime}(g,t)),O=function(e,t){var n,i,o,a,c=Object(r.k)(e.width,2),s=c[0],u=c[1],l=Object(r.k)(e.height,2),d=l[0],f=l[1];e.leftOffset=null!==(n=e.leftOffset)&&void 0!==n?n:0,e.rightOffset=null!==(i=e.rightOffset)&&void 0!==i?i:0,e.topOffset=null!==(o=e.topOffset)&&void 0!==o?o:0,e.bottomOffset=null!==(a=e.bottomOffset)&&void 0!==a?a:0;var p=function(e,t){return"middle"===e?t>=0?t:0:t},b=function(e,t,n){return"middle"===e?t<0?-t:0:n},h=p(e.xType,e.leftOffset),g=b(e.xType,e.leftOffset,e.rightOffset),v=p(e.yType,e.topOffset),m=b(e.yType,e.topOffset,e.bottomOffset),y={x1:("middle"===e.xType?2:1)*h,x2:("middle"===e.xType?2:1)*g,y1:("middle"===e.yType?2:1)*v,y2:("middle"===e.yType?2:1)*m},O={x1:Math.max("end"===e.xType?0:y.x1,0),x2:Math.max("start"===e.xType?0:y.x2,0),y1:Math.max("end"===e.yType?0:y.y1,0),y2:Math.max("start"===e.yType?0:y.y2,0)},j=O.x1+O.x2+u,w=O.y1+O.y2+f,x=Math.max(j-t.width,0),k=Math.max(w-t.height,0),_=function(e){return function(t,n){var r=n?Math.min(n,e):e,i=Math.min(r,t);return e-=i,t-i}},S=_(x),C=_(k),E=x/("stretch"===e.xType?2:1),I=k/("stretch"===e.yType?2:1),T={x1:S(O.x1,E),x2:S(O.x2,E),y1:C(O.y1,I),y2:C(O.y2,I)},P={x1:S(T.x1),x2:S(T.x2),y1:C(T.y1),y2:C(T.y2)},A=t.width,N=t.height,F=0===f?N:f,R=S((0===u?A:u)-s)+s,L=C(F-d)+d,M=e.fitWithScaling?A/R:1,U=e.fitWithScaling?N/L:1,D=Math.min(Math.min(M,U),1);return{top:P.y1,bottom:P.y2,left:P.x1,right:P.x2,width:R,height:L,scaling:D,fitWithScaling:e.fitWithScaling,reserveSpaceInContainer:e.reserveSpaceInContainer,position:e.positionInPage?e.reserveSpaceInContainer?"relative":"absolute":"fixed",zIndex:e.zIndex,containerHeight:e.reserveSpaceInContainer?L*D:void 0,scrollX:!e.fitWithScaling&&R>A,scrollY:!e.fitWithScaling&&L>N,xAlignment:M<1?"center":"start"===e.xType||"stretch"===e.xType?"start":"middle"===e.xType?"center":"end",yAlignment:U<1?"center":"start"===e.yType||"stretch"===e.yType?"start":"middle"===e.yType?"center":"end"}}(y,m);return c.b.jsx(h,{isDesignMode:d,className:d?"":v(Object(s.k)()),style:f(O)},c.b.jsx(h,{isDesignMode:d,innerRef:i,style:p(O)},y.fitWithScaling?e.children:c.b.jsx(h,{isDesignMode:d,style:b(O)},e.children)))},f=function(e){return{display:"flex",justifyContent:e.xAlignment,alignItems:e.yAlignment,position:e.position,top:e.top,bottom:e.bottom,left:e.left,right:e.right,zIndex:e.zIndex,height:e.containerHeight,pointerEvents:"none",touchAction:"none"}},p=function(e){return{minWidth:e.scrollX?"100%":e.width,height:e.scrollY?"100%":e.height,transform:e.fitWithScaling?"scale(".concat(e.scaling,")"):void 0,transformOrigin:e.reserveSpaceInContainer?"top":"center",position:e.reserveSpaceInContainer?"absolute":"relative",overflowX:e.scrollX?"scroll":void 0,overflowY:e.scrollY?"scroll":void 0,pointerEvents:"none"}},b=function(e){return{minWidth:e.width,height:e.height,position:"relative",pointerEvents:"none"}},h=function(e){var t=c.b.useCss();return c.b.jsx("div",{style:e.isDesignMode?e.style:void 0,ref:e.innerRef,className:"".concat(t(Object(s.r)(e.style))," ").concat(e.className||"")},e.children)}},57:function(e,t,n){"use strict";function r(e,t,n){var r;if(t&&e.data.disablesElements.includes(t.uid))return!1;if(e.data.jsApiEventListeners.find((function(e){return e.elementUid===(null==t?void 0:t.uid)})))return!0;var i=function(e,t){if(void 0===t||!e)return!1;return t.some((function(t){return t.actions.length>0&&t.conditionGroups.some((function(t){return t.conditions.some((function(t){return t.condition.elementId===e.uid&&"elementClickEvent"===t.condition.type}))}))}))}(t,n);return!!(null===(r=null==t?void 0:t.clickEvents)||void 0===r?void 0:r.find((function(e){return e.actions.length>0||e.conditions.length>0})))||i}function i(e){return!e.data.disablesElements.includes(e.data.currentViewId)&&(!!e.data.jsApiEventListeners.find((function(t){return t.elementUid===e.data.currentViewId}))||r(e,e.data.project.views.find((function(t){return t.uid===e.data.currentViewId})),e.data.project.conditionalActions))}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},58:function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l}));var r="wp-exclude-emoji",i="needsclick",o=String.fromCharCode(160),a=1e6,c="New task",s="BAR_avatar",u="avatar",l="username"},584:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme=void 0;var r=n(118),i={positive:"#38D09B",negative:"#FF7FA0",warning:"#FFE282",neutral:"#7357FF"},o={positive:"#36DBA1",negative:"#FD8AA8",warning:"#FFE89B",neutral:"#7C61FF"},a={positive:"#31C491",negative:"#F16F91",warning:"#FCDC72",neutral:"#6A4DFC"},c={positive:"#F5FCFA",negative:"#FFF9FB",warning:"#FFFBED",neutral:"#F7F5FF"},s={positive:"#D8F6E8",negative:"#FFEEF3",warning:"#FFF5D2",neutral:"#E3DEFF"},u={positive:(0,r.transparentize)(.75,i.positive),negative:(0,r.transparentize)(.75,i.negative),warning:(0,r.transparentize)(.75,i.warning),neutral:(0,r.transparentize)(.75,i.neutral)},l={positive:(0,r.transparentize)(.6,i.positive),negative:(0,r.transparentize)(.6,i.negative),warning:(0,r.transparentize)(.6,i.warning),neutral:(0,r.transparentize)(.6,i.neutral)},d={positive:"#EBF9F2",negative:"#FFF2F5",warning:"#FAF6E1",neutral:"#EFEDFA"};t.defaultTheme={palette:{BrandMainColor:"#38D09B",BrandMainColorHover:"#36DBA1",BrandMainColorActive:"#31C491",BrandAlternativeColor:"#7357FF",BrandAlternativeColorHover:"#7C61FF",BrandAlternativeColorActive:"#6A4DFC",BackgroundColor:"#FFFFFF",BackgroundColorDark:"#242335",BorderColor:"#E4E5E7",BorderColorLight:"#F0F1F2",BorderColorDark:"#C1C1C9",CollapsibleSectionBackgroundColor:"#F5F6F7",ControlBackgroundColor:"#FBFBFB",ControlBackgroundColorHover:"#FFFFFF",ControlBackgroundColorActive:"#F5F6F7",ListItemBackgroundColor:"#FFFFFF",ListItemBackgroundColorHover:"#FBFBFB",ListItemBackgroundColorActive:"#F5F6F7",DisabledColor:"#E4E5E7",TextColorDisabled:"#C1C1C9",DividerColor:"#E4E5E7",HeadlineColor:"#242335",IconColor:"#8D8C9B",PageBackgroundColor:"#F5F6F7",PlaceholderBackgroundColor:"#F0F1F2",ShadowColor:"#000000",TextColor:"#5C5C69",TextColorLight:"#FFFFFF",TextColorDark:"#242335",TextColorInactive:"#8D8C9B",UnderlineColor:"#E4E5E7",UnselectedControlColor:"#C1C1C9",ToneColor:i,ToneColorHover:o,ToneColorActive:a,BackgroundToneColor:c,BackgroundToneColorActive:s,ShadowToneColor:u,ShadowToneColorHover:l,StatusBadgeToneBackgroundColor:d,GraphColorFirstBright:"#FDB5E5",GraphColorFirstDark:"#D4A2E8",GraphColorSecondBright:"#C7B3FF",GraphColorSecondDark:"#A695FF",GraphColorThirdBright:"#AABBFF",GraphColorThirdDark:"#889CFF",GraphColorFourthBright:"#8FEAD4",GraphColorFourthDark:"#65DBC4"}}},585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hslToRgb=void 0,t.hslToRgb=function(e,t,n){if(0===t)return{red:Math.round(255*n),green:Math.round(255*n),blue:Math.round(255*n)};var r=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,o=i*(1-Math.abs(r%2-1)),a=0,c=0,s=0;r>=0&&r<1?(a=i,c=o):r>=1&&r<2?(a=o,c=i):r>=2&&r<3?(c=i,s=o):r>=3&&r<4?(c=o,s=i):r>=4&&r<5?(a=o,s=i):r>=5&&r<6&&(a=i,s=o);var u=n-i/2,l=a+u,d=c+u,f=s+u;return{red:Math.round(255*l),green:Math.round(255*d),blue:Math.round(255*f)}}},586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rgbToHsl=void 0,t.rgbToHsl=function(e){var t,n=e.red/255,r=e.green/255,i=e.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),c=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var s=o-a,u=c>.5?s/(2-o-a):s/(o+a);switch(o){case n:t=(r-i)/s+(r=300&&setTimeout((function(){return c(e,t)}),3e4)},o.onerror=function(){setTimeout((function(){return c(e,t)}),3e4)};var s=Object(r.a)(Object(r.a)({},e),{tags:Object(r.a)(Object(r.a)({},e.tags),{interactionUid:void 0})});o.send(JSON.stringify(s))}function s(e){var t=e instanceof Error?e:new Error(e);console.warn("Got error ".concat(t.name," ").concat(t.message),e);var n=RegExp(".*file:.*"),r=t.stack||"",a=n.test(r)?r.split("file:")[0]+"******":r,s={event_id:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).replace(/-/g,""),timestamp:(new Date).toISOString(),logger:"interaction",platform:"javascript",level:"error",message:{formatted:"Interaction ".concat(t.message)},release:"4a6aab705e8d7d1b9f6cb7e34b8f80affc110668",transaction:window.location.href,tags:{},exception:{values:[{type:t.name,value:a}]},contexts:{browser:{name:"browser",version:navigator.userAgent}}};o?c(s,o):i.push(s)}function u(e){throw s(e),e}},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"p",(function(){return g})),n.d(t,"q",(function(){return v})),n.d(t,"o",(function(){return m})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"k",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return k})),n.d(t,"d",(function(){return _})),n.d(t,"h",(function(){return C})),n.d(t,"e",(function(){return E})),n.d(t,"b",(function(){return I})),n.d(t,"i",(function(){return T})),n.d(t,"l",(function(){return P})),n.d(t,"m",(function(){return A}));var r=n(1),i=n(30),o=n(143),a=n(95),c=n(170),s=n(318),u=n(96),l=n(184),d=n(205),f=n(89),p=n(26),b=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,c,s,l,d,f;return Object(r.h)(this,(function(p){switch(p.label){case 0:return n=e.data,i=n.project,o=n.currentViewId,a=n.viewHistory,t?(c=i.views.find((function(e){return e.uid===t})))?(s=Object(r.m)([o],Object(r.k)(a),!1),[4,Object(u.a)({type:"interactiondesigner:changeview",interactionId:e.data.info.interactionUuid,from:e.data.currentViewId,to:t,viewHistory:s})]):[2]:[3,2];case 1:return p.sent(),e.setData({currentViewId:c.uid,viewHistory:s}),[3,4];case 2:return l=Object(r.k)(a),d=l[0],f=l.slice(1),d?[4,Object(u.a)({type:"interactiondesigner:changeview",interactionId:e.data.info.interactionUuid,from:e.data.currentViewId,to:d,viewHistory:f})]:[2];case 3:p.sent(),e.setData({currentViewId:d,viewHistory:f}),p.label=4;case 4:return e.controlFocus=!0,[2]}}))}))},h=function(e,t){var n=t.viewId;return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(t){return[2,b(e,n)]}))}))},g=function(e,t){var n=t.loadingViewId,i=t.successViewId,o=t.errorViewId,a=t.fileType;return Object(r.e)(void 0,void 0,void 0,(function(){var t,c,s,u;return Object(r.h)(this,(function(l){return(t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("multiple",""),document.body.appendChild(t),t.style.display="none",c=[],s=[],u=[],a&&(a.split(",").forEach((function(e){var t=e.trim();t.startsWith(".")?c.push(t.toLowerCase()):s.push(t.toLowerCase())})),u=Object(r.m)(Object(r.m)([],Object(r.k)(c),!1),Object(r.k)(s),!1),t.setAttribute("accept",u.join(","))),t.click(),t.addEventListener("change",(function(){return Object(r.e)(void 0,void 0,void 0,(function(){var c,s,l,d,f,p,b,h,g,v,m,y,O,j,w,x,k;return Object(r.h)(this,(function(_){switch(_.label){case 0:if(c=e.data,s=c.project,l=c.currentViewId,d=c.viewHistory,!(f=t.files)||0===f.length)return[2];if(p=Array.from(f),a&&p.filter((function(e){var t,n=null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase(),r=".".concat(n),i=e.type.toLowerCase();return!u.includes(r)&&!u.includes(i)})).length>0)return alert("This file format is invalid. Please choose following file formats: ".concat(u," ")),[2];b=function(t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,c,s,u,l,d,f,p,b,h,g,v,m;return Object(r.h)(this,(function(r){switch(r.label){case 0:return n=e.data.info.organizationUid,[4,e.environment.getUnpackedVisitorCid()];case 1:if(i=r.sent(),o=e.environment.getRoomId(),!i)throw new Error("visitor_id is required for encrypted uploads!");if(!o)throw new Error("room_id is required for encrypted uploads!");return a=e.data.info.api.interactionPlayerChatOrigin,c="".concat(a,"/api/v5/orgs/").concat(n,"/encrypted_visitor_uploads"),(s=new FormData).append("upload",t),s.append("room_id",o),s.append("created_by_visitor_id",i),[4,fetch(c,{method:"POST",body:s})];case 2:return(u=r.sent()).ok?[3,4]:(l=Error.bind,f=(d="Upload request failed (".concat(u.status,"): ")).concat,[4,u.text()]);case 3:throw new(l.apply(Error,[void 0,f.apply(d,[r.sent()])]));case 4:return[4,u.json()];case 5:return p=r.sent(),b="".concat(a,"/api/v5/orgs/").concat(n,"/encrypted_visitor_uploads/webhook"),[4,fetch(b,{method:"POST",body:JSON.stringify({chat_id:e.environment.getChatId(),upload_id:p.id,visitor_id:i,rooms:[]}),headers:{"Content-Type":"application/json"}})];case 6:return(h=r.sent()).ok?[3,8]:(g=Error.bind,m=(v="Upload webhook request failed (".concat(h.status,"): ")).concat,[4,h.text()]);case 7:throw new(g.apply(Error,[void 0,m.apply(v,[r.sent()])]));case 8:return[2]}}))}))},s.views.find((function(e){return e.uid===n}))&&e.setData({currentViewId:n,viewHistory:Object(r.m)([l],Object(r.k)(d),!1)}),h=!0,_.label=1;case 1:_.trys.push([1,8,9,10]),g=Object(r.n)(Array.from(f)),v=g.next(),_.label=2;case 2:if(v.done)return[3,7];m=v.value,_.label=3;case 3:return _.trys.push([3,5,,6]),[4,b(m)];case 4:return _.sent(),[3,6];case 5:return y=_.sent(),console.error("Error when uploading file",y),h=!1,[3,7];case 6:return v=g.next(),[3,2];case 7:return[3,10];case 8:return O=_.sent(),x={error:O},[3,10];case 9:try{v&&!v.done&&(k=g.return)&&k.call(g)}finally{if(x)throw x.error}return[7];case 10:return[4,new Promise((function(e){return setTimeout(e,500)}))];case 11:return _.sent(),(j=s.views.find((function(e){return e.uid===(h?i:o)})))&&(w=Object(r.m)([l],Object(r.k)(d),!1),e.setData({currentViewId:j.uid,viewHistory:w})),[2]}}))}))})),[2]}))}))},v=function(e,t){var n=t.targetUrl,o=t.urlType;return Object(r.e)(void 0,void 0,void 0,(function(){var t,a,s;return Object(r.h)(this,(function(r){switch(t=!Object(l.d)(n),a=Object(c.b)(e,n,t),o){case"redirect":window.location.href=a;break;case"opentab":null===(s=window.open(a,"_blank","noopener,noreferrer"))||void 0===s||s.focus();break;case"get":return[2,Object(p.k)(e,a,void 0)];case"post":return[2,Object(p.k)(e,a,Object(f.a)(e))];default:Object(i.a)(o)}return[2]}))}))},m=function(e,t){var n=t.landingGuid,i=t.regionUrl,o=t.viewId,a=t.phoneElementId,c=t.nameElementId,s=t.action,u=t.phoneCountryCode;return Object(r.e)(void 0,void 0,void 0,(function(){var t,l,f,p,h,g;return Object(r.h)(this,(function(r){switch(r.label){case 0:return n&&i?[4,d.d]:[2];case 1:return r.sent(),t=e.environment.getGiosg(),l=e.data.info,f={organizationUid:l.organizationUid,interactionUid:l.interactionUuid,workflowUid:e.data.project.workflowUid,eventSequenceUid:e.data.reportingSequenceUid},["call","chat"].includes(s)?(p=a?e.data.fields[a]:"",h=c?e.data.fields[c]:"",window.whisbi.openWidget({action:"oneToOneSession",phone:p,name:h,country:u||"",giosg:f})):window.whisbi.openWidget({action:"oneToOneWidget",giosg:f}),[4,Object(d.c)(i)];case 2:return r.sent(),null===(g=null==t?void 0:t.on)||void 0===g||g.call(t,"whisbiotoclosed",(function(){b(e,o)})),[2]}}))}))},y=function(e,t){var n=t.action,o=t.targetUid;return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.h)(this,(function(a){return(t=o&&Object(p.e)(e,o))&&"view"!==t.type&&("hide"===n?Object(p.j)(e,Object(r.a)(Object(r.a)({},t),{hidden:!0})):"show"===n?Object(p.j)(e,Object(r.a)(Object(r.a)({},t),{hidden:!1})):"toggle"===n?Object(p.j)(e,Object(r.a)(Object(r.a)({},t),{hidden:!t.hidden})):Object(i.a)(n)),[2]}))}))},O=function(e,t){var n=t.uid,i=t.async,a=t.javascriptCode;return Object(r.e)(void 0,void 0,void 0,(function(){var t,c,u,l;return Object(r.h)(this,(function(r){switch(r.label){case 0:return t=null!==(l=e.data.project.noUnsafeEvaluation)&&void 0!==l&&l,c=new o.b(e),u=Object(f.c)(e),[4,Object(s.b)(t,n,i,a,c,u)];case 1:return r.sent(),[2]}}))}))},j=function(e,t){var n=t.delayMs;return new Promise((function(e){setTimeout(e,n)}))},w=function(e,t){var n=t.workflowId;return Object(r.e)(void 0,void 0,void 0,(function(){var t,i,o,a,c,s,u,l,d;return Object(r.h)(this,(function(b){switch(b.label){case 0:return t=e.data,i=t.dataFields,o=t.customVariables,a=t.clicks,n?[4,e.environment.getUnpackedVisitorCid()]:[2];case 1:return c=b.sent(),s={formData:Object(f.b)(e,"variable name"),variables:i,customVariables:o,clicks:a,visitorId:c,userId:e.environment.getUserId(),chatId:e.environment.getChatId()},[4,fetch(e.environment.getWorkflowTriggerUrl(n),{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})];case 2:return[4,b.sent().json()];case 3:return u=b.sent(),[4,Object(p.i)(300)];case 4:return b.sent(),[4,fetch(e.environment.getWorkflowResultsUrl(u.execution_id),{method:"GET"})];case 5:return[4,b.sent().json()];case 6:l=b.sent(),b.label=7;case 7:return"running"!==l.status&&"created"!==l.status?[3,11]:[4,Object(p.i)(500)];case 8:return b.sent(),[4,fetch(e.environment.getWorkflowResultsUrl(u.execution_id),{method:"GET"})];case 9:return[4,b.sent().json()];case 10:return l=b.sent(),[3,7];case 11:return"finished"===l.status&&(d=Object(r.a)({},e.data.dataFields),Object.keys(d).forEach((function(e){void 0!==l.data[e]&&(d[e]=l.data[e])})),e.setData({dataFields:d})),[2]}}))}))},x=function(e,t){var n=t.url,i=t.leadForm,o=t.company,a=t.domain,c=t.room;return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.h)(this,(function(r){if(!(t=e.environment.getGiosg()))throw new Error("GiosgProcessor action is not supported in '".concat(e.environment.runtime,"' runtime."));return[2,Object(p.a)(e,n,{data:Object(f.b)(e,"variable name"),lead_form:i,company:o,domain:a,room:c,page_url:window.location.href,page_title:document.title,cid:t.visitorCid,processor:null,completed:!0})]}))}))},k=function(e,t){var n=t.hubSpotId,i=t.hubsPotFormId;return Object(r.e)(void 0,void 0,void 0,(function(){var t,o,a,c,s,u,l,d,b,h,g,v;return Object(r.h)(this,(function(m){if(t=Object(f.b)(e,"variable name"),n&&i){o=[],a=document.cookie.replace(/(?:(?:^|.*;\s*)hubspotutk\s*\=\s*([^;]*).*$)|^.*$/,"$1"),c=a.length>1?a:null;try{for(s=Object(r.n)(Object.entries(t)),u=s.next();!u.done;u=s.next())l=Object(r.k)(u.value,2),d=l[0],b=l[1],o.push({name:d,value:b})}catch(e){g={error:e}}finally{try{u&&!u.done&&(v=s.return)&&v.call(s)}finally{if(g)throw g.error}}return h={fields:o,context:{hutk:c,pageUri:document.location.href}},[2,Object(p.a)(e,"https://api.hsforms.com/submissions/v3/integration/submit/".concat(n,"/").concat(i),h)]}return[2]}))}))},_=function(e){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(t){switch(t.label){case 0:return[4,Object(u.a)({type:"interactiondesigner:exit",interactionId:e.data.info.interactionUuid})];case 1:return t.sent(),Object(u.b)({type:"exit"}),e.setData({shown:!1}),[2]}}))}))};function S(e){return"widget-flag-".concat(e)}var C=function(e,t){var n=t.flagId,o=t.action;return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(e){return n&&("set"===o?Object(a.a)("local").setItem(S(n),"true"):"unset"===o?Object(a.a)("local").removeItem(S(n)):Object(i.a)(o)),[2]}))}))},E=function(e,t,n){var i=t.uid;return Object(r.e)(void 0,void 0,void 0,(function(){var t,o,a,c,s,l,d,b,h;return Object(r.h)(this,(function(g){switch(g.label){case 0:return t=e.data,o=t.clicks,a=t.info,c=t.dataFields,s=t.customVariables,[4,e.environment.getSessionId()];case 1:return l=g.sent(),[4,e.environment.getUnpackedVisitorCid()];case 2:return d=g.sent(),b={projectUid:a.projectUid,clickHistory:o,formdata:Object(f.b)(e,"element uid"),fieldsData:c,customVariables:s,published:!!a.publishedAt,submitElementUid:n.uid,roomId:void 0,visitorId:d,sessionId:l,chatUid:e.environment.getChatId(),submitActionUid:i,url:"on_the_page"===e.environment.runtime?window.location.href:void 0},"chat_message_visitor"===e.environment.runtime&&Object(u.b)({type:"reply",text:Object(p.f)(Object(r.a)(Object(r.a)({},Object(f.b)(e,"element name")),{clicks:e.data.clicks.join(" -> ")})),value:""}),h="button"===n.type||"text"===n.type?n.label:void 0,[4,Object(u.a)({type:"interactiondesigner:formdata",interactionId:a.interactionUuid,elementId:n.uid,elementType:n.type,elementName:n.name,elementLabel:h,formData:Object(f.b)(e,"element name")})];case 3:return g.sent(),[2,Object(p.a)(e,e.environment.getFormDataUrl(),b)]}}))}))},I=function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.h)(this,(function(n){switch(n.label){case 0:if(!(t=e.environment.getGiosgClient()))throw new Error("closeChat action is not supported in '".concat(e.environment.runtime,"' runtime."));return[4,t.closeChatDialog()];case 1:return n.sent(),[2]}}))}))},T=function(e,t){var n=t.token,i=t.autosuggest;return Object(r.e)(void 0,void 0,void 0,(function(){var t,o,a,c,s,u,l,d,b,h,g,v,m,y,O,j;return Object(r.h)(this,(function(w){switch(w.label){case 0:if(t=e.data.clicks,o=e.environment.getGiosgClient(),a=e.environment.getGiosg(),!o||!(null==a?void 0:a.api)||!(null==a?void 0:a.rooms))throw new Error("openChat action is not supported in '".concat(e.environment.runtime,"' runtime."));c=Object(f.b)(e,"element name",{filterEmptyAndUndefined:!1}),s=Object.entries(c),u=function(e){return[!1,void 0,null,""].includes(e)},l=s.filter((function(e){var t=Object(r.k)(e,2)[1];return u(t)})),d=s.filter((function(e){var t=Object(r.k)(e,2)[1];return!u(t)})),b=Object.fromEntries(d);try{for(h=Object(r.n)(l),g=h.next();!g.done;g=h.next())v=Object(r.k)(g.value,1),m=v[0],a.api.visitor.remove(m)}catch(e){O={error:e}}finally{try{g&&!g.done&&(j=h.return)&&j.call(h)}finally{if(O)throw O.error}}return n?[4,a.api.room.join({id:n})]:[3,2];case 1:w.sent(),w.label=2;case 2:return y=n||Object(p.b)(e),a.api.visitor.submit(Object(r.a)(Object(r.a)({},b),{"Click events":t.join(" -> ")}),"plain",!1,{id:y}),o.visitorCidDeferred?[3,4]:[4,o.openChatDialog(!1,y,!0)];case 3:w.sent(),w.label=4;case 4:return i?[4,o.showAutoSuggest(i.autosuggestMessage||"Hello, how could I help you?",y,i.autosuggestUserId)]:[3,6];case 5:w.sent(),w.label=6;case 6:return o.visitorCidDeferred&&o.showClient(!1,y,!0),[2]}}))}))},P=function(e,t){var n=t.name,i=t.value;return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.h)(this,(function(o){return n&&n in e.data.dataFields&&e.setData({dataFields:Object(r.a)(Object(r.a)({},e.data.dataFields),(t={},t[n]=i,t))}),[2]}))}))},A=function(e,t){var n=t.name,i=t.value;return Object(r.e)(void 0,void 0,void 0,(function(){var t,o;return Object(r.h)(this,(function(r){return(t=e.environment.getGiosg())&&t.api?(t.api.visitor.submit(((o={})[n]=i,o)),[2]):[2]}))}))}},67:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},68:function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u}));var r=n(108);function i(e,t){Object(r.a)().setItem(e,JSON.stringify(t))}function o(e){var t=Object(r.a)().getItem(e);try{return t?JSON.parse(t):null}catch(n){return console.error("Couldn't parse local storage value for key: '".concat(e,"', value: ").concat(t)),null}}function a(e){Object(r.a)().removeItem(e)}function c(e,t){Object(r.b)().setItem(e,JSON.stringify(t))}function s(e){var t=Object(r.b)().getItem(e);try{return t?JSON.parse(t):null}catch(n){return console.error("Couldn't parse session storage value for key: '".concat(e,"', value: ").concat(t)),null}}function u(e){Object(r.b)().removeItem(e)}},69:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.WebsiteNormal="WebsiteNormal",e.OperatorSendToVisitor="OperatorSendToVisitor",e.OperatorSendToGroup="OperatorSendToGroup",e.ChatWindowSidePanel="ChatWindowSidePanel",e.StartMenu="StartMenu",e.ProductCardAttachment="ProductCardAttachment",e.Advertisement="Advertisement"}(r||(r={}))},71:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),i=n(27);function o(e,t){return function(n,o,a){return Object(r.a)(Object(r.a)({},e(a)),{name:n,uid:Object(i.c)(),arrangement:{default:Object(r.a)({leftOffset:0,xType:"left",topOffset:0,yType:"top",height:t.height,width:t.width,rotation:0,hidden:!1},o)}})}}},86:function(e,t,n){"use strict";var r=n(67),i=n(163);function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(c.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||f,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function y(e,t,n){var r=m(e,t,Object);r.obj[r.k]=n}function O(e,t){var n=m(e,t),r=n.obj,i=n.k;if(r)return r[i]}function j(e,t,n){var r=O(e,n);return void 0!==r?r:O(t,n)}function w(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):w(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function _(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return k[e]})):e}var S="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,s=i[c=r.slice(o,o+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(c&&"string"==typeof s[c])return s[c];var u=r.slice(o+a).join(n);return u?C(s,u,n):void 0}i=i[r[o]]}return i}}var E=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,t),n=Object(s.a)(this,Object(u.a)(t).call(this)),S&&b.call(Object(l.a)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var c=O(this.data,a);return c||!o||"string"!=typeof n?c:C(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),y(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},c=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(c=e.split("."))[1]),this.addNamespaces(t);var s=O(this.data,c)||{};r?w(s,n,i):s=o({},s,n),y(this.data,c,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},T={},P=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),n=Object(s.a)(this,Object(u.a)(t).call(this)),S&&b.call(Object(l.a)(n)),v(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Object(l.a)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=p.create("translator"),n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==Object(r.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var c=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),u=s.key,l=s.namespaces,d=l[l.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var b=n.nsSeparator||this.options.nsSeparator;return d+b+u}return u}var h=this.resolve(e,n),g=h&&h.res,v=h&&h.usedKey||u,m=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(g),O=["[object Number]","[object Function]","[object RegExp]"],j=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(w&&g&&x&&O.indexOf(y)<0&&("string"!=typeof j||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,o({},n,{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(c){var k="[object Array]"===y,_=k?[]:{},S=k?m:v;for(var C in g)if(Object.prototype.hasOwnProperty.call(g,C)){var E="".concat(S).concat(c).concat(C);_[C]=this.translate(E,o({},n,{joinArrays:!1,ns:l})),_[C]===E&&(_[C]=g[C])}g=_}}else if(w&&"string"==typeof j&&"[object Array]"===y)(g=g.join(j))&&(g=this.extendTranslation(g,e,n,i));else{var I=!1,T=!1,P=void 0!==n.count&&"string"!=typeof n.count,A=t.hasDefaultValue(n),N=P?this.pluralResolver.getSuffix(f,n.count):"",F=n["defaultValue".concat(N)]||n.defaultValue;!this.isValidLookup(g)&&A&&(I=!0,g=F),this.isValidLookup(g)||(T=!0,g=u);var R=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=R&&T?void 0:g,M=A&&F!==g&&this.options.updateMissing;if(T||I||M){if(this.logger.log(M?"updateKey":"missingKey",f,d,u,M?F:g),c){var U=this.resolve(u,o({},n,{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,c),u=s.key;n=u;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==c.count&&"string"!=typeof c.count,f=void 0!==c.context&&("string"==typeof c.context||"number"==typeof c.context)&&""!==c.context,p=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!T["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(T["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,s,l=u,p=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,u,n,e,c);else d&&(o=a.pluralResolver.getSuffix(n,c.count)),d&&f&&p.push(l+o),f&&p.push(l+="".concat(a.options.contextSeparator).concat(c.context)),d&&p.push(l+=o);for(;s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,c))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(b);function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(){function e(t){Object(a.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=p.create("languageUtils")}return Object(c.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=A(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=A(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=A(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),F=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function L(){var e={};return F.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:R[t.fc]}}))})),e}var M=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.languageUtils=t,this.options=n,this.logger=p.create("pluralResolver"),this.rules=L()}return Object(c.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.logger=p.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(c.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?x(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?x(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?x(t.nestingPrefix):t.nestingPrefixEscaped||x("$t("),this.nestingSuffix=t.nestingSuffix?x(t.nestingSuffix):t.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,c,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(s.formatSeparator)<0){var i=j(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,o({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),c=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(j(t,u,c),l,n,o({},r,t,{interpolationkey:c}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(c=0;i=t.regex.exec(e);){if(void 0===(a=d(i[1].trim())))if("function"==typeof f){var n=f(e,i,r);a="string"==typeof n?n:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=g(a));var o=t.safeValue(a);if(e=e.replace(i[0],o),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++c>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=o({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,c)).replace(/'/g,'"');try{c=JSON.parse(i),t&&(c=o({},t,c))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete c.defaultValue,e}for(c.applyPostProcessor=!1,delete c.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,l=!0}if((r=t(s.call(this,n[1].trim(),c),c))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return i.format(e,t,a.lng,o({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var D=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,t),i=Object(s.a)(this,Object(u.a)(t).call(this)),S&&b.call(Object(l.a)(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=p.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return Object(d.a)(t,e),Object(c.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],c=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var c="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[c]=2:i.state[c]<0||(1===i.state[c]?a.indexOf(c)<0&&a.push(c):(i.state[c]=1,r=!1,a.indexOf(c)<0&&a.push(c),o.indexOf(c)<0&&o.push(c),s.indexOf(t)<0&&s.push(t)))})),r||c.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:c,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,c,s,u,l,d;r=n.loaded,c=o,u=m(r,[i],Object),l=u.obj,d=u.k,l[d]=l[d]||[],s&&(l[d]=l[d].concat(c)),s||l[d].push(c),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(c,s){c&&s&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(c,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,o({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(b);function B(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(r.a)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Object(r.a)(e[2])||"object"===Object(r.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function V(){}var H=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,t),e=Object(s.a)(this,Object(u.a)(t).call(this)),S&&b.call(Object(l.a)(e)),e.options=z(n),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Object(s.a)(e,Object(l.a)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Object(d.a)(t,e),Object(c.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},B(),this.options,z(t)),this.format=this.options.interpolation.format,n||(n=V),!this.options.isClone){this.modules.logger?p.init(r(this.modules.logger),this.options):p.init(null,this.options);var i=new N(this.options);this.store=new E(this.options.resources,this.options);var a=this.services;a.logger=p,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new M(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new U(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new D(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=h(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=h();return e||(e=this.languages),t||(t=this.options.ns),n||(n=V),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=h();this.emit("languageChanging",e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var o="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var i=this,a=function e(t,a){var c;if("object"!==Object(r.a)(a)){for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var c=n.precheck(this,a);if(void 0!==c)return c}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=h();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=h();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,i=o({},this.options,n,{isClone:!0}),a=new t(i),c=["store","services","language"];return c.forEach((function(t){a[t]=e[t]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new P(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},u=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return c(e)?e:e.replace(o,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===i[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(985),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(123))},985:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,c,s=1,u={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){b(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){b(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){b(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(b,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&b(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;nd.y&&(d.y=g.height),g.width>d.x&&(d.x=g.width)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}return"chat_message_visitor"!==e.environment.runtime&&"chat_message_user"!==e.environment.runtime&&a.allowScaling&&s&&u&&0!==d.x&&0!==d.y?Math.min(u/d.y,s/d.x,1):1}(e,o,u):1}),[o,u])},w=function(e){var t,n=e.store,r=e.innerRef,i=e.children,o=n.data,s=o.project,l=o.info,d=a.b.useCss(),f=Object(u.d)(n),p=j(n),b=void 0===s.mountSelector,h=a.b.jsx("div",{ref:r,className:d(y({scale:p,isFixed:b,isInline:!!s.mountAsInlineBlock,zIndex:null!==(t=s.zIndex)&&void 0!==t?t:c.b,stickToBottom:"bottom"===f.arrangement.default.yType,stickToRight:"right"===f.arrangement.default.xType})),role:"region","aria-label":"".concat(l.projectName," interaction")},i);if(s.mountAsInlineBlock){var g=Object(v.c)(f,{additionalPadding:0});return a.b.jsx("div",{className:d(m({width:g.width*p,height:g.height*p}))},h)}return h},x=n(566),k=function(e){var t,n=e.store,r=n.data,i=r.project,o=r.info,c=r.shown,f=Object(u.d)(n),p=n.playerFeatures.enableResponsivePlayer;!function(e,t){a.b.useEffect((function(){var n=function(n){var r;try{var i=JSON.parse(n.data);if("sendGiosgEvent"===i.type&&(null===(r=i.event)||void 0===r?void 0:r.interactionUid)===t){var o=e.data.project.workflowUid,a=i.event,c=a.action,u=a.dim2,l=a.dim3,d=a.dim4,f=a.workflowUid,p=a.vendor;Object(s.a)({store:e,action:c,workflowUid:f||o,vendor:p,dim2:u||void 0,dim3:l||void 0,stepName:d||void 0})}}catch(e){}};return window.addEventListener("message",n),function(){window.removeEventListener("message",n)}}),[])}(n,o.interactionUuid),t=o.fonts,a.b.useEffect((function(){var e=document.createElement("style");return e.textContent=Object(l.a)(t),document.body.appendChild(e),function(){document.body.removeChild(e)}}),[t]);var b=function(e,t){return a.b.jsx(a.b.Fragment,null,a.b.jsx("div",{tabIndex:0,"data-interaction-id":o.interactionUuid,"aria-label":"Interaction ".concat(o.projectName),ref:t}),i.views.map((function(t){return a.b.jsx(d.a,{key:t.uid,shown:t.uid===f.uid,enter:i.animations.change,exit:i.mountAsInlineBlock?void 0:i.animations.change,render:function(r){return e(a.b.jsx(g.a,{includeElementsIds:!0,store:n,innerRef:r,element:t}),t)}})})),a.b.jsx(h,{store:n}))};return a.b.jsx(d.a,{animateOnMount:!0,shown:c,enter:i.animations.enter,exit:i.animations.exit,render:function(e){return p?b((function(t,r){return a.b.jsx(x.a,{store:n,innerRef:e,isDesignMode:!1,view:r},t)}),e):a.b.jsx(w,{innerRef:e,store:n},b((function(e){return e})))}})},_=n(977),S=function(e){var t=Object(_.a)();return e.store.addUpdateListener((function(){t()})),e.store.isDestroyed?null:e.children},C=n(475),E=n(61),I=n(41),T=n(318),P=n(96),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.g)(t,e),Object.defineProperty(t.prototype,"componentDidCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){Object(E.c)(e)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.children}}),t}(a.b.Component);function N(e,t,n,r){var i,o,l=document.createElement("div");if(l.className=c.h,e.mountAsInlineBlock||(l.style.width="0",l.style.height="0"),Object(P.a)({type:"interactiondesigner:start",interactionId:t.interactionUuid}),Object(s.b)({store:n,action:"start",value:1}),O(e).appendChild(l),e.jsCustom)try{Object(T.c)(null!==(i=e.noUnsafeEvaluation)&&void 0!==i&&i,t.interactionUuid,e.jsCustom,r)}catch(e){var d="Custom JS Error: ".concat(e.message);t.isPreviewMode?(console.info(d),console.info(e),n.setData({error:d})):(console.error(d),console.error(e),n.destroy())}var f=Object(C.b)(l,Object(C.a)(t.projectUid));n.addUpdateListener((function(e){var t=Object.keys((null==e?void 0:e.fields)||{}).length>0,r=Object.keys((null==e?void 0:e.dataFields)||{}).length>0;if(t||r){var i=Object(u.d)(n);Object(I.b)(n,i,[]).catch((function(e){console.log("Error while running events on data update",e)}))}}));var p=A;if(a.b.render(a.b.jsx(p,null,a.b.jsx(a.a.Provider,{value:f},a.b.jsx(S,{store:n},a.b.jsx(k,{store:n})))),l),null===(o=window.giosg)||void 0===o?void 0:o.interactionRuntime){var b=window.giosg.interactionRuntime[t.interactionUuid];b?b.destroy.then(n.destroy.bind(n)):(console.error('No runtime for "'.concat(t.projectName,'". UUID=').concat(t.interactionUuid,".")),Object(E.b)(new Error("Interaction runtime was not found")))}}var F=n(358),R=n(205),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.g)(t,e),t}(Error);function M(e,t){var n,a;return Object(r.e)(this,void 0,void 0,(function(){var c,s,u,l,d,f,p,b,h,g,v;return Object(r.h)(this,(function(m){switch(m.label){case 0:return c=e.project,s=e.info.interactionUuid,[4,(e.info,new Promise((function(e,t){window._giosg?window._giosg((function(){var n=window.GiosgClient;if(n){var r=window.giosg;n.visitorCidDeferred?n.visitorCidDeferred.then((function(){r?e([r,n]):t(new Error("No giosg or no _giosg"))})):e([r,n])}else t(new Error("No giosg or no GiosgClient!"))})):e([void 0,void 0])})))];case 1:if(u=r.k.apply(void 0,[m.sent(),2]),l=u[0],d=u[1],f=Object(r.a)(Object(r.a)({},c),{views:c.views.map((function(e){return Object(i.a)(e,c)}),c)}),p=new F.a(f,e.info,l,d),b=new o.b(p),t){if(p.setData({shown:!1}),s in(null!==(n=window.giosgInteractions)&&void 0!==n?n:{}))throw new L('Interaction with UID "'.concat(s,'" was already initialized. Same interaction can\'t be added to the page more than once when using "preventAutomaticStartup" flag.'));window.giosgInteractions=Object(r.a)(Object(r.a)({},null!==(a=window.giosgInteractions)&&void 0!==a?a:{}),((v={})[s]=b,v))}return h=p.environment.getInteractionBuilderBaseUrl(),Object(R.b)(c,l),[4,Object(T.a)(c.noUnsafeEvaluation,h,e.info)];case 2:return m.sent(),Object(P.a)({type:"interactiondesigner:ready",interactionId:s}),p.data.shown?N(c,e.info,p,b):g=p.addUpdateListener((function(){p.data.shown&&(g(),N(c,e.info,p,b))})),[2,{destroy:function(){return p.destroy()}}]}}))}))}n.p=document.currentScript&&"src"in document.currentScript?"".concat(new URL(document.currentScript.src).origin,"/"):"https://globalcdn.interactiondesigner.giosg.com/"}});