!function(e){function t(t){for(var n,i,o=t[0],a=t[1],u=0,c=[];u=0;u--)(i=e[u])&&(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 c(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 u(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,u)}s((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[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||u(e,t)}))},t&&(r[e]=t(r[e])))}function u(e,t){try{(n=i[e](t)).value instanceof h?Promise.resolve(n.value.v).then(s,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),o.shift(),o.length&&u(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;"function"==typeof SuppressedError&&SuppressedError},100:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},101:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={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:{a:1,b:255,g:255,r:255},backgroundHoverColor:{r:235,g:235,b:235,a:1},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0,paddingsNew:{top:12,right:12,bottom:12,left:12}}},103:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(31),i=function(e){var t,n,i;return null!==(i=null===(n=null===(t=e.publishingSettings)||void 0===t?void 0:t[0])||void 0===n?void 0:n.interactionType)&&void 0!==i?i:r.a.WebsiteNormal}},108:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=n(63),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,u=new o;var s=new o;function c(e){return"local"===e?function(){var e;try{return(!a||a.hasSufficientPermissions([i.d.AccessLocalOrSessionStorage]))&&null!==(e=window.localStorage)&&void 0!==e?e:u}catch(e){return u}}():function(){var e;try{return(!a||a.hasSufficientPermissions([i.d.AccessLocalOrSessionStorage]))&&null!==(e=window.sessionStorage)&&void 0!==e?e:s}catch(e){return s}}()}},113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.darken=t.transparentize=t.hexToRgb=void 0;var r=n(534),i=n(535);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)),u=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,u))}},115: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",backgroundImageGiosgAssetUrl:void 0,paddingsNew:{top:0,right:0,bottom:0,left:0}}},119: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 l}));var r=n(1),i=n(28),o=n(299);function a(e,t){var n,r;return"select"===e.type||"radio"===e.type?"number"!=typeof t?"":null!==(r=null===(n=e.options[t])||void 0===n?void 0:n.label)&&void 0!==r?r:"":"checkbox"===e.type?"boolean"!=typeof t?"":t:"input"===e.type?Object(o.a)(t,e)?t:"":t}var u=["variable name","element name","element uid"];function s(e,t){var n,r=e.variableName,o=e.name,a=e.uid,s=((n={})["variable name"]=r,n["element name"]=o,n["element uid"]=a,n);return u.includes(t)?s[t]:Object(i.a)(t)}function c(e,t,n){var i,o,a=(void 0===n?{filterEmptyAndUndefined:!0}:n).filterEmptyAndUndefined,u={};try{for(var c=Object(r.n)(e.elementVariableValues),l=c.next();!l.done;l=c.next()){var d=l.value,f=s(d,t),p=d.value;Array.isArray(p)||a&&(void 0===!p||""===p)||(u[f]=p)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return u}function l(e){return Object(r.a)(Object(r.a)({},c(e,"variable name")),e.data.dataFields)}},123:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u}));var r=n(358),i=function(e){return{top:"flex-start",center:"center",bottom:"flex-end"}[e]},o=function(e){return"type"in e&&r.a.includes(e.type)},a=function(e){return"rich-text-".concat(e)},u=function(e){var t;return null!==(t={LIST_BULLETED:"ul",LIST_NUMBERED:"ol",LIST_ITEM:"li",PARAGRAPH:"p"}[e])&&void 0!==t?t:"p"}},126:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(47),i=n(141),o=n(53),a=n(115),u=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.b)(r.a.t("designStep.elementsDefaults.TextLabel"),null!=e?e:a.a)}}}),{width:120,height:40})},128:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"h",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return d}));var r=n(67);function i(e){return/^(([^<>()\[\]\\.,;:\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 ()-]+$/.test(e)||/[ ]{3}|\-{2}| -|- |\)-/.test(e))return!1;var t=e.replace(/[ ()-]/g,"");if(t.length>0&&t.length<4)return!0;return/^[+]?[0-9]{4,15}$/.test(t)}function a(e){return!isNaN(e)}function u(e){return/^\-?\d*(\.\d*)?$/.test(e)}function s(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 c(e){return f(e)||null!==s(e)}function l(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 d(e,t){return void 0===t&&(t=!0),f(e)||null!==l(e,t)}function f(e){return/^\s*$/i.test(e)}},13:function(e,t,n){"use strict";n.d(t,"y",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"x",(function(){return s})),n.d(t,"v",(function(){return c})),n.d(t,"u",(function(){return f})),n.d(t,"t",(function(){return p})),n.d(t,"w",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return y})),n.d(t,"l",(function(){return D})),n.d(t,"i",(function(){return O})),n.d(t,"a",(function(){return C})),n.d(t,"q",(function(){return j})),n.d(t,"s",(function(){return x})),n.d(t,"j",(function(){return E})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return k})),n.d(t,"d",(function(){return F})),n.d(t,"m",(function(){return B})),n.d(t,"r",(function(){return S})),n.d(t,"p",(function(){return _})),n.d(t,"k",(function(){return P}));var r=n(1),i=n(27),o=n(25);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 u=function(e,t){return e?t:{}},s=function(){for(var e=[],t=0;t span":{display:"table-cell",verticalAlign:"middle"}}},A=function(e,t){return!t&&e.isInIframe?{pointerEvents:"none"}:{}},k=function(e,t,n){return Object(r.a)({opacity:e.opacity,lineHeight:"initial",minWidth:"initial","-webkit-font-smoothing":"initial",display:"block",pointerEvents:"initial"},n?{cursor:"pointer"}:{})},F=function(e,t,n,r,o){var a=e.yType,u=e.xType,s=e.width,c=e.height,l=e.rotation,d=e.leftOffset,f=e.rightOffset,p=e.topOffset,h=e.bottomOffset,b=e.flowOffsetY,g=e.flowOffsetLeft,v=e.flowOffsetRight;if("flow"===a){var m=null!=g?g:"middle"===u?"auto":null!=d?d:"auto",y=null!=v?v:"middle"===u?"auto":null!=f?f:"auto",D="stretch"===u?"calc(100% - ".concat(m,"px - ").concat(y,"px)"):s===i.a?"100%":s,O=[];return"middle"===u&&void 0===g&&0!==(null!=d?d:0)&&O.push("translateX(".concat(d,"px)")),l&&O.push("rotate(".concat(l,"deg)")),{position:"relative",marginTop:null!=b?b:"auto",marginBottom:0,marginLeft:m,marginRight:y,width:D,minHeight:c===i.a?"100%":c,height:r?1:void 0,display:n?"none":void 0,transform:O.join(" "),boxSizing:"border-box"}}var w="stretch"===a?"unset":c===i.a?"100%":c;return{position:t?"relative":"absolute",margin:"".concat("middle"===a?"auto":0," ").concat("middle"===u?"auto":0),top:null!=p?p:"auto",left:null!=d?d:"auto",right:"middle"===u?-(null!=d?d:0):null!=f?f:"auto",bottom:"middle"===a?-(null!=p?p:0):null!=h?h:"auto",width:"stretch"===u?"unset":s===i.a?"100%":s,minHeight:w,height:"middle"===a?w:r&&"stretch"!==a?1:void 0,display:n?"none":void 0,transform:l?"rotate(".concat(l,"deg)"):void 0,boxSizing:"border-box",overflowY:"stretch"===a&&o?"auto":"visible"}},B=function(){return{"*:not(.ib-disable-style-reset *, .ib-disable-style-reset)":{padding:"0",backfaceVisibility:"visible",background:"0",backgroundAttachment:"scroll",backgroundClip:"border-box",backgroundColor:"transparent",backgroundImage:"none",backgroundOrigin:"padding-box",backgroundPosition:"0 0",backgroundPositionX:"0",backgroundPositionY:"0",backgroundRepeat:"repeat",backgroundSize:"auto auto",border:"0",borderStyle:"none",borderWidth:"medium",borderColor:"inherit",borderBottom:"0",borderBottomColor:"inherit",borderBottomLeftRadius:"0",borderBottomRightRadius:"0",borderBottomStyle:"none",borderBottomWidth:"medium",borderCollapse:"separate",borderImage:"none",borderLeft:"0",borderLeftColor:"inherit",borderLeftStyle:"none",borderLeftWidth:"medium",borderRadius:"0",borderRight:"0",borderRightColor:"inherit",borderRightStyle:"none",borderRightWidth:"medium",borderSpacing:"0",borderTop:"0",borderTopColor:"inherit",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderTopStyle:"none",borderTopWidth:"medium",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnRuleColor:"currentColor",columnRuleStyle:"none",columnRuleWidth:"none",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",emptyCells:"show",float:"none",font:"normal",fontFamily:"inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",lineHeight:"normal",listStyle:"none",listStyleImage:"none",listStylePosition:"outside",listStyleType:"disc",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:1,outline:"0",outlineColor:"invert",outlineStyle:"none",outlineWidth:"medium",overflow:"visible",overflowX:"visible",overflowY:"visible",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",pointerEvents:"initial",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none",textDecorationColor:"inherit",textDecorationLine:"none",textDecorationStyle:"solid",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformStyle:"flat",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"}}},S=function(e){switch(e){case"disabled":return{opacity:.25,cursor:"not-allowed"};case"hidden":case"visible":return}},_=function(e){var t=e.textColor;return{"&&":{color:c(t)}}},P=function(e){var t;return void 0===e&&(e=":focus-visible"),(t={})[e]={outline:"2px solid #000000",outlineOffset:"2px",boxShadow:"0px 0px 0px 6px #ffffff"},t}},131:function(e,t,n){"use strict";function r(){return"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)}))}n.d(t,"a",(function(){return r}))},132:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(75),i=n(100);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)}},134:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r="^(https?:\\/\\/)?\\S+\\.\\S{2,}$",i=new RegExp(r);function o(e){return e.split(/((?:http\:\/\/|https\:\/\/)?\w(?:[\w\-\.]*)\.(?:\w+)(?:\/|\w|\%\d\d)*#?(?:[\w\/\-]*))/g)}function a(e,t){return void 0===t&&(t="https"),e.startsWith("http://")||e.startsWith("https://")?e:"".concat(t,"://").concat(e)}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c}));var r=n(1),i=n(20),o=function(e){var t=Object(i.f)();return{uid:t,elements:e,isComponent:!1,originGroupInstanceUid:t}},a=function(e){return e.originGroupInstanceUid||(e.originGroupInstanceUid=e.uid),e},u=function(e){var t;return{isComponent:!1,originGroupInstanceUid:null!==(t=e.originGroupInstanceUid)&&void 0!==t?t:e.uid}},s=function(e){return!!e&&!1!==e.isComponent},c=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:"scrollable"===e.type?e.groupElement.groupUid===t.groupUid&&e.groupElement.uid!==t.uid:void 0}))}))}},138:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},139:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r={inputs:[],outputs:[]},i=function(e,t){return e.replace(new RegExp("^".concat(t)),"").trim()},o=function(e,t){return"".concat(t).concat(e)}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ie})),n.d(t,"b",(function(){return Ee})),n.d(t,"c",(function(){return Be})),n.d(t,"d",(function(){return Pe})),n.d(t,"e",(function(){return pe})),n.d(t,"f",(function(){return Ve})),n.d(t,"g",(function(){return je})),n.d(t,"h",(function(){return Me})),n.d(t,"i",(function(){return Ge})),n.d(t,"j",(function(){return Et})),n.d(t,"k",(function(){return yr}));var r=n(76);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function d(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return M&&e instanceof Map}function h(e){return U&&e instanceof Set}function b(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y(e);delete t[q];for(var n=J(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&u(e,(function(e,t){return v(t,!0)}),!0)),e}function m(){i(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function D(e){var t=Z[e];return t||i(18,e),t}function O(){return V}function w(e,t){t&&(D("Patches"),e.u=[],e.s=[],e.v=t)}function C(e){j(e),e.p.forEach(E),e.p=null}function j(e){e===V&&(V=e.l)}function x(e){return V={p:[],l:V,h:e,m:!0,_:0}}function E(e){var t=e[q];0===t.i||1===t.i?t.j():t.O=!0}function A(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||D("ES5").S(t,e,r),r?(n[q].P&&(C(t),i(4)),a(e)&&(e=k(t,e),t.l||B(t,e)),t.u&&D("Patches").M(n[q].t,e,t.u,t.s)):e=k(t,n,[]),C(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function k(e,t,n){if(y(t))return t;var r=t[q];if(!r)return u(t,(function(i,o){return F(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return B(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=g(r.k):r.o;u(3===r.i?new Set(i):i,(function(t,o){return F(e,r,i,t,o,n)})),B(e,i,!1),n&&e.u&&D("Patches").R(r,n,e.u,e.s)}return r.o}function F(e,t,n,r,i,u){if(o(i)){var s=k(e,i,u&&t&&3!==t.i&&!c(t.D,r)?u.concat(r):void 0);if(d(n,r,s),!o(s))return;e.m=!1}if(a(i)&&!y(i)){if(!e.h.F&&e._<1)return;k(e,i),t&&t.A.l||B(e,i)}}function B(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&v(t,n)}function S(e,t){var n=e[q];return(n?b(n):e)[t]}function _(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function P(e){e.P||(e.P=!0,e.l&&P(e.l))}function T(e){e.o||(e.o=g(e.t))}function I(e,t,n){var r=p(t)?D("MapSet").N(t,n):h(t)?D("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:O(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=K;n&&(i=[r],o=X);var a=Proxy.revocable(i,o),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):D("ES5").J(t,n);return(n?n.A:O()).p.push(r),r}function R(e){return o(e)||i(22,e),function e(t){if(!a(t))return t;var n,r=t[q],i=s(t);if(r){if(!r.P&&(r.i<4||!D("ES5").K(r)))return r.t;r.I=!0,n=N(t,i),r.I=!1}else n=N(t,i);return u(n,(function(t,i){r&&l(r.t,t)===i||d(n,t,e(i))})),3===i?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}var L,V,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),M="undefined"!=typeof Map,U="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=z?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),H=z?Symbol.for("immer-draftable"):"__$immer_draftable",q=z?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Y=Object.getOwnPropertyDescriptors||function(e){var t={};return J(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Z={},K={get:function(e,t){if(t===q)return e;var n=b(e);if(!c(n,t))return function(e,t,n){var r,i=_(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!a(r)?r:r===S(e.t,t)?(T(e),e.o[t]=I(e.A.h,r,e)):r},has:function(e,t){return t in b(e)},ownKeys:function(e){return Reflect.ownKeys(b(e))},set:function(e,t,n){var r=_(b(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=S(b(e),t),o=null==i?void 0:i[q];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,i)&&(void 0!==n||c(e.t,t)))return!0;T(e),P(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==S(e.t,t)||t in e.t?(e.D[t]=!1,T(e),P(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=b(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},X={};u(K,(function(e,t){X[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),X.deleteProperty=function(e,t){return X.set.call(this,e,t,void 0)},X.set=function(e,t,n){return K.set.call(this,e[0],t,n,e[0])};var Q=new(function(){function e(e){var t=this;this.g=$,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var u=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=D("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),ee=Q.produce,te=(Q.produceWithPatches.bind(Q),Q.setAutoFreeze.bind(Q),Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q),Q.createDraft.bind(Q)),ne=Q.finishDraft.bind(Q),re={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=pe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},ie={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=Ve.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},oe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=je.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},ae=new WeakMap,ue=new WeakMap,se=new WeakMap,ce=new WeakMap,le=new WeakMap,de=new WeakMap,fe=new WeakMap,pe={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=pe.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;rt[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return pe.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return pe.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return pe.equals(r,i)&&oe.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===pe.compare(e,t),isAncestor:(e,t)=>e.length-1===pe.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===pe.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===pe.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===pe.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===pe.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&pe.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!pe.isAncestor(t,e)&&!pe.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(pe.equals(o,r)||pe.endsBefore(o,r)||pe.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(pe.equals(a,r)||pe.isAncestor(a,r))return null;pe.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;pe.equals(u,r)||pe.endsBefore(u,r)?r[u.length-1]-=1:pe.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:c,position:l}=t;if(pe.equals(c,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else pe.endsBefore(c,r)?r[c.length-1]+=1:pe.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:d,newPath:f}=t;if(pe.equals(d,f))return r;if(pe.isAncestor(d,r)||pe.equals(d,r)){var p=f.slice();return pe.endsBefore(d,f)&&d.length{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=Be.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[u,s]of je.points(t))t[s]=Ve.transform(u,n);break;case"insert_text":var{path:c,offset:l,text:d}=n;if(0===d.length)break;var f=Be.leaf(e,c),p=f.text.slice(0,l),h=f.text.slice(l);if(f.text=p+d+h,t)for(var[b,g]of je.points(t))t[g]=Ve.transform(b,n);break;case"merge_node":var{path:v}=n,m=Be.get(e,v),y=pe.previous(v),D=Be.get(e,y),O=Be.parent(e,v),w=v[v.length-1];if(Ge.isText(m)&&Ge.isText(D))D.text+=m.text;else{if(Ge.isText(m)||Ge.isText(D))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(Me.stringify(m)," ").concat(Me.stringify(D)));D.children.push(...m.children)}if(O.children.splice(w,1),t)for(var[C,j]of je.points(t))t[j]=Ve.transform(C,n);break;case"move_node":var{path:x,newPath:E}=n;if(pe.isAncestor(x,E))throw new Error("Cannot move a path [".concat(x,"] to new path [").concat(E,"] because the destination is inside itself."));var A=Be.get(e,x),k=Be.parent(e,x),F=x[x.length-1];k.children.splice(F,1);var B=pe.transform(x,n),S=Be.get(e,pe.parent(B)),_=B[B.length-1];if(S.children.splice(_,0,A),t)for(var[P,T]of je.points(t))t[T]=Ve.transform(P,n);break;case"remove_node":var{path:I}=n,R=I[I.length-1];if(Be.parent(e,I).children.splice(R,1),t)for(var[N,L]of je.points(t)){var V=Ve.transform(N,n);if(null!=t&&null!=V)t[L]=V;else{var z=void 0,M=void 0;for(var[U,$]of Be.texts(e)){if(-1!==pe.compare($,I)){M=[U,$];break}z=[U,$]}var W=!1;z&&M&&(W=pe.equals(M[1],I)?!pe.hasPrevious(M[1]):pe.common(z[1],I).length{for(var n in e){var i=e[n],o=t[n];if(Object(r.a)(i)&&Object(r.a)(o)){if(!De(i,o))return!1}else if(Array.isArray(i)&&Array.isArray(o)){if(i.length!==o.length)return!1;for(var a=0;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var we=["anchor","focus"];function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var je={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return je.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=je.edges(e);return t},equals:(e,t)=>Ve.equals(e.anchor,t.anchor)&&Ve.equals(e.focus,t.focus),includes(e,t){if(je.isRange(t)){if(je.includes(e,t.anchor)||je.includes(e,t.focus))return!0;var[n,r]=je.edges(e),[i,o]=je.edges(t);return Ve.isBefore(n,i)&&Ve.isAfter(r,o)}var[a,u]=je.edges(e),s=!1,c=!1;return Ve.isPoint(t)?(s=Ve.compare(t,a)>=0,c=Ve.compare(t,u)<=0):(s=pe.compare(t,a.path)>=0,c=pe.compare(t,u.path)<=0),s&&c},intersection(e,t){var n=Oe(e,we),[r,i]=je.edges(e),[o,a]=je.edges(t),u=Ve.isBefore(r,o)?o:r,s=Ve.isBefore(i,a)?i:a;return Ve.isBefore(s,u)?null:function(e){for(var t=1;t!je.isCollapsed(e),isForward:e=>!je.isBackward(e),isRange:e=>Object(r.a)(e)&&Ve.isPoint(e.anchor)&&Ve.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=je.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ee(e,e=>{if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=je.isCollapsed(e);je.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?je.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var u=Ve.transform(e.anchor,t,{affinity:r}),s=Ve.transform(e.focus,t,{affinity:i});if(!u||!s)return null;e.anchor=u,e.focus=s})}},xe=e=>Object(r.a)(e)&&Be.isNodeList(e.children)&&!Ie.isEditor(e),Ee={isAncestor:e=>Object(r.a)(e)&&Be.isNodeList(e.children),isElement:xe,isElementList:e=>Array.isArray(e)&&e.every(e=>Ee.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return xe(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Ae=["children"],ke=["text"],Fe=new WeakMap,Be={ancestor(e,t){var n=Be.get(e,t);if(Ge.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Me.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of pe.ancestors(t,n)){var i=[Be.ancestor(e,r),r];yield i}},child(e,t){if(Ge.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Me.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Me.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=Be.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Be.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Be.nodes(e,t))Ee.isElement(n)&&(yield[n,r])},extractProps:e=>Ee.isAncestor(e)?Oe(e,Ae):Oe(e,ke),first(e,t){for(var n=t.slice(),r=Be.get(e,n);r&&!Ge.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Ge.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Me.stringify(e)));return ee({children:e.children},e=>{var[n,r]=je.edges(t),i=Be.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!je.includes(t,n)}});for(var[,o]of i){if(!je.includes(t,o)){var a=Be.parent(e,o),u=o[o.length-1];a.children.splice(u,1)}if(pe.equals(o,r.path)){var s=Be.leaf(e,o);s.text=s.text.slice(0,r.offset)}if(pe.equals(o,n.path)){var c=Be.leaf(e,o);c.text=c.text.slice(n.offset)}}Ie.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;rGe.isText(e)||Ee.isElement(e)||Ie.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Fe.get(e);if(void 0!==t)return t;var n=e.every(e=>Be.isNode(e));return Fe.set(e,n),n},last(e,t){for(var n=t.slice(),r=Be.get(e,n);r&&!Ge.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=Be.get(e,t);if(!Ge.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Me.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of pe.levels(t,n)){var i=Be.get(e,r);yield[i,r]}},matches:(e,t)=>Ee.isElement(e)&&Ee.isElementProps(t)&&Ee.matches(e,t)||Ge.isText(e)&&Ge.isTextProps(t)&&Ge.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,u=[],s=e;!o||!(r?pe.isBefore(u,o):pe.isAfter(u,o));)if(a.has(s)||(yield[s,u]),a.has(s)||Ge.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var c=pe.next(u);if(Be.has(e,c)){u=c,s=Be.get(e,u);continue}}if(r&&0!==u[u.length-1])u=pe.previous(u),s=Be.get(e,u);else u=pe.parent(u),s=Be.get(e,u),a.add(s)}else{a.add(s);var l=r?s.children.length-1:0;pe.isAncestor(u,i)&&(l=i[u.length]),u=u.concat(l),s=Be.get(e,u)}},parent(e,t){var n=pe.parent(t),r=Be.get(e,n);if(Ge.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Ge.isText(e)?e.text:e.children.map(Be.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Be.nodes(e,t))Ge.isText(n)&&(yield[n,r])}};function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;tPe.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Object(r.a)(e))return!1;switch(e.type){case"insert_node":return pe.isPath(e.path)&&Be.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&pe.isPath(e.path);case"merge_node":return"number"==typeof e.position&&pe.isPath(e.path)&&Object(r.a)(e.properties);case"move_node":return pe.isPath(e.path)&&pe.isPath(e.newPath);case"remove_node":return pe.isPath(e.path)&&Be.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&pe.isPath(e.path);case"set_node":return pe.isPath(e.path)&&Object(r.a)(e.properties)&&Object(r.a)(e.newProperties);case"set_selection":return null===e.properties&&je.isRange(e.newProperties)||null===e.newProperties&&je.isRange(e.properties)||Object(r.a)(e.properties)&&Object(r.a)(e.newProperties);case"split_node":return pe.isPath(e.path)&&"number"==typeof e.position&&Object(r.a)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>Pe.isOperation(e)),isSelectionOperation:e=>Pe.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Pe.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return _e(_e({},e),{},{type:"remove_node"});case"insert_text":return _e(_e({},e),{},{type:"remove_text"});case"merge_node":return _e(_e({},e),{},{type:"split_node",path:pe.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(pe.equals(t,n))return e;if(pe.isSibling(n,t))return _e(_e({},e),{},{path:t,newPath:n});var r=pe.transform(n,e),i=pe.transform(pe.next(n),e);return _e(_e({},e),{},{path:r,newPath:i});case"remove_node":return _e(_e({},e),{},{type:"insert_node"});case"remove_text":return _e(_e({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return _e(_e({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:u,newProperties:s}=e;return _e(_e({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return _e(_e({},e),{},{type:"merge_node",path:pe.next(e.path)})}}},Te=new WeakMap,Ie={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=Te.get(e);if(void 0!==t)return t;if(!Object(r.a)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||Object(r.a)(e.marks))&&(null===e.selection||je.isRange(e.selection))&&Be.isNodeList(e.children)&&Pe.isOperationList(e.operations);return Te.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)}},Re={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(pe.isPath)};function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;tt.offset?1:0:n},isAfter:(e,t)=>1===Ve.compare(e,t),isBefore:(e,t)=>-1===Ve.compare(e,t),equals:(e,t)=>e.offset===t.offset&&pe.equals(e.path,t.path),isPoint:e=>Object(r.a)(e)&&"number"==typeof e.offset&&pe.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ee(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=pe.transform(i,t,n);break;case"insert_text":pe.equals(t.path,i)&&(t.offsetJSON.stringify(e,ze)},Ue=["text"],$e=["anchor","focus"];function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return Oe(e,Ue)}return De(r?i(e):e,r?i(t):t)},isText:e=>Object(r.a)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>Ge.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[He({},e)];for(var r of t){var i=Oe(r,$e),[o,a]=je.edges(r),u=[],s=0,c=o.offset,l=a.offset;for(var d of n){var{length:f}=d.text,p=s;if(s+=f,c<=p&&s<=l)Object.assign(d,i),u.push(d);else if(c!==l&&(c===s||l===p)||c>s||lp){var m=c-p;b=He(He({},h),{},{text:h.text.slice(0,m)}),h=He(He({},h),{},{text:h.text.slice(m)})}Object.assign(h,i),b&&u.push(b),u.push(h),g&&u.push(g)}}n=u}return n}},Je=e=>e.selection?e.selection:e.children.length>0?Ie.end(e,[]):[0],Ye=(e,t)=>{var[n]=Ie.node(e,t);return e=>e===n},Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?rt(e):e,i=qe.None,o=qe.None,a=0,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var l=bt(s,c);if([i,o]=n?[o,l]:[l,i],gt(i,qe.ZWJ)&>(o,qe.ExtPict)&&!Dt(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(gt(i,qe.RI)&>(o,qe.RI)&&!(u=null!==u?!u:!!n||wt(e.substring(0,e.length-a))))break;if(i!==qe.None&&o!==qe.None&&mt(i,o))break;a+=s.length}return a||1},Ke=/\s/,Xe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Qe=/['\u2018\u2019]/,et=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=Ze(e,t),[o,a]=tt(e,i,t);if(nt(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n},tt=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},nt=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Ke.test(t))return!1;if(Qe.test(t)){var i=Ze(n,r),[o,a]=tt(n,i,r);if(e(o,a,r))return!0}return!Xe.test(t)},rt=function*(e){for(var t=e.length-1,n=0;ne>=55296&&e<=56319,ot=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(qe||(qe={}));var at=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ut=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,st=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ct=/^[\u1100-\u115F\uA960-\uA97C]$/,lt=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,dt=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ft=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,pt=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ht=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,bt=(e,t)=>{var n=qe.Any;return-1!==e.search(at)&&(n|=qe.Extend),8205===t&&(n|=qe.ZWJ),t>=127462&&t<=127487&&(n|=qe.RI),-1!==e.search(ut)&&(n|=qe.Prepend),-1!==e.search(st)&&(n|=qe.SpacingMark),-1!==e.search(ct)&&(n|=qe.L),-1!==e.search(lt)&&(n|=qe.V),-1!==e.search(dt)&&(n|=qe.T),-1!==e.search(ft)&&(n|=qe.LV),-1!==e.search(pt)&&(n|=qe.LVT),-1!==e.search(ht)&&(n|=qe.ExtPict),n};function gt(e,t){return 0!=(e&t)}var vt=[[qe.L,qe.L|qe.V|qe.LV|qe.LVT],[qe.LV|qe.V,qe.V|qe.T],[qe.LVT|qe.T,qe.T],[qe.Any,qe.Extend|qe.ZWJ],[qe.Any,qe.SpacingMark],[qe.Prepend,qe.Any],[qe.ZWJ,qe.ExtPict],[qe.RI,qe.RI]];function mt(e,t){return-1===vt.findIndex(n=>gt(e,n[0])&>(t,n[1]))}var yt=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Dt=e=>-1!==e.search(yt),Ot=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wt=e=>{var t=e.match(Ot);return null!==t&&t[0].length/2%2==1},Ct={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ie.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=Je(e)}=n;if(pe.isPath(i)&&(i=Ie.range(e,i)),je.isRange(i))if(je.isCollapsed(i))i=i.anchor;else{var o=je.end(i);if(!r&&Ie.void(e,{at:o}))return;var a=je.start(i),u=Ie.pointRef(e,a),s=Ie.pointRef(e,o);Et.delete(e,{at:i,voids:r});var c=u.unref(),l=s.unref();i=c||l,Et.setSelection(e,{anchor:i,focus:i})}if(!(!r&&Ie.void(e,{at:i})||Ie.elementReadOnly(e,{at:i}))){var{path:d,offset:f}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}})}};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t{for(var n of Ie.pathRefs(e))re.transform(n,t);for(var r of Ie.pointRefs(e))ie.transform(r,t);for(var i of Ie.rangeRefs(e))oe.transform(i,t);var o,a,u=ae.get(e)||[],s=ue.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(pe.operationCanTransformPath(t))for(var l of(o=[],a=new Set,u)){c(pe.transform(l,t))}else o=u,a=s;var d=e.getDirtyPaths(t);for(var f of d)c(f);ae.set(e,o),ue.set(e,a),Et.transform(e,t),e.operations.push(t),Ie.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),se.get(e)||(se.set(e,!0),Promise.resolve().then(()=>{se.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},kt=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return pe.levels(n);case"insert_node":var{node:r,path:i}=t;return[...pe.levels(i),...Ge.isText(r)?[]:Array.from(Be.nodes(r),e=>{var[,t]=e;return i.concat(t)})];case"merge_node":var{path:o}=t;return[...pe.ancestors(o),pe.previous(o)];case"move_node":var{path:a,newPath:u}=t;if(pe.equals(a,u))return[];var s=[],c=[];for(var l of pe.ancestors(a)){var d=pe.transform(l,t);s.push(d)}for(var f of pe.ancestors(u)){var p=pe.transform(f,t);c.push(p)}var h=c[c.length-1],b=u[u.length-1],g=h.concat(b);return[...s,...c,g];case"remove_node":var{path:v}=t;return[...pe.ancestors(v)];case"split_node":var{path:m}=t;return[...pe.levels(m),pe.next(m)];default:return[]}},Ft=e=>{var{selection:t}=e;return t?Be.fragment(e,t):[]},Bt=(e,t)=>{var[n,r]=t;if(!Ge.isText(n))if(Ee.isElement(n)&&0===n.children.length){Et.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var i=!Ie.isEditor(n)&&(Ee.isElement(n)&&(e.isInline(n)||0===n.children.length||Ge.isText(n.children[0])||e.isInline(n.children[0]))),o=0,a=0;a{var{iteration:n,initialDirtyPathsLength:r}=t,i=42*r;if(n>i)throw new Error("Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=Ie.path(e,i),u="lowest"===r;for(var[s,c]of Ie.levels(e,{at:a,voids:n,match:o,reverse:u}))if(!Ge.isText(s))if(je.isRange(i)){if(pe.isAncestor(c,i.anchor.path)&&pe.isAncestor(c,i.focus.path))return[s,c]}else if(!pe.equals(a,c))return[s,c]}};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t{var{selection:r}=e;if(r){var i=(t,n)=>{if(!Ge.isText(t))return!1;var[r,i]=Ie.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=je.isExpanded(r),a=!1;if(!o){var[u,s]=Ie.node(e,r);if(u&&i(u,s)){var[c]=Ie.parent(e,s);a=c&&e.markableVoid(c)}}if(o||a)Et.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var l=Tt(Tt({},Ie.marks(e)||{}),{},{[t]:n});e.marks=l,se.get(e)||e.onChange()}}};function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},i=Ie.point(e,t,{edge:"end"}),o=Ie.end(e,[]),a={anchor:i,focus:o},{distance:u=1}=r,s=0;for(var c of Ie.positions(e,Nt(Nt({},r),{},{at:a}))){if(s>u)break;0!==s&&(n=c),s++}return n};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},i=Ie.start(e,[]),o=Ie.point(e,t,{edge:"start"}),a={anchor:i,focus:o},{distance:u=1}=r,s=0;for(var c of Ie.positions(e,zt(zt({},r),{},{at:a,reverse:!0}))){if(s>u)break;0!==s&&(n=c),s++}return n},Ut=(e,t)=>{var{selection:n}=e;n&&je.isCollapsed(n)&&Et.delete(e,{unit:t,reverse:!0})},$t=(e,t)=>{var{selection:n}=e;n&&je.isCollapsed(n)&&Et.delete(e,{unit:t})},Wt=function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&je.isExpanded(n)&&Et.delete(e,{reverse:"backward"===t})},Ht=(e,t)=>[Ie.start(e,t),Ie.end(e,t)];function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return Ie.above(e,Gt(Gt({},t),{},{match:t=>Ee.isElement(t)&&Ie.isElementReadOnly(e,t)}))},Yt=(e,t)=>Ie.point(e,t,{edge:"end"}),Zt=(e,t)=>{var n=Ie.path(e,t,{edge:"start"});return Ie.node(e,n)},Kt=(e,t)=>{var n=Ie.range(e,t);return Be.fragment(e,n)};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return Ie.above(e,Qt(Qt({},t),{},{match:t=>Ee.isElement(t)&&Ie.isVoid(e,t)}))},tn=(e,t)=>t.children.some(t=>Ee.isElement(t)&&Ie.isBlock(e,t)),nn=(e,t)=>t.children.some(t=>Ge.isText(t)||Ie.isInline(e,t)),rn=(e,t)=>Be.has(e,t),on=(e,t)=>t.children.every(e=>Ge.isText(e)),an=e=>{Et.splitNodes(e,{always:!0})},un=(e,t,n)=>{Et.insertNodes(e,t,n)},sn=e=>{Et.splitNodes(e,{always:!0})};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:i}=e;if(r){if(i){var o=ln({text:t},i);Et.insertNodes(e,o,{at:n.at,voids:n.voids})}else Et.insertText(e,t,n);e.marks=null}},fn=(e,t)=>!e.isInline(t),pn=(e,t,n)=>Ie.isStart(e,t,n)||Ie.isEnd(e,t,n),hn=(e,t)=>{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Ge.isText(r)&&""===r.text&&!e.isVoid(t)},bn=(e,t,n)=>{var r=Ie.end(e,n);return Ve.equals(t,r)},gn=e=>{var t=ce.get(e);return void 0===t||t},vn=(e,t,n)=>{if(0!==t.offset)return!1;var r=Ie.start(e,n);return Ve.equals(t,r)},mn=(e,t)=>{var n=Ie.path(e,t,{edge:"end"});return Ie.node(e,n)},yn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ie.path(e,t,n),i=Be.leaf(e,r);return[i,r]};function*Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],u=Ie.path(e,n);for(var[s,c]of Be.levels(e,u))if(o(s,c)&&(a.push([s,c]),!i&&Ee.isElement(s)&&Ie.isVoid(e,s)))break;r&&a.reverse(),yield*a}}var On=["text"],wn=["text"],Cn=function(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(je.isExpanded(n)){var[r]=Ie.nodes(e,{match:Ge.isText});if(r){var[i]=r;return Oe(i,On)}return{}}var{anchor:o}=n,{path:a}=o,[u]=Ie.leaf(e,a);if(0===o.offset){var s=Ie.previous(e,{at:a,match:Ge.isText});if(!Ie.above(e,{match:t=>Ee.isElement(t)&&Ie.isVoid(e,t)&&e.markableVoid(t)})){var c=Ie.above(e,{match:t=>Ee.isElement(t)&&Ie.isBlock(e,t)});if(s&&c){var[l,d]=s,[,f]=c;pe.isAncestor(f,d)&&(u=l)}}}return Oe(u,wn)},jn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Ie.after(e,o,{voids:r});if(a){var[,u]=Ie.last(e,[]),s=[a.path,u];if(pe.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(pe.isPath(o)){var[c]=Ie.parent(e,o);i=e=>c.children.includes(e)}else i=()=>!0;var[l]=Ie.nodes(e,{at:s,match:i,mode:n,voids:r});return l}}},xn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ie.path(e,t,n),i=Be.get(e,r);return[i,r]};function*En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1,ignoreNonSelectable:u=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var c,l;if(Re.isSpan(n))c=n[0],l=n[1];else{var d=Ie.path(e,n,{edge:"start"}),f=Ie.path(e,n,{edge:"end"});c=o?f:d,l=o?d:f}var p,h=Be.nodes(e,{reverse:o,from:c,to:l,pass:t=>{var[n]=t;return!!Ee.isElement(n)&&(!(a||!Ie.isVoid(e,n)&&!Ie.isElementReadOnly(e,n))||!(!u||Ie.isSelectable(e,n)))}}),b=[];for(var[g,v]of h)if(!u||!Ee.isElement(g)||Ie.isSelectable(e,g)){var m=p&&0===pe.compare(v,p[1]);if("highest"!==r||!m)if(s(g,v))if("lowest"===r&&m)p=[g,v];else{var y="lowest"===r?p:[g,v];y&&(i?b.push(y):yield y),p=[g,v]}else if(i&&!m&&Ge.isText(g))return}"lowest"===r&&p&&(i?b.push(p):yield p),i&&(yield*b)}}var An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,i=e=>ae.get(e)||[],o=e=>ue.get(e)||new Set,a=e=>{var t=i(e).pop(),n=t.join(",");return o(e).delete(n),t};if(Ie.isNormalizing(e)){if(n){var u=Array.from(Be.nodes(e),e=>{var[,t]=e;return t}),s=new Set(u.map(e=>e.join(",")));ae.set(e,u),ue.set(e,s)}0!==i(e).length&&Ie.withoutNormalizing(e,()=>{for(var t of i(e))if(Be.has(e,t)){var n=Ie.node(e,t),[o,u]=n;Ee.isElement(o)&&0===o.children.length&&e.normalizeNode(n,{operation:r})}for(var s=i(e),c=s.length,l=0;0!==s.length;){if(!e.shouldNormalize({dirtyPaths:s,iteration:l,initialDirtyPathsLength:c,operation:r}))return;var d=a(e);if(Be.has(e,d)){var f=Ie.node(e,d);e.normalizeNode(f,{operation:r})}l++,s=i(e)}})}},kn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ie.path(e,t,n),i=pe.parent(r),o=Ie.node(e,i);return o},Fn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ie.pathRefs(e).delete(i),i.current=null,t}},o=Ie.pathRefs(e);return o.add(i),i},Bn=e=>{var t=le.get(e);return t||(t=new Set,le.set(e,t)),t},Sn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(pe.isPath(t))if("start"===i){var[,o]=Be.first(e,t);t=o}else if("end"===i){var[,a]=Be.last(e,t);t=a}return je.isRange(t)&&(t="start"===i?je.start(t):"end"===i?je.end(t):pe.common(t.anchor.path,t.focus.path)),Ve.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},_n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ie.pointRefs(e).delete(i),i.current=null,t}},o=Ie.pointRefs(e);return o.add(i),i},Pn=e=>{var t=de.get(e);return t||(t=new Set,de.set(e,t)),t},Tn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(pe.isPath(t)){var i;if("end"===r){var[,o]=Be.last(e,t);i=o}else{var[,a]=Be.first(e,t);i=a}var u=Be.get(e,i);if(!Ge.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?u.text.length:0}}if(je.isRange(t)){var[s,c]=je.edges(t);return"start"===r?s:c}return t};function*In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1,ignoreNonSelectable:a=!1}=t;if(n){var u=Ie.range(e,n),[s,c]=je.edges(u),l=i?c:s,d=!1,f="",p=0,h=0,b=0;for(var[g,v]of Ie.nodes(e,{at:n,reverse:i,voids:o,ignoreNonSelectable:a})){if(Ee.isElement(g)){if(!o&&(e.isVoid(g)||e.isElementReadOnly(g))){yield Ie.start(e,v);continue}if(e.isInline(g))continue;if(Ie.hasInlines(e,g)){var m=pe.isAncestor(v,c.path)?c:Ie.end(e,v),y=pe.isAncestor(v,s.path)?s:Ie.start(e,v);f=Ie.string(e,{anchor:y,focus:m},{voids:o}),d=!0}}if(Ge.isText(g)){var D=pe.equals(v,l.path);for(D?(h=i?l.offset:g.text.length-l.offset,b=l.offset):(h=g.text.length,b=i?h:0),(D||d||"offset"===r)&&(yield{path:v,offset:b},d=!1);;){if(0===p){if(""===f)break;p=O(f,r,i),f=tt(f,p,i)[1]}if(b=i?b-p:b+p,(h-=p)<0){p=-h;break}p=0,yield{path:v,offset:b}}}}}function O(e,t,n){return"character"===t?Ze(e,n):"word"===t?et(e,n):"line"===t||"block"===t?e.length:1}}var Rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Ie.before(e,o,{voids:r});if(a){var[,u]=Ie.first(e,[]),s=[a.path,u];if(pe.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(pe.isPath(o)){var[c]=Ie.parent(e,o);i=e=>c.children.includes(e)}else i=()=>!0;var[l]=Ie.nodes(e,{reverse:!0,at:s,match:i,mode:n,voids:r});return l}}},Nn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Ie.rangeRefs(e).delete(i),i.current=null,t}},o=Ie.rangeRefs(e);return o.add(i),i},Ln=e=>{var t=fe.get(e);return t||(t=new Set,fe.set(e,t)),t},Vn=(e,t,n)=>je.isRange(t)&&!n?t:{anchor:Ie.start(e,t),focus:Ie.end(e,n||t)};function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mn=(e,t)=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!Ge.isText(t))return!1;var[r,i]=Ie.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=je.isExpanded(n),o=!1;if(!i){var[a,u]=Ie.node(e,n);if(a&&r(a,u)){var[s]=Ie.parent(e,u);o=s&&e.markableVoid(s)}}if(i||o)Et.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var c=function(e){for(var t=1;t{ce.set(e,t)},$n=(e,t)=>Ie.point(e,t,{edge:"start"}),Wn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=Ie.range(e,t),[o,a]=je.edges(i),u="";for(var[s,c]of Ie.nodes(e,{at:i,match:Ge.isText,voids:r})){var l=s.text;pe.equals(c,a.path)&&(l=l.slice(0,a.offset)),pe.equals(c,o.path)&&(l=l.slice(o.offset)),u+=l}return u},Hn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=je.edges(t);if(0!==i.offset||0!==o.offset||je.isCollapsed(t)||pe.hasPrevious(o.path))return t;var a=Ie.above(e,{at:o,match:t=>Ee.isElement(t)&&Ie.isBlock(e,t),voids:r}),u=a?a[1]:[],s=Ie.start(e,i),c={anchor:s,focus:o},l=!0;for(var[d,f]of Ie.nodes(e,{at:c,match:Ge.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==d.text||pe.isBefore(f,u)){o={path:f,offset:d.text.length};break}return{anchor:i,focus:o}},qn=(e,t)=>{var n=Ie.isNormalizing(e);Ie.setNormalizing(e,!1);try{t()}finally{Ie.setNormalizing(e,n)}Ie.normalize(e)},Gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var n,r,{reverse:i=!1,unit:o="character",distance:a=1,voids:u=!1}=t,{at:s=e.selection,hanging:c=!1}=t;if(s){var l=!1;if(je.isRange(s)&&je.isCollapsed(s)&&(l=!0,s=s.anchor),Ve.isPoint(s)){var d=Ie.void(e,{at:s,mode:"highest"});if(!u&&d){var[,f]=d;s=f}else{var p={unit:o,distance:a};s={anchor:s,focus:i?Ie.before(e,s,p)||Ie.start(e,[]):Ie.after(e,s,p)||Ie.end(e,[])},c=!0}}if(pe.isPath(s))Et.removeNodes(e,{at:s,voids:u});else if(!je.isCollapsed(s)){if(!c){var[,h]=je.edges(s),b=Ie.end(e,[]);Ve.equals(h,b)||(s=Ie.unhangRange(e,s,{voids:u}))}var[g,v]=je.edges(s),m=Ie.above(e,{match:t=>Ee.isElement(t)&&Ie.isBlock(e,t),at:g,voids:u}),y=Ie.above(e,{match:t=>Ee.isElement(t)&&Ie.isBlock(e,t),at:v,voids:u}),D=m&&y&&!pe.equals(m[1],y[1]),O=pe.equals(g.path,v.path),w=u?null:null!==(n=Ie.void(e,{at:g,mode:"highest"}))&&void 0!==n?n:Ie.elementReadOnly(e,{at:g,mode:"highest"}),C=u?null:null!==(r=Ie.void(e,{at:v,mode:"highest"}))&&void 0!==r?r:Ie.elementReadOnly(e,{at:v,mode:"highest"});if(w){var j=Ie.before(e,g);j&&m&&pe.isAncestor(m[1],j.path)&&(g=j)}if(C){var x=Ie.after(e,v);x&&y&&pe.isAncestor(y[1],x.path)&&(v=x)}var E,A=[];for(var k of Ie.nodes(e,{at:s,voids:u})){var[F,B]=k;E&&0===pe.compare(B,E)||(!u&&Ee.isElement(F)&&(Ie.isVoid(e,F)||Ie.isElementReadOnly(e,F))||!pe.isCommon(B,g.path)&&!pe.isCommon(B,v.path))&&(A.push(k),E=B)}var S=Array.from(A,t=>{var[,n]=t;return Ie.pathRef(e,n)}),_=Ie.pointRef(e,g),P=Ie.pointRef(e,v),T="";if(!O&&!w){var I=_.current,[R]=Ie.leaf(e,I),{path:N}=I,{offset:L}=g,V=R.text.slice(L);V.length>0&&(e.apply({type:"remove_text",path:N,offset:L,text:V}),T=V)}if(S.reverse().map(e=>e.unref()).filter(e=>null!==e).forEach(t=>Et.removeNodes(e,{at:t,voids:u})),!C){var z=P.current,[M]=Ie.leaf(e,z),{path:U}=z,$=O?g.offset:0,W=M.text.slice($,v.offset);W.length>0&&(e.apply({type:"remove_text",path:U,offset:$,text:W}),T=W)}!O&&D&&P.current&&_.current&&Et.mergeNodes(e,{at:P.current,hanging:!0,voids:u}),l&&i&&"character"===o&&T.length>1&&T.match(/[\u0E00-\u0E7F]+/)&&Et.insertText(e,T.slice(0,T.length-a));var H=_.unref(),q=P.unref(),G=i?H||q:q||H;null==t.at&&G&&Et.select(e,G)}}})},Jn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ie.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=Je(e)}=n;if(t.length){if(je.isRange(o))if(r||(o=Ie.unhangRange(e,o,{voids:i})),je.isCollapsed(o))o=o.anchor;else{var[,a]=je.edges(o);if(!i&&Ie.void(e,{at:a}))return;var u=Ie.pointRef(e,a);Et.delete(e,{at:o}),o=u.unref()}else pe.isPath(o)&&(o=Ie.start(e,o));if(i||!Ie.void(e,{at:o})){var s=Ie.above(e,{at:o,match:t=>Ee.isElement(t)&&Ie.isInline(e,t),mode:"highest",voids:i});if(s){var[,c]=s;if(Ie.isEnd(e,o,c))o=Ie.after(e,c);else if(Ie.isStart(e,o,c)){o=Ie.before(e,c)}}var l=Ie.above(e,{match:t=>Ee.isElement(t)&&Ie.isBlock(e,t),at:o,voids:i}),[,d]=l,f=Ie.isStart(e,o,d),p=Ie.isEnd(e,o,d),h=f&&p,b=!f||f&&p,g=!p,[,v]=Be.first({children:t},[]),[,m]=Be.last({children:t},[]),y=[],D=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(b&&pe.isAncestor(r,v)&&Ee.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&pe.isAncestor(r,m)&&Ee.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var O of Be.nodes({children:t},{pass:D}))D(O)&&y.push(O);var w=[],C=[],j=[],x=!0,E=!1;for(var[A]of y)Ee.isElement(A)&&!e.isInline(A)?(x=!1,E=!0,C.push(A)):x?w.push(A):j.push(A);var[k]=Ie.nodes(e,{at:o,match:t=>Ge.isText(t)||Ie.isInline(e,t),mode:"highest",voids:i}),[,F]=k,B=Ie.isStart(e,o,F),S=Ie.isEnd(e,o,F),_=Ie.pathRef(e,p&&!j.length?pe.next(d):d),P=Ie.pathRef(e,S?pe.next(F):F);Et.splitNodes(e,{at:o,match:t=>E?Ee.isElement(t)&&Ie.isBlock(e,t):Ge.isText(t)||Ie.isInline(e,t),mode:E?"lowest":"highest",always:E&&(!f||w.length>0)&&(!p||j.length>0),voids:i});var T,I=Ie.pathRef(e,!B||B&&S?pe.next(F):F);if(Et.insertNodes(e,w,{at:I.current,match:t=>Ge.isText(t)||Ie.isInline(e,t),mode:"highest",voids:i}),h&&!w.length&&C.length&&!j.length&&Et.delete(e,{at:d,voids:i}),Et.insertNodes(e,C,{at:_.current,match:t=>Ee.isElement(t)&&Ie.isBlock(e,t),mode:"lowest",voids:i}),Et.insertNodes(e,j,{at:P.current,match:t=>Ge.isText(t)||Ie.isInline(e,t),mode:"highest",voids:i}),!n.at)if(j.length>0&&P.current?T=pe.previous(P.current):C.length>0&&_.current?T=pe.previous(_.current):I.current&&(T=pe.previous(I.current)),T){var R=Ie.end(e,T);Et.select(e,R)}I.unref(),_.unref(),P.unref()}}})},Yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Et.select(e,r.anchor);else if("focus"===n)Et.select(e,r.focus);else if("start"===n){var[i]=je.edges(r);Et.select(e,i)}else if("end"===n){var[,o]=je.edges(r);Et.select(e,o)}},Zn=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},Kn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=je.isBackward(n)?"focus":"anchor"),"end"===a&&(a=je.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,c={distance:r,unit:i,ignoreNonSelectable:!0},l={};if(null==a||"anchor"===a){var d=o?Ie.before(e,u,c):Ie.after(e,u,c);d&&(l.anchor=d)}if(null==a||"focus"===a){var f=o?Ie.before(e,s,c):Ie.after(e,s,c);f&&(l.focus=f)}Et.setSelection(e,l)}},Xn=(e,t)=>{var{selection:n}=e;if(t=Ie.range(e,t),n)Et.setSelection(e,t);else{if(!je.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Me.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}};function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=je.isBackward(r)?"focus":"anchor"),"end"===i&&(i=je.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,u="anchor"===i?o:a;Et.setSelection(e,{["anchor"===i?"anchor":"focus"]:er(er({},u),t)})}},nr=(e,t)=>{var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!Ve.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!Ve.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}},rr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ie.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:u,select:s}=n;if(Be.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=Je(e),s=!0),null==s&&(s=!1),je.isRange(a))if(r||(a=Ie.unhangRange(e,a,{voids:i})),je.isCollapsed(a))a=a.anchor;else{var[,l]=je.edges(a),d=Ie.pointRef(e,l);Et.delete(e,{at:a}),a=d.unref()}if(Ve.isPoint(a)){null==u&&(u=Ge.isText(c)?e=>Ge.isText(e):e.isInline(c)?t=>Ge.isText(t)||Ie.isInline(e,t):t=>Ee.isElement(t)&&Ie.isBlock(e,t));var[f]=Ie.nodes(e,{at:a.path,match:u,mode:o,voids:i});if(!f)return;var[,p]=f,h=Ie.pathRef(e,p),b=Ie.isEnd(e,a,p);Et.splitNodes(e,{at:a,match:u,mode:o,voids:i});var g=h.unref();a=b?pe.next(g):g}var v=pe.parent(a),m=a[a.length-1];if(i||!Ie.void(e,{at:v})){for(var y of t){var D=v.concat(m);m++,e.apply({type:"insert_node",path:D,node:y}),a=pe.next(a)}if(a=pe.previous(a),s){var O=Ie.end(e,a);O&&Et.select(e,O)}}}})},ir=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=pe.isPath(n)?Ye(e,n):t=>Ee.isElement(t)&&Ie.isBlock(e,t)),n){var a=Ie.nodes(e,{at:n,match:o,mode:r,voids:i}),u=Array.from(a,t=>{var[,n]=t;return Ie.pathRef(e,n)});for(var s of u){var c=s.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=Ie.node(e,pe.parent(c)),[d,f]=l,p=c[c.length-1],{length:h}=d.children;if(1===h){var b=pe.next(f);Et.moveNodes(e,{at:c,to:b,voids:i}),Et.removeNodes(e,{at:f,voids:i})}else if(0===p)Et.moveNodes(e,{at:c,to:f,voids:i});else if(p===h-1){var g=pe.next(f);Et.moveNodes(e,{at:c,to:g,voids:i})}else{var v=pe.next(c),m=pe.next(f);Et.splitNodes(e,{at:v,voids:i}),Et.moveNodes(e,{at:c,to:m,voids:i})}}}})},or=["text"],ar=["children"],ur=(e,t)=>{if(Ee.isElement(t)){var n=t;return!!Ie.isVoid(e,t)||1===n.children.length&&ur(e,n.children[0])}return!Ie.isEditor(t)},sr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(pe.isPath(r)){var[u]=Ie.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Ee.isElement(t)&&Ie.isBlock(e,t);if(!i&&je.isRange(r)&&(r=Ie.unhangRange(e,r,{voids:o})),je.isRange(r))if(je.isCollapsed(r))r=r.anchor;else{var[,s]=je.edges(r),c=Ie.pointRef(e,s);Et.delete(e,{at:r}),r=c.unref(),null==t.at&&Et.select(e,r)}var[l]=Ie.nodes(e,{at:r,match:n,voids:o,mode:a}),d=Ie.previous(e,{at:r,match:n,voids:o,mode:a});if(l&&d){var[f,p]=l,[h,b]=d;if(0!==p.length&&0!==b.length){var g,v,m=pe.next(b),y=pe.common(p,b),D=pe.isSibling(p,b),O=Array.from(Ie.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(y.length).slice(0,-1),w=Ie.above(e,{at:p,mode:"highest",match:t=>O.includes(t)&&ur(e,t)}),C=w&&Ie.pathRef(e,w[1]);if(Ge.isText(f)&&Ge.isText(h)){var j=Oe(f,or);v=h.text.length,g=j}else{if(!Ee.isElement(f)||!Ee.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(Me.stringify(f)," ").concat(Me.stringify(h)));j=Oe(f,ar);v=h.children.length,g=j}D||Et.moveNodes(e,{at:p,to:m,voids:o}),C&&Et.removeNodes(e,{at:C.current,voids:o}),Ee.isElement(h)&&Ie.isEmpty(e,h)||Ge.isText(h)&&""===h.text&&0!==b[b.length-1]?Et.removeNodes(e,{at:b,voids:o}):e.apply({type:"merge_node",path:m,position:v,properties:g}),C&&C.unref()}}}})},cr=(e,t)=>{Ie.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=pe.isPath(r)?Ye(e,r):t=>Ee.isElement(t)&&Ie.isBlock(e,t));var u=Ie.pathRef(e,n),s=Ie.nodes(e,{at:r,match:a,mode:i,voids:o}),c=Array.from(s,t=>{var[,n]=t;return Ie.pathRef(e,n)});for(var l of c){var d=l.unref(),f=u.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),u.current&&pe.isSibling(f,d)&&pe.isAfter(f,d)&&(u.current=pe.next(u.current))}u.unref()}})},lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=pe.isPath(o)?Ye(e,o):t=>Ee.isElement(t)&&Ie.isBlock(e,t)),!n&&je.isRange(o)&&(o=Ie.unhangRange(e,o,{voids:r}));var u=Ie.nodes(e,{at:o,match:a,mode:i,voids:r}),s=Array.from(u,t=>{var[,n]=t;return Ie.pathRef(e,n)});for(var c of s){var l=c.unref();if(l){var[d]=Ie.node(e,l);e.apply({type:"remove_node",path:l,node:d})}}}})},dr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ie.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:u=!1,mode:s="lowest",split:c=!1,voids:l=!1}=n;if(i){if(null==r&&(r=pe.isPath(i)?Ye(e,i):t=>Ee.isElement(t)&&Ie.isBlock(e,t)),!u&&je.isRange(i)&&(i=Ie.unhangRange(e,i,{voids:l})),c&&je.isRange(i)){if(je.isCollapsed(i)&&Ie.leaf(e,i.anchor)[0].text.length>0)return;var d=Ie.rangeRef(e,i,{affinity:"inward"}),[f,p]=je.edges(i),h="lowest"===s?"lowest":"highest",b=Ie.isEnd(e,p,p.path);Et.splitNodes(e,{at:p,match:r,mode:h,voids:l,always:!b});var g=Ie.isStart(e,f,f.path);Et.splitNodes(e,{at:f,match:r,mode:h,voids:l,always:!g}),i=d.unref(),null==n.at&&Et.select(e,i)}for(var[v,m]of(o||(o=(e,t)=>e!==t),Ie.nodes(e,{at:i,match:r,mode:s,voids:l}))){var y={},D={};if(0!==m.length){var O=!1;for(var w in t)"children"!==w&&"text"!==w&&o(t[w],v[w])&&(O=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),a?null!=t[w]&&(D[w]=a(v[w],t[w])):null!=t[w]&&(D[w]=t[w]));O&&e.apply({type:"set_node",path:m,properties:y,newProperties:D})}}}})},fr=(e,t)=>{if(je.isCollapsed(t))return t.anchor;var[,n]=je.edges(t),r=Ie.pointRef(e,n);return Et.delete(e,{at:t}),r.unref()},pr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:u=!1}=t;if(null==i&&(i=t=>Ee.isElement(t)&&Ie.isBlock(e,t)),je.isRange(o)&&(o=fr(e,o)),pe.isPath(o)){var s=o,c=Ie.point(e,s),[l]=Ie.parent(e,s);i=e=>e===l,a=c.path.length-s.length+1,o=c,u=!0}if(o){var d,f=Ie.pointRef(e,o,{affinity:"backward"});try{var[p]=Ie.nodes(e,{at:o,match:i,mode:n,voids:r});if(!p)return;var h=Ie.void(e,{at:o,mode:"highest"});if(!r&&h){var[b,g]=h;if(Ee.isElement(b)&&e.isInline(b)){var v=Ie.after(e,g);if(!v){var m=pe.next(g);Et.insertNodes(e,{text:""},{at:m,voids:r}),v=Ie.point(e,m)}o=v,u=!0}a=o.path.length-g.length+1,u=!0}d=Ie.pointRef(e,o);var y=o.path.length-a,[,D]=p,O=o.path.slice(0,y),w=0===a?o.offset:o.path[y]+0;for(var[C,j]of Ie.levels(e,{at:O,reverse:!0,voids:r})){var x=!1;if(j.length2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;Et.setNodes(e,r,n)},br=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=pe.isPath(o)?Ye(e,o):t=>Ee.isElement(t)&&Ie.isBlock(e,t)),pe.isPath(o)&&(o=Ie.range(e,o));var u=je.isRange(o)?Ie.rangeRef(e,o):null,s=Ie.nodes(e,{at:o,match:a,mode:n,voids:i}),c=Array.from(s,t=>{var[,n]=t;return Ie.pathRef(e,n)}).reverse(),l=function(t){var n=t.unref(),[o]=Ie.node(e,n),a=Ie.range(e,n);r&&u&&(a=je.intersection(u.current,a)),Et.liftNodes(e,{at:a,match:e=>Ee.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of c)l(d);u&&u.unref()}})};function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};Ie.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=pe.isPath(u)?Ye(e,u):e.isInline(t)?t=>Ee.isElement(t)&&Ie.isInline(e,t)||Ge.isText(t):t=>Ee.isElement(t)&&Ie.isBlock(e,t)),i&&je.isRange(u)){var[s,c]=je.edges(u),l=Ie.rangeRef(e,u,{affinity:"inward"});Et.splitNodes(e,{at:c,match:a,voids:o}),Et.splitNodes(e,{at:s,match:a,voids:o}),u=l.unref(),null==n.at&&Et.select(e,u)}var d=Array.from(Ie.nodes(e,{at:u,match:e.isInline(t)?t=>Ee.isElement(t)&&Ie.isBlock(e,t):e=>Ie.isEditor(e),mode:"lowest",voids:o}));for(var[,f]of d){var p=je.isRange(u)?je.intersection(u,Ie.range(e,f)):u;if(p){var h=Array.from(Ie.nodes(e,{at:p,match:a,mode:r,voids:o}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var u=pe.equals(i,a)?pe.parent(i):pe.common(i,a),s=Ie.range(e,i,a),c=Ie.node(e,u),[l]=c,d=u.length+1,f=pe.next(a.slice(0,d)),p=vr(vr({},t),{},{children:[]});Et.insertNodes(e,p,{at:f,voids:o}),Et.moveNodes(e,{at:s,match:e=>Ee.isAncestor(l)&&l.children.includes(e),to:f.concat(0),voids:o})}())continue}}}})},yr=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r {\n $i.get(`".concat(A,"`).disabled = true;\n $i.get(`").concat(E,'`).disabled = false;\n $i.groupVariables.reservationTime = "";\n\n const start = $i.groupVariables.date.toISOString().split("T")[0];\n\n fetch(`').concat(w.d,"/api/v1/public/orgs/${organizationId}/calendars/${calendarId}/available_slots?date=${start}`)\n .then((response) => response.json())\n .then((slots) => {\n $i.elements.GiosgCalendarSlotList.value = slots;\n if(!slots || slots.length === 0) {\n $i.get(`").concat(k,"`).visible = true;\n } else {\n $i.get(`").concat(k,'`).visible = false;\n }\n });\n };\n }\n\n if($i.groupVariables.initialized !== "true") {\n const tomorrow = new Date();\n tomorrow.setDate(tomorrow.getDate() + 1);\n\n $i.groupVariables.date = tomorrow;\n $i.groupVariables.initialized = "true"\n $i.get(`').concat(A,"`).disabled = true;\n\n // Initialize fetching slots initially as well\n window.giosgInteractionUpdateSlots();\n }\n ")}]}],c),(s=Object(f.a)(Object(f.a)({},Object(m.a)("CalendarDatePicker",{xType:"stretch",topOffset:80,leftOffset:0,rightOffset:0,hidden:!0,height:220})),{groupUid:y.a}),s.uid=y.g,s.clickEvents=[{conditions:[{uid:Object(p.b)(),type:"elementShown",onlyOnce:!0,targetId:s.uid}],actions:[{uid:Object(p.a)(),type:"runjs",async:!1,javascriptCode:'\n window.giosgInteractionUpdateDays = () => {\n function getCalendarWeeks(year, month) {\n const weeks = [];\n const today = new Date();\n \n const firstDayOfMonth = new Date(year, month, 1);\n const lastDayOfMonth = new Date(year, month + 1, 0);\n const daysInMonth = lastDayOfMonth.getDate();\n \n // Convert Sunday (0) to 7 for Monday-start week\n const startDay = firstDayOfMonth.getDay() === 0 ? 7 : firstDayOfMonth.getDay();\n \n const prevMonthDays = new Date(year, month, 0).getDate();\n \n let dayCounter = 1;\n let nextMonthDayCounter = 1;\n \n for (let week = 0; week < 6; week++) {\n const days = [];\n let hasCurrentMonthDay = false;\n \n for (let day = 0; day < 7; day++) {\n const dayIndex = week * 7 + day;\n let date;\n let dayNumber;\n let inCurrentMonth = false;\n \n if (dayIndex < startDay - 1 && week === 0) {\n // Previous month\n dayNumber = prevMonthDays - (startDay - 2 - dayIndex);\n date = new Date(year, month - 1, dayNumber);\n } else if (dayCounter <= daysInMonth) {\n // Current month\n dayNumber = dayCounter++;\n date = new Date(year, month, dayNumber);\n inCurrentMonth = true;\n hasCurrentMonthDay = true;\n } else {\n // Next month\n dayNumber = nextMonthDayCounter++;\n date = new Date(year, month + 1, dayNumber);\n }\n \n const isWeekend = date.getDay() === 0 || date.getDay() === 6;\n const isBeforeToday = date < today;\n \n days.push({\n dayNumber: String(dayNumber),\n isCurrentMonth: inCurrentMonth,\n enabled: inCurrentMonth && !isWeekend && !isBeforeToday,\n });\n }\n \n // Only push weeks that contain at least one current month day\n weeks.push(hasCurrentMonthDay ? days : []);\n }\n \n return weeks;\n }\n \n const currentDate = new Date($i.groupVariables.date);\n \n // Avoid infinite loop when updating the Week values\n if ($i.groupVariables.visibleMonth === currentDate.getMonth()) {\n return;\n }\n $i.groupVariables.visibleMonth = currentDate.getMonth();\n \n const month = currentDate.getMonth();\n const year = currentDate.getFullYear();\n const monthWeeks = getCalendarWeeks(year, month);\n \n const numberOfWeeks = 7;\n \n for (let i = 1; i < numberOfWeeks; i++) {\n $i.elements["Week" + i].value = monthWeeks[i-1];\n }\n };\n\n window.giosgInteractionUpdateDays();\n '}]}],s),(u=Object(f.a)(Object(f.a)({},Object(m.a)("CalendarTimePicker",{xType:"stretch",yType:"stretch",leftOffset:0,rightOffset:0,topOffset:80,bottomOffset:0})),{groupUid:y.d}),u.uid=y.p,u)].reverse(),presetType:"calendar",isComponent:!0,originGroupInstanceUid:y.c,presetVersion:1,variableDefinitions:[{type:"string",name:"initialized",defaultValue:"false",id:"variable-fulqx9e2dd2mgfjiupk62z4ujzyrj9ntbbc"},{type:"string",name:"date",defaultValue:"",id:y.f},{type:"string",name:"locale",defaultValue:"",id:S},{type:"string",name:"mode",defaultValue:"time",id:"variable-m51xu4ixbda3b0er2zzmkcpgso52j0y7i0kfv"},{type:"string",name:"visibleMonth",defaultValue:"",id:"variable-usgc9zn0lyqk937wolkol9ax3tnbqyajdnv"},{type:"expression",name:"dateText",value:"convertDate(${"+y.f+'}, if(equal(${variable-m51xu4ixbda3b0er2zzmkcpgso52j0y7i0kfv}, "day"), "month-year", "day-month"), ${'+S+"})",id:"variable-yo0sg6p7zajet530qh2284shwpteji481u"},{type:"string",name:"reservationTime",defaultValue:"",id:"variable-i62q6jr5cpalm6kxmfjbb33apt592v1d7f1"},{type:"string",name:"roomId",defaultValue:"",id:"variable-wobewtlvz8rlt1bg2ui1ndw3hel5iubx26k1g"},{type:"string",name:"calendarId",defaultValue:"",id:"variable-eucqa9q9vxkhi7wo6l87zhhu2rz0sxzr78q"},{type:"string",name:"successViewId",defaultValue:"",id:"variable-qef93gw9apypn2va0yhyjp2qbyxxl4y0mc1"},{type:"string",name:"errorViewId",defaultValue:"",id:"variable-vu58jx1agm8ot4tx7y95syoox8kjsu2g6b"},{type:"string",name:"eventTitle",defaultValue:"Reservation",id:"variable-f8cxp1z2mlwqagvdhh2hspl8hgi78f2mlzgm"},{type:"string",name:"eventType",defaultValue:"call_request",id:"variable-c3htxwcmcpujk8tee7as704md5ldabrzqgw"}]},i[y.d]=(a=function(){var e=Object(g.a)("GiosgCalendarSlotList",{width:200,height:50,xType:"stretch",yType:"stretch",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:70},Object(f.a)(Object(f.a)({},v.a),{borderWidth:1,borderColor:{a:1,b:228,g:228,r:228},borderRadius:{topLeft:4,topRight:4,bottomLeft:4,bottomRight:4}}));e.repetitionType="vertical",e.groupElement=Object(f.a)(Object(f.a)({},Object(m.a)("GiosgCalendarSlotListGroup",{xType:"stretch",leftOffset:0,rightOffset:0,height:50})),{groupUid:y.e});var t=Object(j.a)("no slots available",{width:200,height:50,xType:"stretch",yType:"stretch",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:70,hidden:!0},Object(f.a)(Object(f.a)({},x.a),{verticalTextAlignment:"center"}));t.richText=[{type:"PARAGRAPH",children:[{bold:!1,text:"No available times",color:"rgba(37, 43, 56, 1)",italic:!1,fontSize:14,underline:!1,fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif"}],textAlignment:"center"}],t.uid=k;var n=Object(h.a)("Confirm selection",{width:200,height:50,xType:"stretch",yType:"bottom",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:0,hidden:!1},Object(f.a)(Object(f.a)({},b.a),{borderApplied:!1,borderRadius:{topLeft:25,topRight:25,bottomLeft:25,bottomRight:25},textColor:{r:255,g:255,b:255,a:1},backgroundColor:{r:124,g:0,b:248,a:1},backgroundHoverColor:{r:104,g:0,b:228,a:1}}));return n.richText=[{type:"PARAGRAPH",textAlignment:"center",children:[{text:"Confirm selection",fontSize:14,color:"rgba(255, 255, 255, 1)",fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",bold:!0}]}],n.uid=A,n.clickEvents=[{conditions:[],actions:[{type:"runjs",uid:Object(p.a)(),async:!1,javascriptCode:"\n (async () => {\n // Disable button to avoid multiple clicks\n $i.get(`".concat(A,"`).disabled = true;\n \n const calendarId = $i.groupVariables.calendarId;\n const successViewId = $i.groupVariables.successViewId;\n const errorViewId = $i.groupVariables.errorViewId;\n \n try {\n const visitor_secret = document.cookie.split(`giosg_sgid_${giosg.companyId}=`)[1].split(';')[0];\n const organizationId = giosg.organizationId;\n \n if (calendarId === undefined){\n throw new Error(\"Calendar id is not defined\");\n }\n\n if (!visitor_secret) {\n throw new Error('no visitor found');\n }\n\n const authResponse = await fetch(`").concat(w.h,'/v5/public/orgs/${organizationId}/auth`, {\n method: "POST",\n headers: { "Content-type": "application/json" },\n body: JSON.stringify({ visitor_secret_id: visitor_secret }),\n });\n\n if (!authResponse.ok) {\n throw new Error("Failed to authenticate");\n }\n\n const { access_token } = await authResponse.json();\n\n const scheduleTask = await fetch(`').concat(w.d,'/api/v1/public/orgs/${organizationId}/calendars/${calendarId}/reserve`, {\n method: "POST",\n headers: {\n "content-type": "application/json",\n Authorization: `Bearer ${access_token}`,\n },\n body: JSON.stringify({\n visitor_id: giosg.unpackedVisitorCid,\n start_time: $i.groupVariables.reservationTime,\n title: $i.groupVariables.eventTitle,\n reservation_type: $i.groupVariables.eventType,\n timezone: "fi",\n }),\n });\n\n if(successViewId) {\n $i.get(successViewId).switchTo();\n }\n \n } catch (error) {\n console.error("Error:", error);\n if(errorViewId) {\n $i.get(errorViewId).switchTo();\n }\n }\n })();\n ')}]}],[e,n,t]}(),{uid:y.d,elements:a,isComponent:!1}),i[y.e]=function(){var e=Object(h.a)("time slot",{width:200,height:50,xType:"stretch",yType:"top",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:0},Object(f.a)(Object(f.a)({},b.a),{borderApplied:!1,backgroundColorApplied:!1,backgroundColor:{r:255,g:255,b:255,a:1},backgroundHoverColor:{r:242,g:230,b:254,a:1},backgroundDisabledColor:{r:127,g:17,b:244,a:1},textDisabledColor:{r:255,g:255,b:255,a:1},borderRadius:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0}}));e.uid=E,e.richText=[{children:[{type:"VARIABLE",variable:"timeText",children:[{bold:!0,text:"",color:"rgba(37, 43, 56, 1)",italic:!1,fontSize:14,underline:!1,fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif"}]}],type:"PARAGRAPH",textAlignment:"center"}],e.clickEvents=[{conditions:[],actions:[{type:"enableDisable",uid:Object(p.a)(),action:"enable",targetUid:E,localSearch:!1},{type:"runjs",uid:Object(p.a)(),async:!1,javascriptCode:"\n $i.groupVariables.reservationTime = $i.groupVariables.start_time;\n $i.get(`".concat(A,"`).disabled = false;\n ")},{type:"enableDisable",uid:Object(p.a)(),action:"disable",targetUid:E,localSearch:!0}]}];var t=Object(C.a)("border",{xType:"stretch",yType:"bottom",width:200,height:1,leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:0});return t.designs.backgroundColor={r:228,g:228,b:231,a:1},t.designs.borderColor={r:228,g:228,b:228,a:1},{uid:y.e,elements:[e,t],isComponent:!1,variableDefinitions:[{type:"string",name:"start_time",defaultValue:"",id:B},{type:"expression",name:"timeText",value:"convertDate(${"+B+'}, "time", ${'+S+"})",id:F}]}}(),i[y.a]=function(){var e=function(){for(var e,t,n,r=[],i=0;i<6;i++)r.push((t=void 0,n=void 0,t="Week".concat((e=i)+1),(n=Object(g.a)(t,{width:196,height:40,xType:"middle",yType:"top",leftOffset:0,rightOffset:0,topOffset:40*e,bottomOffset:0},Object(f.a)(Object(f.a)({},v.a),{borderApplied:!1}))).repetitionType="horizontal",n.groupElement=Object(f.a)(Object(f.a)({},Object(m.a)("WeekDaysSlot".concat(e+1),{xType:"left",yType:"top",leftOffset:0,topOffset:0,height:28,width:28})),{groupUid:y.b}),n));return Object(f.m)([],Object(f.k)(r),!1)}();return{uid:y.a,elements:e,isComponent:!1,originGroupInstanceUid:y.a}}(),i[y.b]=((o=Object(h.a)("Day",{width:28,height:28,xType:"left",yType:"top",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:0},Object(f.a)(Object(f.a)({},b.a),{borderApplied:!1,paddingsNew:{top:0,right:0,bottom:0,left:0},backgroundColor:{a:0,b:255,g:255,r:255},backgroundHoverColor:{r:242,g:230,b:254,a:1},backgroundDisabledColor:{r:255,g:255,b:255,a:1},textDisabledColor:{r:228,g:228,b:228,a:1}}))).richText=[{children:[{type:"VARIABLE",variable:"dayNumber",children:[{bold:!1,text:"",color:"rgba(37, 43, 56, 1)",italic:!1,fontSize:14,underline:!1,fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif"}]}],type:"PARAGRAPH",textAlignment:"center"}],o.uid=y.h,o.clickEvents=[{conditions:[],actions:[{type:"showhide",uid:Object(p.a)(),action:"show",targetUid:y.p,localSearch:!1},{type:"showhide",uid:Object(p.a)(),action:"hide",targetUid:y.g,localSearch:!1},{type:"runjs",uid:Object(p.a)(),async:!1,javascriptCode:'\n $i.groupVariables.mode = "time";\n \n const currentDate = new Date($i.groupVariables.date);\n currentDate.setDate(Number($i.groupVariables.dayNumber));\n $i.groupVariables.date = currentDate; \n window.giosgInteractionUpdateSlots();\n '}]},{conditions:[{uid:Object(p.b)(),type:"elementShown",onlyOnce:!1,targetId:o.uid},{uid:Object(p.b)(),type:"runjs",javascriptCode:"\n return $i.groupVariables.enabled;\n "}],actions:[{type:"enableDisable",uid:Object(p.a)(),action:"enable",targetUid:o.uid,localSearch:!0}]},{conditions:[{uid:Object(p.b)(),type:"elementShown",onlyOnce:!1,targetId:o.uid},{uid:Object(p.b)(),type:"runjs",javascriptCode:"\n return !$i.groupVariables.enabled;\n "}],actions:[{type:"enableDisable",uid:Object(p.a)(),action:"disable",targetUid:o.uid,localSearch:!0}]}],{uid:y.b,elements:[o],isComponent:!1,variableDefinitions:[{type:"string",name:"dayNumber",defaultValue:"0",id:D},{type:"string",name:"enabled",defaultValue:"",id:O}]}),i[y.i]=Object(_.a)(),i[y.k]=Object(_.b)(),i),R=function(e,t,n){var r,i=null==t?void 0:t.find((function(t){return t.uid===e})),o=null==n?void 0:n.find((function(t){return t.uid===e})),a=null!==(r=null!=i?i:o)&&void 0!==r?r:I[e];if(!a)throw new Error("Group ".concat(e," not found"));return a},N=function(e){return"group"===e.type?e.groupUid:"scrollable"===e.type?e.groupElement.groupUid:void 0}},144: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},1479:function(e,t,n){"use strict";(function(e){var r=n(556),i=setTimeout;function o(e){return Boolean(e&&void 0!==e.length)}function a(){}function u(e){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}c(t.promise,r)}else(1===e._state?c:l)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void p((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(t){l(e,t)}var r,i}function l(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&u._immediateFn((function(){e._handled||u._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;td.height&&(d.height=m.height===g.a?c:m.height),m.width>d.width&&(d.width=m.width===g.a?s:m.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&&c&&0!==d.width&&0!==d.height?Math.min(c/d.height,s/d.width,1):1}(e,o,c):1}),[o,c])},C=function(e){var t,n=e.store,r=e.innerRef,i=e.children,o=n.data.project,u=a.b.useCss(),s=a.b.useCss(!1),l=Object(f.c)(n),d=w(n),p=void 0===o.mountSelector,h=a.b.jsx("div",{ref:r,className:"".concat(u(D({scale:d,isFixed:p,isInline:!!o.mountAsInlineBlock,zIndex:null!==(t=o.zIndex)&&void 0!==t?t:o.mountAsInlineBlock?0:c.b,stickToBottom:"bottom"===l.arrangement.default.yType,stickToRight:"right"===l.arrangement.default.xType}))," ").concat(s(Object(m.m)())),role:"region"},i);if(o.mountAsInlineBlock){var b=Object(v.b)(l,{additionalPadding:0});return a.b.jsx("div",{className:u(y({width:b.width*d,height:b.height*d}))},h)}return h},j=n(508),x=function(e){var t,n,i=e.store,o=i.data,u=o.project,s=o.info,c=o.shown,l=Object(f.c)(i),g=!!u.isInInvisibleViewMode,v=Object(r.k)(Object(a.g)(!1),2),m=v[0],y=v[1],D=Object(r.k)(Object(a.g)(!1),2),O=D[0],w=D[1];!function(e,t){Object(a.e)((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,u=a.action,s=a.dim2,c=a.dim3,l=a.dim4,f=a.workflowUid,p=a.vendor;Object(d.a)({store:e,action:u,workflowUid:f||o,vendor:p,dim2:s||void 0,dim3:c||void 0,stepName:l||void 0})}}catch(e){}};return window.addEventListener("message",n),function(){window.removeEventListener("message",n)}}),[t,e])}(i,s.interactionUuid),t=s.fonts,n=s.interactionUuid,a.b.useEffect((function(){var e=document.createElement("style");return e.textContent=Object(p.a)(t),e.className="giosg-custom-fonts",e.setAttribute("data-interaction-id",n),document.body.appendChild(e),function(){try{document.body.removeChild(e)}catch(e){}}}),[t,n]);var x=a.b.useMemo((function(){return{values:{},definitions:[]}}),[]),E=function(e){return a.b.jsx(a.b.Fragment,null,u.views.map((function(t,n){return a.b.jsx(h.a,{key:t.uid,shown:t.uid===l.uid,enter:u.animations.change,exit:u.mountAsInlineBlock?void 0:u.animations.change,onAnimationStart:function(){return w(!0)},onAnimationEnd:function(){return w(!1)},render:function(r){return e(a.b.jsx(b.a,{includeElementsIds:!0,store:i,innerRef:r,element:t,enableResponsivePlayer:g,isInteractionRendered:m,parentVariables:x,elementPath:[n],blockAllClicks:O}),t)}})})))};return a.b.jsx(h.a,{animateOnMount:!0,shown:c,enter:u.animations.enter,exit:u.animations.exit,onAnimationEnd:function(e){y(e)},render:function(e){return g?E((function(t,n){return a.b.jsx(j.a,{store:i,innerRef:e,isDesignMode:!1,view:n},t)})):a.b.jsx(C,{innerRef:e,store:i},E((function(e){return e})))}})};var E=function(e){var t,n=(t=Object(r.k)(a.b.useState(Object.create(null)),2)[1],a.b.useCallback((function(){t(Object.create(null))}),[t]));return e.store.addUpdateListener((function(){n()})),e.store.isDestroyed?null:e.children},A=n(439),k=n(51),F=n(43),B=n(72),S=n(208),_=n(99),P=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){var t=this.props.store;Object(k.b)(e,{id:t.interactionId,organizationId:t.organizationId,breadcrumbs:t.sentryBreadcrumbs},[{type:"ErrorBoundary",value:"fail"}])}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.children}}),t}(a.b.Component),T=function(e){var t=void 0!==e.mountSelector&&e.mountSelector!==B.c,n=Object(u.a)(e)===s.a.WebsiteNormal;return!!e.hasInitialFocus&&!t&&n};function I(e,t,n,i){var o,u,s,p=!!n.data.project.isInInvisibleViewMode,h=document.createElement("div");h.className=c.h,e.mountAsInlineBlock||(h.style.width="0",h.style.height="0"),Object(_.a)({type:"interactiondesigner:start",interactionId:t.interactionUuid}),Object(d.b)({store:n,action:"start",value:1});var b,g,v=O(e);if(p){var m=document.createElement("div"),y=((g=document.createElement("div")).id="giosg-text-metrics-detector",g.style.width="0",g.style.height="0",g.style.lineHeight="0",g.style.letterSpacing="0",g.style.wordSpacing="0",document.body.appendChild(g),g),D=function(){var e=getComputedStyle(y),t=function(e){var t=parseInt(e);return 0===t?void 0:t},r=e.lineHeight,i=e.letterSpacing,o=e.wordSpacing;n.setData({textMetrics:{lineHeight:t(r),letterSpacing:t(i),wordSpacing:t(o)}})};requestAnimationFrame(D),setTimeout((function(){D(),document.body.removeChild(y)}),5e3),m.attachShadow({mode:"open"}).appendChild(h),b=m}else b=h;b.setAttribute("data-interaction-id",t.interactionUuid),b.classList.add("giosg-interaction"),b.setAttribute("role","region"),b.setAttribute("aria-label",null!==(o=n.data.project.label)&&void 0!==o?o:"");var w=document.documentElement.getAttribute("lang");if(w&&b.setAttribute("lang",w),Object(l.a)(v),T(e)?v.prepend(b):v.appendChild(b),R(e,b),e.jsCustom){var C=Object(S.c)(null!==(u=e.noUnsafeEvaluation)&&void 0!==u&&u,t.interactionUuid,e.jsCustom,i);C&&(t.isPreviewMode?n.setData({error:C}):n.destroy())}var j="i".concat(Object(A.b)(t.interactionUuid)),B=Object(A.a)(h,j),I=B.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",margin:"-1000000px"});n.addUpdateListener((function(e){if(null!==e){var t=Object.keys(e.fields||{}).length>0,r=Object.keys(e.dataFields||{}).length>0;if(t||r){var i=Object(f.c)(n);Object(F.b)(n,i,[],{values:{},definitions:[]},[]).catch((function(e){console.info("Error while running events on data update",e)}))}}}));var N=P;if(a.b.render(a.b.jsx(N,{store:n},a.b.jsx(a.a.Provider,{value:Object(r.a)(Object(r.a)({},B),{isResponsiveMode:p})},a.b.jsx(E,{store:n},a.b.jsx(x,{store:n})),a.b.jsx("div",{id:"giosg-accessibility-labels-root",className:I,ref:function(e){var t,r;e&&(n.accessibilityLabelsManager=(t=e,r=new Map,{registerLabel:function(e,n){if(e&&n){var i=r.get(e);i||((i=document.createElement("span")).id=e,t.appendChild(i),r.set(e,i)),i.textContent=n}},unregisterLabel:function(e){var t=r.get(e);t&&(r.delete(e),t.remove())}}))}}))),h),null===(s=window.giosg)||void 0===s?void 0:s.interactionRuntime){var L=window.giosg.interactionRuntime[t.interactionUuid];L?L.destroy.then(n.destroy.bind(n)):(console.error('No runtime for "'.concat(t.projectName,'". UUID=').concat(t.interactionUuid,".")),Object(k.a)(new Error("Interaction runtime was not found"),{id:t.interactionUuid}))}}var R=function(e,t){var n,i=[],o=function(a){var u,s,c;if(void 0===a&&(a=0),document.body.contains(t.parentElement))a<5&&setTimeout((function(){return o(a+1)}),1e3);else{var l=O(e);if(l){T(e)?l.prepend(t):l.appendChild(t);try{for(var d=Object(r.n)(i),f=d.next();!f.done;f=d.next()){var p=f.value;null===(c=null==n?void 0:n.sheet)||void 0===c||c.insertRule(p)}}catch(e){u={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(u)throw u.error}}}}},a=function(){var e,r;(null===(r=null==(n=(null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector("style[data-emotion]"))||void 0)?void 0:n.sheet)||void 0===r?void 0:r.cssRules)&&(i=Array.from(n.sheet.cssRules).map((function(e){return e.cssText})),setTimeout(o,500))},u=window.history.pushState.bind(window.history),s=window.history.replaceState.bind(window.history);window.history.pushState=function(){for(var e=[],t=0;t>>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,u=a?Number(a):0;isNaN(u)&&(u=0);var s=Math.min(Math.max(u,0),i);return t.call(r,o,u)===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;a2||N(F)>3?"":" "}function U(e,t){for(;--t&&P()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return R(e,I()+(t<6&&32==T()&&32==P()))}function $(e,t){for(;P()&&e+F!==57&&(e+F!==84||47!==T()););return"/*"+R(t,k-1)+"*"+f(47===e?e:P())}function W(e){for(;!N(T());)P();return R(e,k)}function H(e){return V(function e(t,n,r,i,o,a,u,s,c){var l=0,d=0,p=u,h=0,b=0,g=0,D=1,w=1,j=1,A=0,S="",_=o,R=a,N=i,L=S;for(;w;)switch(g=A,A=P()){case 40:if(108!=g&&58==y(L,p-1)){-1!=m(L+=v(z(A),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:L+=z(A);break;case 9:case 10:case 13:case 32:L+=M(g);break;case 92:L+=U(I()-1,7);continue;case 47:switch(T()){case 42:case 47:C(G($(P(),I()),n,r),c);break;default:L+="/"}break;case 123*D:s[l++]=O(L)*j;case 125*D:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+d:b>0&&O(L)-p&&C(b>32?J(L+";",i,r,p-1):J(v(L," ","")+";",i,r,p-2),c);break;case 59:L+=";";default:if(C(N=q(L,n,r,l,d,o,s,S,_=[],R=[],p),a),123===A)if(0===d)e(L,n,N,N,_,a,p,s,R);else switch(99===h&&110===y(L,3)?100:h){case 100:case 109:case 115:e(t,N,N,i&&C(q(t,N,N,0,0,o,s,S,o,_=[],p),R),o,R,p,s,i?_:R);break;default:e(L,N,N,N,[""],R,0,s,R)}}l=d=b=0,D=j=1,S=L="",p=u;break;case 58:p=1+O(L),b=g;default:if(D<1)if(123==A)--D;else if(125==A&&0==D++&&125==(F=k>0?y(B,--k):0,E--,10===F&&(E=1,x--),F))continue;switch(L+=f(A),A*D){case 38:j=d>0?1:(L+="\f",-1);break;case 44:s[l++]=(O(L)-1)*j,j=1;break;case 64:45===T()&&(L+=z(P())),h=T(),d=p=O(S=L+=W(I())),A++;break;case 45:45===g&&2==O(L)&&(D=0)}}return a}("",null,null,null,[""],e=L(e),0,[0],e))}function q(e,t,n,r,i,o,a,u,c,l,f){for(var p=i-1,h=0===i?o:[""],g=w(h),m=0,y=0,O=0;m0?h[C]+" "+j:v(j,/&\f/g,h[C])))&&(c[O++]=x);return S(e,t,n,0===i?s:u,c,l,f)}function G(e,t,n){return S(e,t,n,u,f(F),D(e,2,-2),0)}function J(e,t,n,r){return S(e,t,n,c,D(e,0,r),D(e,r+1,-1),r)}function Y(e,t){for(var n="",r=w(e),i=0;i-1&&!e.return)switch(e.type){case c:e.return=function e(t,n){switch(h(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(O(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,O(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 Y([_(e,{value:v(e.value,"@","@"+a)})],r);case s:if(e.length)return j(e.props,(function(t){switch(g(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y([_(e,{props:[v(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Y([_(e,{props:[v(t,/:(plac\w+)/,":"+a+"input-$1")]}),_(e,{props:[v(t,/:(plac\w+)/,":-moz-$1")]}),_(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,u={},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-1?n:void 0}(e,t):void 0;return null!=i?i:e.isRequired?void 0:a(e.defaultValue)}if("radio"===e.type){var o=t&&Number(t)||e.defaultValue;return e.isRequired||""===o?void 0:Number(o)}if("checkbox"===e.type)return!!(o=null!=t?t:e.defaultValue);if("input"===e.type){o=null!=t?t:e.defaultValue;return"number"===e.inputFieldType?o?Number(o):void 0:o}if("spinner"===e.type)return 0;if("slider"===e.type){o=null!=t?t:e.defaultValue;return Number(o)}return"image"===e.type?t:"scrollable"===e.type?[{}]:void Object(r.a)(e)}},157:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(230);function i(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},158:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(283);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},159:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n(1),i=n(295),o=function(e,t){var n={flow:0,start:1,middle:2,end:3,stretch:1};return n[e]-n[t]},a=function(e,t){return"end"!==e.xType?e.leftOffset-t.leftOffset:t.rightOffset-e.rightOffset},u=function(e,t){return"end"!==e.yType?e.topOffset-t.topOffset:t.bottomOffset-e.bottomOffset},s=function(e,t){return e.filter((function(e){var n=Object(r.k)(e,1)[0];return"flow"!==t[n.uid].yType})).sort((function(e,n){var s=Object(r.k)(e,1)[0],c=Object(r.k)(n,1)[0],l=t[s.uid],d=t[c.uid],f=o(l.yType,d.yType);if(0!==f)return f;if(!Object(i.a)(l,d))return u(l,d);var p=o(l.xType,d.xType);return 0!==p?p:a(l,d)}))}},162:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){return e.includes(t.type)}},164:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u}));var r=n(1),i=n(37),o=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.g,"/api/pub/public/v1/orgs/").concat(e,"/channels/").concat(t,"/conference/stream_viewer_count"),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(n,{mode:"cors",headers:{Accept:"application/json"}})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:throw o=r.sent(),console.error("Failed to fetch viewer count",o),o;case 5:return[2]}}))}))},a=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.g,"/api/pub/public/v1/orgs/").concat(e,"/channels/").concat(t,"/conference/stream_status"),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(n,{mode:"cors",headers:{Accept:"application/json"}})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:throw o=r.sent(),console.error("Failed to fetch stream status",o),o;case 5: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.g,"/api/pub/public/v1/orgs/").concat(e,"/uploaded_recordings/").concat(t),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(n,{mode:"cors",headers:{Accept:"application/json"}})];case 2:return[4,r.sent().json()];case 3:return[2,r.sent()];case 4:throw o=r.sent(),console.error("Failed to fetch stream url",o),o;case 5:return[2]}}))}))}},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=[],t=0;t=0&&e<=t.options.length);default:Object(i.a)(t)}},g=function(e,t,n,i,o){return Object(s.b)(e,n).filter((function(e){return Object(a.c)(e.element)&&"checkbox"!==e.element.type})).map((function(n){var a=n.element;return!(!o||function(e,t){var n=e.data.activeBreakpoint;return Object(r.m)(Object(r.m)([],Object(r.k)(t.ancestors),!1),[{element:t.element,elementPath:t.elementPath}],!1).every((function(t){var r=t.element,i=t.elementPath;return e.getElementVisibilityStatus(r,i,n).isVisible}))}(e,n))||f(e,b(t.fields[a.uid],a),a.uid,i)&&!e.data.invalidFields.includes(a.uid)})).every((function(e){return!!e}))},v=function(e,t,n){var r,i,a;if(!n.fieldName)return null;var u=Object(o.c)(n.fieldName,e.data.project.dataFields);return null!==(a=null!==(i=u&&t.dataFields[null!==(r=u.id)&&void 0!==r?r:""])&&void 0!==i?i:t.dataFields[n.fieldName])&&void 0!==a?a:null},m=function(e,t,n){if("elementShown"===n.type);else if("runjs"===n.type);else if("wheelStopped"===n.type);else if("localstorageflag"===n.type){if(n.flagId){var r=!!Object(u.a)("local").getItem(Object(d.e)(n.flagId));switch(n.mustBe){case"set":return r;case"unset":return!r;default:Object(i.a)(n.mustBe)}}}else{if("dataFieldValueEq"===n.type){if(!n.fieldName)return!1;var o=v(e,t,n);return String(null!=o?o:"")===String(n.targetValue)}if("dataFieldValueNotEq"===n.type){if(!n.fieldName)return!1;o=v(e,t,n);return String(null!=o?o:"")!==String(n.targetValue)}if("viewvalid"===n.type){var a=Object(d.c)(e);return g(e,t,a,n.highlightTarget,!0===n.ignoreHiddenFields)}if("elementclicked"===n.type){var s=!n.wasClicked;if(!(m=n.targetId))return!1;if(x=e.getElementByUid(m)){var l=function(e,t,n){var r=!!e.data.elementClicks.find((function(e){return e===t.uid}));return!(!n||r)||!(n||!r)}(e,x,s);return f(e,l,x.uid,!1)}return!1}if("valueanyof"===n.type){var m=n.targetId,y=n.targetValues,D=n.highlightTarget;if(m){var O=e.getElementByUid(m),w=O?h(t,O):"";if(O){if("radio"===O.type||"select"===O.type){var C=y.map((function(e){return O.options.findIndex((function(t){return t.id===e}))})).filter((function(e){return e>=0})).map((function(e){return e.toString()}));return f(e,C.some((function(e){return p(w,e)})),m,D)}return f(e,y.some((function(e){return p(w,e)})),m,D)}}return!1}if("targetId"in n&&"targetValue"in n){m=n.targetId;var j=n.targetValue;D=n.highlightTarget;if(m){var x,E=(x=e.getElementByUid(m))?h(t,x):"";if(x){if("valuepresent"===n.type)return f(e,!Object(c.a)(e,x.uid),m,D);var A;if("valueeq"===n.type)return"radio"===x.type||"select"===x.type?(A=x.options.findIndex((function(e){return e.id===j})))<0||f(e,p(E,A.toString()),m,D):f(e,p(E,j),m,D);if("valuenoteq"===n.type&&j)return"radio"===x.type||"select"===x.type?(A=x.options.findIndex((function(e){return e.id===j})))<0||f(e,!p(E,A.toString()),m,D):f(e,!p(E,j),m,D);if("inputvalid"===n.type){if("input"===x.type||"radio"===x.type||"select"===x.type)return f(e,b(t.fields[x.uid],x),m,D)}else if("spinResult"===n.type){if("spinner"===x.type){l=x.resultSectionId===n.targetValue;return f(e,l,x.uid,D)}}else if("spinsLeft"===n.type){if("spinner"===x.type){var k=t.fields[x.uid];l=x.numberOfSpins-k===parseInt(n.targetValue,10);return f(e,l,x.uid,D)}}else if("spinsCount"===n.type&&"spinner"===x.type){l=(k=t.fields[x.uid])===parseInt(n.targetValue,10);return f(e,l,x.uid,D)}}}}else Object(i.a)(n.type)}return!0}},1870:function(e,t,n){"use strict";n.r(t);var r=new(n(1480).a),i={"project":{"fonts":[],"views":[{"uid":"element-yck6pjsql0twu2v8q3z6wogf8gq4ear4qt5","name":"View 1","type":"view","canvasX":250,"canvasY":250,"designs":{"opacity":1,"shadowBlur":10,"shadowPosX":0,"shadowPosY":2,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.25,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":0.5,"b":0,"g":0,"r":0},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"elements":[{"uid":"element-qpczgtq14cubq4flnb0g1uusdcv3b71ag82b","name":"Image 1","type":"image","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":8,"topRight":8,"bottomLeft":8,"bottomRight":8},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":0.5,"b":140,"g":140,"r":140},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"imageUrl":"https://cdn.giosgusercontent.com/assets/7948/RTI3lL9GCEOvRAvmvoDkr1hc6WpKck.jpg","objectFit":"contain","arrangement":{"default":{"xPos":0,"yPos":0,"width":300,"xType":"middle","yType":"middle","height":403,"hidden":false,"rotation":0,"topOffset":0,"leftOffset":0}},"clickEvents":[{"actions":[{"uid":"a-rxzh72grgf0rfx2t6o3vx94ncgr9lptfb64","type":"url","urlType":"redirect","targetUrl":"https://www.goo-net.com/satei/?utm_source=goonet&utm_medium=internal_web&utm_campaign=202607_kaitori&utm_content=goonet_internal_web_top_popup_adB"}],"conditions":[]}],"giosgAssetUrl":"/assets/7948/RTI3lL9GCEOvRAvmvoDkr1hc6WpKck.jpg","isWorkflowReportingEnabled":false},{"uid":"element-jfvpgrvronjto7gv0id7u17iknktojmu5r9","name":"Image 2","type":"image","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":0.5,"b":140,"g":140,"r":140},"backgroundImageSize":"contain","backgroundColorApplied":false,"backgroundImageApplied":false},"imageUrl":"https://cdn.giosgusercontent.com/assets/7948/Kvi7zfef7CFSJBp7SHnuvfykRhCQEc.png","objectFit":"contain","arrangement":{"default":{"xPos":130,"yPos":-220,"width":30,"xType":"middle","yType":"middle","height":30,"hidden":false,"rotation":0,"topOffset":-220,"leftOffset":130}},"clickEvents":[{"actions":[{"uid":"a-muv4hbuexu9aype92wsiokaljpc8g430ss4","type":"exit"}],"conditions":[]}],"giosgAssetUrl":"/assets/7948/Kvi7zfef7CFSJBp7SHnuvfykRhCQEc.png","isWorkflowReportingEnabled":false},{"uid":"element-hkmt8a1zjfudd1fkxjmjip3joaljih3lnyqu","name":"Image 7","type":"image","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":0.5,"b":140,"g":140,"r":140},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"objectFit":"contain","arrangement":{"default":{"xPos":-830,"yPos":300,"width":100,"xType":"left","yType":"top","height":30,"hidden":false,"rotation":0,"topOffset":300,"leftOffset":-830}},"isWorkflowReportingEnabled":false}],"arrangement":{"default":{"xPos":0,"yPos":0,"width":10000,"xType":"left","yType":"top","height":10000,"hidden":false,"maxWidth":10000,"minWidth":300,"rotation":0,"maxHeight":10000,"minHeight":568,"topOffset":0,"leftOffset":0,"isAutoMinWidth":true,"isAutoMinHeight":true}},"clickEvents":[{"actions":[{"uid":"a-rwu3zpxxkijqokwwvtdpt1rkpuu2q7avz","type":"exit"}],"conditions":[]}],"isFullWidth":true,"isFullHeight":true,"isKeyboardTrapDisabled":false,"isWorkflowReportingEnabled":true}],"jsCustom":"","cssCustom":"","syncState":true,"animations":{"exit":{"duration":300,"transitionType":"fade"},"enter":{"duration":250,"transitionType":"fade"},"change":{"duration":200,"transitionType":"fade"}},"dataFields":[{"id":"variable-n130wt0dl1g1fkj3rgjx4c0eacwmbllz796or","name":"goonet_internal_web_top_popup_adB","type":"string","defaultValue":""}],"allowScaling":2,"hasInitialFocus":false,"relativeFontSize":true,"localstorageFlags":["accepted","custom1","custom2","custom3"],"mountAsInlineBlock":false,"noUnsafeEvaluation":false,"allowMountedScaling":true,"isInInvisibleViewMode":false},"info":{"projectUid":1412953,"interactionUuid":"94f583ef-aa5a-4a96-8a8c-17540f118927","projectName":"買取_納得価格・条件ポップアップ","organizationUid":"297f39bc-49ec-11ed-8c8a-0242ac12000e","publishedAt":"2026-08-06T01:13:17.662Z","editing":false,"api":{"interactionDesignerOrigin":"https://94f583ef-aa5a-4a96-8a8c-17540f118927.interactions.giosgusercontent.com","breweryExternalEventEndpoint":"https://api.giosg.com/events/v2/store/external","interactionPlayerChatOrigin":"https://service.giosg.com"},"fonts":[],"isPreviewMode":false,"groups":[],"themeStyles":[{"uid":"themestyle-xwr6he7oghwebcauca3a66naaj1023b5oz7","name":"Default","designs":{"opacity":1,"shadowBlur":10,"shadowPosX":0,"shadowPosY":2,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.25,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":false,"shadowApplied":true,"backgroundColor":{"a":1,"b":255,"g":255,"r":255},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"view"},{"uid":"themestyle-f9vhe9floyyum9m3o7cs8dotomfu93lhyl3g","name":"Default","designs":{"opacity":1,"padding":5,"fontBold":true,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":228,"g":228,"r":228},"borderStyle":"solid","borderWidth":2,"shadowColor":{"a":0.02,"b":255,"g":87,"r":115},"borderRadius":{"topLeft":100,"topRight":100,"bottomLeft":100,"bottomRight":100},"shadowSpread":0,"borderApplied":true,"shadowApplied":true,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":1,"b":255,"g":255,"r":255},"backgroundImageSize":"contain","backgroundHoverColor":{"a":1,"b":235,"g":235,"r":235},"backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"button","hasCustomName":false},{"uid":"themestyle-vz6etw4zcx2otw9y20uwv6mess5k42f80dyg","name":"Default","designs":{"opacity":1,"fontBold":false,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"textAlignment":"left","fontUnderlined":false,"selectedFillColor":{"a":1,"b":255,"g":87,"r":115},"selectedMarkColor":{"a":1,"b":255,"g":255,"r":255},"borderInvalidColor":{"a":1,"b":160,"g":127,"r":255},"selectedBorderColor":{"a":1,"b":255,"g":87,"r":115},"unselectedFillColor":{"a":0,"b":255,"g":255,"r":255},"unselectedBorderColor":{"a":1,"b":211,"g":211,"r":211},"backgroundInvalidColor":{"a":1,"b":245,"g":245,"r":255}},"elementType":"checkbox","hasCustomName":false},{"uid":"themestyle-pbj0quiuixfcrkgypq8qgjv8gtcqhrb1pvid","name":"Default","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":0.5,"b":140,"g":140,"r":140},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"image"},{"uid":"themestyle-s06oi8vdnlu1xswolw5mf191od5erdgyfaayi","name":"Default","designs":{"opacity":1,"fontBold":false,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":225,"g":219,"r":214},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":true,"shadowApplied":false,"textAlignment":"left","fontUnderlined":false,"backgroundColor":{"a":1,"b":251,"g":251,"r":251},"borderInvalidColor":{"a":1,"b":160,"g":127,"r":255},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false,"backgroundInvalidColor":{"a":1,"b":245,"g":245,"r":255}},"elementType":"input","hasCustomName":false},{"uid":"themestyle-omm60ic5kioy3hht8y5pqujc6p3funx7rta","name":"Default","designs":{"opacity":1,"fontBold":false,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"textAlignment":"left","fontUnderlined":false,"textInvalidColor":{"a":1,"b":160,"g":127,"r":255},"selectedFillColor":{"a":1,"b":255,"g":87,"r":115},"selectedMarkColor":{"a":1,"b":255,"g":255,"r":255},"selectedBorderColor":{"a":1,"b":255,"g":87,"r":115},"unselectedFillColor":{"a":0,"b":255,"g":255,"r":255},"unselectedBorderColor":{"a":1,"b":211,"g":211,"r":211}},"elementType":"radio"},{"uid":"themestyle-e19wfaxad1ijhgdv497hkc7q9v867vdhsm0lh","name":"Default","designs":{"opacity":1,"fontBold":false,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":225,"g":219,"r":214},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":5,"topRight":5,"bottomLeft":5,"bottomRight":5},"shadowSpread":0,"borderApplied":true,"shadowApplied":false,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":1,"b":251,"g":251,"r":251},"borderInvalidColor":{"a":1,"b":160,"g":127,"r":255},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false,"backgroundInvalidColor":{"a":1,"b":251,"g":249,"r":255}},"elementType":"select"},{"uid":"themestyle-ptddtat20hkngqjlknwca2zd7awkeocsoes","name":"Default","designs":{"opacity":1,"padding":5,"fontBold":false,"fontSize":14,"textColor":{"a":1,"b":56,"g":43,"r":37},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":0,"shadowPosX":0,"shadowPosY":0,"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},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":0,"b":255,"g":255,"r":255},"backgroundImageSize":"contain","verticalTextAlignment":"top","backgroundColorApplied":false,"backgroundImageApplied":false},"elementType":"text"},{"uid":"themestyle-u06751yx7sgpxege49v28rbwb2os8csql2vb","name":"Default","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":0,"topRight":0,"bottomLeft":0,"bottomRight":0},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":1,"b":0,"g":0,"r":0},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"video"},{"uid":"themestyle-ukewfh9du4ddij4fkc08ydga2kvrvzeelvv","name":"Embedded content","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":0,"topRight":0,"bottomLeft":0,"bottomRight":0},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":1,"b":218,"g":218,"r":218},"backgroundImageSize":"contain","backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"iframe"},{"uid":"themestyle-cr4zm1pw2dbf6xpfyfq8zxwdssmyuzmyjud","name":"Live video stream","designs":{"opacity":1,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":1,"shadowColor":{"a":0.5,"b":0,"g":0,"r":0},"borderRadius":{"topLeft":0,"topRight":0,"bottomLeft":0,"bottomRight":0},"shadowSpread":0,"borderApplied":false,"shadowApplied":false,"backgroundColor":{"a":1,"b":62,"g":62,"r":62},"backgroundImageSize":"100% 100%","backgroundColorApplied":true,"backgroundImageApplied":true},"elementType":"stream"},{"uid":"themestyle-gm3lxkur5u9ddv9j5xutnbkwqomkdj91foq","name":"Primary","designs":{"opacity":1,"padding":5,"fontBold":true,"fontSize":14,"textColor":{"a":1,"b":255,"g":255,"r":255},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":0,"elementType":"button","shadowColor":{"a":0.25,"b":255,"g":87,"r":115},"borderRadius":{"topLeft":100,"topRight":100,"bottomLeft":100,"bottomRight":100},"shadowSpread":0,"borderApplied":false,"shadowApplied":true,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":1,"b":255,"g":87,"r":115},"backgroundImageSize":"contain","backgroundHoverColor":{"a":1,"b":235,"g":67,"r":95},"backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"button","hasCustomName":false},{"uid":"themestyle-a7owsoewwf44s7cuoa3kshq4i4zqz7g8c65","name":"Danger","designs":{"opacity":1,"padding":5,"fontBold":true,"fontSize":14,"textColor":{"a":1,"b":255,"g":255,"r":255},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":0,"elementType":"button","shadowColor":{"a":0.25,"b":124,"g":124,"r":255},"borderRadius":{"topLeft":100,"topRight":100,"bottomLeft":100,"bottomRight":100},"shadowSpread":0,"borderApplied":false,"shadowApplied":true,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":1,"b":124,"g":124,"r":255},"backgroundImageSize":"contain","backgroundHoverColor":{"a":1,"b":104,"g":104,"r":235},"backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"button","hasCustomName":false},{"uid":"themestyle-jyb9vdkyd98pnwarkrlg659lwttvxhvbbjx","name":"Success","designs":{"opacity":1,"padding":5,"fontBold":true,"fontSize":14,"textColor":{"a":1,"b":255,"g":255,"r":255},"fontFamily":"Arial, Helvetica Neue, Helvetica, sans-serif","fontItalic":false,"shadowBlur":6,"shadowPosX":0,"shadowPosY":4,"borderColor":{"a":1,"b":0,"g":0,"r":0},"borderStyle":"solid","borderWidth":0,"elementType":"button","shadowColor":{"a":0.25,"b":155,"g":208,"r":56},"borderRadius":{"topLeft":100,"topRight":100,"bottomLeft":100,"bottomRight":100},"shadowSpread":0,"borderApplied":false,"shadowApplied":true,"textAlignment":"center","fontUnderlined":false,"backgroundColor":{"a":1,"b":155,"g":208,"r":56},"backgroundImageSize":"contain","backgroundHoverColor":{"a":1,"b":135,"g":188,"r":36},"backgroundColorApplied":true,"backgroundImageApplied":false},"elementType":"button","hasCustomName":false}]}},o=document.currentScript.src.includes("?preventAutomaticStartup=true");r.initInteraction(i,o)},194:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"d",(function(){return D}));var r=n(1),i=n(14),o=n(231),a=n(13),u=n(134),s=n(123),c=n(209),l={title:"h2",heading:"h3",subHeading:"h4",default:"div"},d="#B1D6FD",f=function(e,t){return e?t:"inherit"},p=function(e,t,n,i){var o=e.bold,u=e.italic,s=e.underline,c=e.fontSize,l=e.fontFamily,d=e.color,p=e.url;return void 0===i&&(i=!1),Object(r.a)({cursor:f(!!p,"pointer"),fontWeight:f(!!o,"bold"),fontStyle:f(!!u,"italic"),textDecoration:f(!!s,"underline"),fontSize:f(!!c,"number"==typeof c?Object(a.u)(c,t):void 0),fontFamily:f(!!l,l),color:f(!!d&&!i,d)},Object(a.t)(n,1.2))},h=function(e){var t=e.react,n=e.css,i=e.textMetrics,o=e.relativeFontSize;return function(e){var a=e.children,u=e.attributes,s=void 0===u?{}:u,c=e.leaf,l=e.isEditingMode,d=n(p(c,o,i));return t.createElement(c.url?"a":"span",Object(r.a)(Object(r.a)({className:d},c.url&&!l?g(c):{}),s),null!=a?a:c.text)}},b={fontSize:"initial",fontFamily:"initial",fontWeight:"initial",wordBreak:"initial"},g=function(e){return e.url?{href:Object(u.a)(e.url),target:e.openInNewTab?"_blank":void 0,title:e.title?e.title:void 0}:{}},v=function(e){var t=e.react,n=e.css,o=e.editMode,u=e.sementicType,d=e.getVariableValue,f=e.textMetrics,h=e.relativeFontSize;return function(e){var g=e.element,v=e.attributes,m=e.children;if("VARIABLE"===g.type){var y=p(g.children[0],h,f);if(o)return t.createElement("span",{className:n(c.b,y)},g.variable);var D=void 0;try{D=d(g.variable)}catch(e){console.error(e),D="error"}return t.createElement("span",{className:n(y)},"object"==typeof D?JSON.parse(JSON.stringify(D)):null!=D?D:"")}var O,w=function(e,t,n){void 0===t&&(t="justify");var i=["LIST_BULLETED","LIST_NUMBERED"].includes(e)?{"> li":{listStyleType:"LIST_BULLETED"===e?"disc":"decimal",background:"initial"}}:{};return Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},b),{'* :not([data-slate-string]="true")':b,paddingInline:"revert",marginBlock:0,textAlign:t,fontSize:0}),Object(a.t)(n,1.2)),i)}(g.type,g.textAlignment,f);if("LIST_ITEM"===g.type){var C=g.children[0],j=i.i.isText(C)?C:"VARIABLE"===C.type?C.children[0]:{},x={"&::marker":p(j,h,f)};O=n(w,x)}else O=n(w);var E="default"===u?Object(s.c)(g.type):l[u];return t.createElement(E,Object(r.a)(Object(r.a)({},v),{children:m,className:O}))}},m=function(e){return"VARIABLE"!==e.type&&1===e.children.length&&i.i.isText(e.children[0])&&""===e.children[0].text},y=function(e){var t,n,r=e.nodes,a=e.react,u=e.css,s=e.textMetrics,c=e.relativeFontSize,l=e.element,d=e.editingMode,f=e.getVariableValue;if(!r)return null;var p=h({react:a,css:u,textMetrics:s,relativeFontSize:c,sementicType:"default"}),b=null!==(n=null!==(t=l.semanticType)&&void 0!==t?t:l.sementicType)&&void 0!==n?n:"default",g=v({react:a,css:u,editMode:d,sementicType:b,getVariableValue:f,textMetrics:s,relativeFontSize:c}),y=function(e,t){return g({element:e,children:e.children.map((function(n){return i.b.isElement(n)?y(n,t):p({leaf:n,isEditingMode:t,children:m(e)?a.createElement("br",{}):void 0})}))})};return Object(o.b)(r).map((function(e){return y(e,!!d)}))},D=function(e){var t=e.react,n=e.css,o=e.getVariableValue,a=e.isEditMode,u=e.relativeFontSize,s=e.textMetrics,l=e.elementState,d=e.buttonDesigns;return function(e){var f=Boolean(d&&("disabled"===l||"hover"===l||"active"===l));if(i.b.isElement(e)&&"VARIABLE"===e.type){var h=void 0;try{h=o(e.variable)}catch(e){console.error(e),h="error"}var b=a,g=b?e.variable:null!=h?h:"",v=p(e.children[0],u,s,f),m=n.apply(void 0,Object(r.m)([],Object(r.k)(b?[v,c.b]:[v]),!1));return t.createElement("span",{className:m},"object"==typeof g?JSON.parse(JSON.stringify(g)):g)}if(i.i.isText(e)){m=n(p(e,u,s,f));return t.createElement("span",{className:m},e.text)}return null}}},20:function(e,t,n){"use strict";function r(){return String.fromCharCode(97+Math.floor(26*Math.random()))+Math.random().toString(36).slice(2)}function i(e){return(e||"uid")+"-"+r()+r()+r()}n.d(t,"h",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"j",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"k",(function(){return h}));var o=function(){return i("element")},a=function(){return i("themestyle")},u=function(){return("font"||"uid")+"-"+r()+r()},s=function(){return i("a")},c=function(){return i("c")},l=function(){return i("o")},d=function(){return i("u")},f=function(){return i("event")},p=function(){return i("group")},h=function(){return i("variable")}},207:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){var t,n,r;return null!==(r=null!==(n=null===(t=e.goals)||void 0===t?void 0:t.map((function(e){return e.uid})))&&void 0!==n?n:e.goalUids)&&void 0!==r?r:e.goalEnabled&&void 0!==e.goalUid?[e.goalUid]:[]},i=function(e){var t,n,r;return null!==(r=null!==(n=null===(t=e.goals)||void 0===t?void 0:t.map((function(e){return e.uid})))&&void 0!==n?n:e.goalUids)&&void 0!==r?r:[]}},208:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(1),i=n(182),o=function(e,t,n){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(r){return[2,new Promise((function(r,i){if(e){var o=new URLSearchParams({preview:n.isPreviewMode.toString(),published_at:n.publishedAt||""}),a="/api/v2/live_interactions/".concat(n.interactionUuid,"/js_actions.js"),u="".concat(t).concat(a,"?").concat(o.toString()),s=document.head,c=document.createElement("script");c.type="application/javascript",c.src=u,c.onload=function(){return r()},c.onerror=function(e){return i(e)},s.appendChild(c)}else r()}))]}))}))},a=function(e,t,n,r){try{if(e)(function(e){var t,n=null===(t=window.giosgInteractionJsActionsV2)||void 0===t?void 0:t[e];if(!n)throw new Error("Interaction custom js not found. This maybe caused by CSP issue or mistake in the interaction js");return n.global})(t)(r);else new Function(i.a,n)(r)}catch(e){var o="Custom JS Error: ".concat(e.message);return console.error(o),console.error(e),o}},u=function(e,t,n,o,a,u,s){return Object(r.e)(void 0,void 0,void 0,(function(){var c,l,d,f,p;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(c="Action custom JS Error:",!e)return[3,7];if(!(l=function(e,t){var n,r=null===(n=window.giosgInteractionJsActionsV2)||void 0===n?void 0:n[e];if(!r)throw new Error("Interaction custom js not found. This maybe caused by CSP issue or mistake in the interaction js");return r[t]}(n,t)))throw new Error("Did not find runjs action ".concat(t,". Possible syntax error, check console."));r.label=1;case 1:return r.trys.push([1,5,,6]),o?[4,new Promise((function(e){return l(e,u)})).catch((function(e){console.info("".concat(c," ").concat(e.message)),console.info(e)}))]:[3,3];case 2:return[2,r.sent()];case 3:return[2,l(u)];case 4:return[3,6];case 5:return d=r.sent(),console.info("".concat(c," ").concat(d.message)),console.info(d),[3,6];case 6:return[3,13];case 7:f=s.map((function(e){return"var ".concat(e.variableName," = ").concat(JSON.stringify(e.value),";\n")})).join(""),r.label=8;case 8:return r.trys.push([8,12,,13]),o?[4,new Promise((function(e){return new Function("done",i.a,f+a)(e,u)})).catch((function(e){console.info("".concat(c," ").concat(e.message)),console.info(e)}))]:[3,10];case 9:return[2,r.sent()];case 10:return[2,new Function(i.a,f+a)(u)];case 11:return[3,13];case 12:return p=r.sent(),console.info("".concat(c," ").concat(p.message)),console.info(p),[3,13];case 13:return[2]}}))}))}},209:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(1),i=n(25),o={border:"1px solid ".concat(i.g),borderRadius:4,padding:"2px 4px",backgroundColor:i.g,verticalAlign:"center",margin:"-3px 0",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:120},a=Object(r.a)(Object(r.a)({},o),{fontSize:12,fontWeight:600,color:"#000",fontFamily:'"Nunito Sans"',lineHeight:"16px"})},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return N})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return C})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return L})),n.d(t,"m",(function(){return V})),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 b})),n.d(t,"r",(function(){return Z})),n.d(t,"s",(function(){return _})),n.d(t,"t",(function(){return P})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return X})),n.d(t,"w",(function(){return g})),n.d(t,"x",(function(){return K})),n.d(t,"y",(function(){return J})),n.d(t,"z",(function(){return I})),n.d(t,"A",(function(){return Y})),n.d(t,"B",(function(){return D})),n.d(t,"C",(function(){return R}));var r="-ms-",i="-moz-",o="-webkit-",a="comm",u="rule",s="decl",c="@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 h(e){return e.trim()}function b(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 D(e){return e.length}function O(e){return e.length}function w(e,t){return t.push(e),e}function C(e,t){return e.map(t).join("")}var j=1,x=1,E=0,A=0,k=0,F="";function B(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:x,length:a,return:""}}function S(e,t){return f(B("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return k=A2||R(k)>3?"":" "}function M(e,t){for(;--t&&_()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return I(e,T()+(t<6&&32==P()&&32==_()))}function U(e,t){for(;_()&&e+k!==57&&(e+k!==84||47!==P()););return"/*"+I(t,A-1)+"*"+d(47===e?e:_())}function $(e){for(;!R(P());)_();return I(e,A)}function W(e){return L(function e(t,n,r,i,o,a,u,s,c){var l=0,f=0,p=u,h=0,b=0,y=0,O=1,C=1,E=1,B=0,S="",I=o,R=a,N=i,L=S;for(;C;)switch(y=B,B=_()){case 40:if(108!=y&&58==m(L,p-1)){-1!=v(L+=g(V(B),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:L+=V(B);break;case 9:case 10:case 13:case 32:L+=z(y);break;case 92:L+=M(T()-1,7);continue;case 47:switch(P()){case 42:case 47:w(q(U(_(),T()),n,r),c);break;default:L+="/"}break;case 123*O:s[l++]=D(L)*E;case 125*O:case 59:case 0:switch(B){case 0:case 125:C=0;case 59+f:-1==E&&(L=g(L,/\f/g,"")),b>0&&D(L)-p&&w(b>32?G(L+";",i,r,p-1):G(g(L," ","")+";",i,r,p-2),c);break;case 59:L+=";";default:if(w(N=H(L,n,r,l,f,o,s,S,I=[],R=[],p),a),123===B)if(0===f)e(L,n,N,N,I,a,p,s,R);else switch(99===h&&110===m(L,3)?100:h){case 100:case 108:case 109:case 115:e(t,N,N,i&&w(H(t,N,N,0,0,o,s,S,o,I=[],p),R),o,R,p,s,i?I:R);break;default:e(L,N,N,N,[""],R,0,s,R)}}l=f=b=0,O=E=1,S=L="",p=u;break;case 58:p=1+D(L),b=y;default:if(O<1)if(123==B)--O;else if(125==B&&0==O++&&125==(k=A>0?m(F,--A):0,x--,10===k&&(x=1,j--),k))continue;switch(L+=d(B),B*O){case 38:E=f>0?1:(L+="\f",-1);break;case 44:s[l++]=(D(L)-1)*E,E=1;break;case 64:45===P()&&(L+=V(_())),h=P(),f=p=D(S=L+=$(T())),B++;break;case 45:45===y&&2==D(L)&&(O=0)}}return a}("",null,null,null,[""],e=N(e),0,[0],e))}function H(e,t,n,r,i,o,a,s,c,d,f){for(var p=i-1,b=0===i?o:[""],v=O(b),m=0,D=0,w=0;m0?b[C]+" "+j:g(j,/&\f/g,b[C])))&&(c[w++]=x);return B(e,t,n,0===i?u:s,c,d,f)}function q(e,t,n){return B(e,t,n,a,d(k),y(e,2,-2),0)}function G(e,t,n,r){return B(e,t,n,s,y(e,0,r),y(e,r+1,-1),r)}function J(e,t){for(var n="",r=O(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,"")+(b(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(!b(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,b(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")?b(a,/\d+/):+b(a,/\d+/)-+b(t,/\d+/))+";":r+g(t,"-start","")+t;case 4896:case 4128:return a&&a.some((function(e){return b(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(D(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,u,s){return r+n+":"+i+s+(o?r+n+"-span:"+(a?u:+u-+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 c:return J([S(e,{value:g(e.value,"@","@"+o)})],a);case u:if(e.length)return C(e.props,(function(t){switch(b(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return J([S(e,{props:[g(t,/:(read-\w+)/,":"+i+"$1")]})],a);case"::placeholder":return J([S(e,{props:[g(t,/:(plac\w+)/,":"+o+"input-$1")]}),S(e,{props:[g(t,/:(plac\w+)/,":"+i+"$1")]}),S(e,{props:[g(t,/:(plac\w+)/,r+"input-$1")]})],a)}return""}))}}},222:function(e,t,n){"use strict";n.d(t,"b",(function(){return Nt})),n.d(t,"a",(function(){return Lt})),n.d(t,"c",(function(){return Wt}));var r=n(1),i=n(4),o=n(303),a=n(339),u=n(31),s=n(194),c=n(123),l=n(43),d=n(82),f=n(50),p=n(13);var h=n(59),b=n(74);var g,v,m,y=n(154),D=n(67),O=n(33),w=function(e,t,n,r){var i=t.designs,o=!!t.richText;return[{padding:t.designs.paddingsNew?Object(p.o)(t):Object(p.n)(t,!1),whiteSpace:"pre-wrap"},Object(p.c)(!r,Object(p.l)(i)),Object(p.f)(i,e,!0),Object(p.c)(!o,Object(p.s)(i,e.data.project.relativeFontSize)),Object(p.c)(o,Object(p.q)(i)),Object(p.g)(i,e),Object(p.i)(i,n),Object(p.k)()]},C=function(e){var t,n,r,o,a,u=e.element,s=e.textRenderer;return u.richText?0===u.richText.length?null:i.b.jsx(i.b.Fragment,null,u.richText[0].children.map((function(e){return s(e)}))):i.b.jsx(i.b.Fragment,null,(n=null!==(t=u.label)&&void 0!==t?t:"",r=n.trim(),o=n.indexOf(r),a=n.length-r.length-o,b.d.repeat(o)+r+b.d.repeat(a)))},j=n(51),x=n(57),E=n(156),A=function(e,t){var n=e.data.fields[t.uid],i=function(n){var i;e.setData({fields:Object(r.a)(Object(r.a)({},e.data.fields),(i={},i[t.uid]=n,i))})};return e.data.info.editing?[Object(E.a)(t),i]:[n,i]},k=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"}))))},F=function(e,t){return[Object(p.f)(e,t,!1),Object(p.s)(e,t.data.project.relativeFontSize)]},B=function(e,t){return[Object(p.s)(e,t.data.project.relativeFontSize),{display:"inline-flex",position:"relative",cursor:"pointer"}]},S=function(e,t){var n=e.fontSize+2;return[Object(p.s)(e,t.data.project.relativeFontSize),{cursor:"pointer",display:"inline-block",marginLeft:n+Math.floor(n/4),userSelect:"none"}]},_=function(e,t){var n=e.fontSize+2,r=e.borderInvalidColor,i=e.backgroundInvalidColor;return[{borderRadius:"10%",border:"2px solid",borderColor:Object(p.v)(e.unselectedBorderColor),backgroundColor:Object(p.v)(e.unselectedFillColor),cursor:"pointer",height:n,width:n,display:"inline-block",position:"absolute",boxSizing:"border-box",userSelect:"none"},Object(p.c)(!t,{backgroundColor:i&&Object(p.v)(i),borderColor:r&&Object(p.v)(r)})]},P=function(e){return{display:"none",width:e.fontSize+2-6,margin:"auto",position:"absolute",top:0,bottom:0,left:0,right:0,color:Object(p.v)(e.selectedMarkColor)}},T=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},I=n(357),R=n(72),N=n(262),L=function(e){var t=e.className;return i.b.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},i.b.jsx("path",{fill:"currentColor",d:"M20,5H4A1,1,0,0,0,3,6V18a1,1,0,0,0,1,1H20a1,1,0,0,0,1-1V6A1,1,0,0,0,20,5ZM19,7V8.382l-7,3.5-7-3.5V7ZM5,17V10.618l6.105,3.052a2.012,2.012,0,0,0,1.79,0L19,10.618V17Z"}))},V=function(e){var t=new e.Renderer,n=t.image.bind(t);return t.image=function(e,t,r){return n(e,t,r).replace(" *:first-child"]={marginTop:0},m["& > *:last-child"]={marginBottom:0},m["& > *"]={marginTop:14,marginBottom:14},m["ul, ol"]={paddingLeft:20},m.a={fontWeight:600,color:"inherit",textDecoration:"underline"},m.pre={overflowX:"auto"},m.code={fontFamily:"monospace"},m.h1={fontWeight:700,fontSize:20,lineHeight:"24px"},m.h2={fontWeight:700,fontSize:18,lineHeight:"22px"},m.h3={fontWeight:700,fontSize:16,lineHeight:"20px"},m["h4, h5, h6"]={fontWeight:700},m.hr={border:"none",height:1,backgroundColor:"currentColor",opacity:.25},m["strong, b"]={fontWeight:700},m["em, i"]={fontStyle:"italic"},m.blockquote={marginLeft:0,borderLeft:"4px solid currentColor",borderRadius:"2px 0 0 2px",padding:"12px 12px 12px 16px",backgroundColor:"rgba(0, 0, 0, 0.05)","& > p":{margin:0}},m.table={borderSpacing:0,borderCollapse:"collapse","thead th, tbody td":{padding:4,border:"1px solid rgba(0, 0, 0, 0.25)"}},m[".".concat("giosg-markdown-image")]={display:"block",maxWidth:"100%",height:"auto",borderRadius:8},m),Y=n(361),Z=n(159),K=function(e,t){var n=Object(Y.a)(e.slice(),t),i=n.elementsWithIndex,o=n.layouts,a=n.flowElements,u=Object(Z.c)(i,o);return Object(r.m)(Object(r.m)([],Object(r.k)(a),!1),Object(r.k)(u),!1)},X=function(e){return[Object(p.f)({opacity:1},e,!1),Object(p.e)(e,!1),{display:"flex"}]},Q=n(436),ee=n(134),te={height:"100%",width:"100%",overflow:"hidden"},ne=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 u=Object(r.n)(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value,l=document.createElement("script");l.type="text/javascript",l.innerText=c.innerText,c.src&&(l.src=c.src),document.head.appendChild(l),c.remove()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}n.current.innerHTML=i.body.innerHTML}}),[o]),i.b.jsx("div",{className:t(te),ref:n})},re=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"}))))},ie=function(e,t){return[Object(p.f)(t,e,!0),Object(p.g)(t,e)]},oe=["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(" "),ae={height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#8D8C9A"},ue=n(28);function se(e){switch(e){case"contain":return"contain";case"cover":return"cover";case"fill":return"100% 100%";case"none":return"auto";default:return Object(ue.a)(e)}}var ce=function(e,t,n,r,i){return[Object(p.f)(t,e,r),Object(p.e)(e,r),Object(p.g)(t,e),Object(p.c)(!!i,{backgroundImage:"url(".concat(i,")"),backgroundSize:se(n.objectFit),backgroundPosition:"center"}),r&&Object(p.l)(t)]},le=n(128),de=n(183),fe=n(37);function pe(e,t,n){return Object(r.e)(this,void 0,void 0,(function(){var i,o,a,u,s;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(!t.trim())return[2,null];i="".concat(fe.g,"/api/telephony/v1/public/orgs/").concat(e,"/allowed_number"),o={phone_number:t,default_country_code:n},r.label=1;case 1:return r.trys.push([1,6,,7]),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})];case 2:return(a=r.sent()).ok?[3,4]:[4,a.json()];case 3:throw u=r.sent(),new Error("Error ".concat(a.status,": ").concat(u.message||a.statusText));case 4:return[4,a.json()];case 5:return[2,r.sent().formatted_number];case 6:return s=r.sent(),console.warn("Error during phone number validation for ".concat(t,": ").concat(s)),[2,null];case 7:return[2]}}))}))}var he=function(e,t,n){return[Object(p.f)(t.designs,e,n),{display:"flex",flexDirection:"column"}]},be=function(e,t,n,r,i,o){var a,u,s=t.shadowPosX,c=t.shadowBlur,l=t.shadowPosY,d=t.shadowSpread,f=t.shadowApplied,h=t.backgroundInvalidColor,b=t.shadowInvalidColor,g=t.borderInvalidColor;return[Object(p.s)(t,e.data.project.relativeFontSize),Object(p.g)(t,e),Object(p.l)(t),{pointerEvents:"initial",padding:"0.5em",resize:"none",width:"100%",boxSizing:"border-box",flexGrow:1},Object(p.c)(o,{paddingLeft:"calc(".concat("0.5em"," + ").concat(t.fontSize,"px + 4px)")}),Object(p.c)(!n,{backgroundColor:h&&Object(p.v)(h),borderColor:g&&Object(p.v)(g),boxShadow:b&&f?"".concat(s,"px ").concat(l,"px ").concat(c,"px ").concat(d,"px ").concat(Object(p.v)(b)):void 0,backgroundImage:(a=g?Object(p.v)(g):"red",u=''),'url("data:image/svg+xml;utf8,'.concat(encodeURIComponent(u),'")')),backgroundPosition:"calc(100% - 4px)",backgroundSize:"1rem"}),Object(p.c)("number"===r,{"::-webkit-outer-spin-button, ::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},MozAppearance:"textfield"}),Object(p.c)(!i,Object(p.k)())]},ge=function(e,t,n){var r;return[Object(p.s)(e,t.data.project.relativeFontSize),{color:null!==(r=e.borderInvalidColor&&Object(p.v)(e.borderInvalidColor))&&void 0!==r?r:"red"},Object(p.c)(!n,{position:"absolute",top:"100%"})]},ve=function(e){if(/^-?\d+([.,]\d+)?$/.test(e))return Number(e.replace(",","."))},me=function(e,t){return{position:"absolute",pointerEvents:"none",left:"0.5em",width:"".concat(t,"px"),height:"".concat(t,"px"),top:"multiline"===e?"0.5em":"50%",transform:"multiline"===e?"none":"translateY(-50%)",objectFit:"contain"}},ye=function(e){var t=e.onClick,n=e.className,r=e.ariaLabelledby,o=e.buttonRef,a=i.b.useCss();return i.b.jsx("button",{ref:o,type:"button",className:a(n),onClick:function(e){e.stopPropagation(),t()},"aria-labelledby":r},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","aria-hidden":"true",focusable:"false"},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"}))))};function De(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 u,s=((u=.5)+(1.25-u)*Math.random())*t*(Math.random()>.5?1:-1),c=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(c,"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 Oe=["👍","🎉","❤️","😯"],we=function(e){var t=e.animationContainer,n=e.emoteSymbol,o=e.className,a=e.size,u=e.orgId,s=e.interactionId,c=e.getUnpackedVisitorCid,l=e.buttonProps,d=i.b.useCss(),f=Object(i.f)();return i.b.jsx("button",Object(r.a)({},l,{className:d(o),onClick:function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var i,o;return Object(r.h)(this,(function(r){switch(r.label){case 0:return e.stopPropagation(),(i=f.current)?(De({size:a,emoteSymbol:n,buttonElement:i,containerElement:t,isOwnReaction:!0}),[4,c()]):[2];case 1:return o=r.sent(),function(e,t,n,r){var i="".concat(fe.g,"/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)}))}(u,s,n,o),[2]}}))}))},ref:f}),n)};function Ce(){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 je(e){var t=e.element,n=e.store,i=e.css,o=e.isDrawerOpen,a=e.emoteCount,u=t.designs,s=t.arrangement.default,c=s.width,l=s.height,d=Math.min(c,l),f=Math.max(0,.8*d),h=(a+1)*c,b=d/2,g=Math.max(0,.4*d),v=.6*g,m={display:"flex",transition:"100ms ease background",justifyContent:"center",alignItems:"center",borderRadius:"100%",width:f,height:f},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(o)]})))}({base:[Object(p.f)(u,n,!1),Object(p.g)(u,n),Object(p.k)(),{fontSize:g,fontFamily:"'Noto Color Emoji', sans-serif",display:"flex",width:c,height:l,justifyContent:"center",alignItems:"center",borderRadius:b,background:"white","&, & *":{cursor:"pointer"},":hover > div":{background:"#EFEDFA"}}],reactionDrawer:[Object(p.f)(u,n,!1),Object(p.g)(u,n),Object(p.k)(),{borderRadius:b,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?h:0,width:c,zIndex:1}],closeButton:[Object(r.a)(Object(r.a)({},y),{"> svg":{width:v,height:v}}),Object(p.k)()],emoteButton:[Object(r.a)({},y),Object(p.k)()],innerContainer:m},i)}var xe,Ee,Ae,ke,Fe,Be,Se=n(226),_e=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"}))},Pe=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"}))},Te=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}))},Ie=function(e,t){return[Object(p.f)(e,t,!1),Object(p.g)(e,t),Object(p.s)(e,t.data.project.relativeFontSize),{width:"100%",height:"100%",padding:17,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box"}]},Re=function(e){return[{width:"100%",display:"flex",alignItems:"center",fontFamily:"Nunito Sans",color:"#000000"},Object(p.c)("vertical"===e.orientation,{flexDirection:"column"})]},Ne=function(e){return[{width:"100%",display:"flex",alignItems:"flex-start",flexDirection:"column",overflow:"hidden"},Object(p.c)("vertical"===e.orientation,{alignSelf:"flex-start"}),Object(p.c)("vertical"===e.listDirection,{marginBottom:16})]},Le={maxWidth:50,maxHeight:50,objectFit:"contain",borderRadius:5,cursor:"pointer","& > path":{cursor:"pointer"}},Ve=function(e){return[{display:"inline-block",flexShrink:0,marginRight:16},Object(p.c)("vertical"===e.orientation,{marginRight:0,marginBottom:20})]},ze=function(e){return{fontWeight:900,fontSize:14,lineHeight:"12px",letterSpacing:.2,textTransform:"uppercase",color:Object(p.v)(e)}},Me={width:"100%",display:"flex",justifyContent:"space-between",color:"#000000"},Ue={display:"flex",justifyContent:"center",alignItems:"center",gap:8},$e=function(e){var t=e.mirrorIcon,n=e.pointerEvents;return[{cursor:"pointer",color:"#000000","& > path":{cursor:"pointer"}},Object(p.c)(t,{transform:"scaleX(-1)"}),Object(p.c)(!n,{cursor:"auto",pointerEvents:"none"})]},We=function(e){var t,n,o,a=e.store,u=e.element,s=e.product,c=e.productsAmount,d=e.activeProductIndex,f=e.setActiveProductIndex,h=e.parentVariables,b=e.elementPath,g=i.b.useCss(),v=Object(r.m)([],Object(r.k)(Array(Math.min(c,3)).keys()),!1);return i.b.jsx("div",{className:g(Ie(u.designs,a))},i.b.jsx("div",{className:g(Re(u))},i.b.jsx("a",{className:g(Ve(u)),href:s.url,target:"_blank",rel:"noreferrer"},"product_example_id"===s.id?i.b.jsx(_e,{className:g(Le)}):s.image_url?i.b.jsx("img",{className:g(Le),src:s.image_url,alt:""}):null),i.b.jsx("div",{className:g(Ne(u))},u.callToActionText&&i.b.jsx("div",{className:g((o=u.designs.accentColor,{fontWeight:800,fontSize:10,lineHeight:"12px",color:Object(p.v)(o),textTransform:"uppercase",marginBottom:8}))},u.callToActionText),i.b.jsx("div",{className:g((n=u.designs.productNameColor,{fontWeight:900,fontSize:12,lineHeight:"14px",marginBottom:8,textAlign:"left",color:Object(p.v)(n)}))},s.name),s.price&&i.b.jsx("div",{className:g(ze(u.designs.accentColor))},s.price,s.currency?" "+s.currency:""))),u.buttonCallToActionText&&i.b.jsx("button",{onClick:function(){return function(){if(s.add_to_cart_script){var e=new Function(s.add_to_cart_script);try{e()}catch(e){console.error("Error occurred while runnning add to cart script")}}else s.url&&window.open(s.url,"_blank");Object(l.a)(a,u,{elementUid:u.uid,type:"click"},h,b)}()},className:g((t=u.designs,{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"11px 24px",borderRadius:5,backgroundColor:Object(p.v)(t.accentColor),color:Object(p.v)(t.addToCartTextColor),fontFamily:"Nunito Sans",fontWeight:700,fontSize:14,lineHeight:"19px",textTransform:"uppercase",border:"none",cursor:"pointer",boxSizing:"border-box"}))},u.buttonCallToActionText),u.showControls&&c>1&&"carousel"===u.listStyle&&i.b.jsx("div",{className:g(Me),onClick:function(e){return e.stopPropagation()}},i.b.jsx(Pe,{className:g.apply(void 0,Object(r.m)([],Object(r.k)($e({mirrorIcon:!0,pointerEvents:d-1>=0})),!1)),onClick:function(){return f(d-1)}}),i.b.jsx("div",{className:g(Ue)},v.map((function(e,t){var n,o=0===d&&0===t,a=d===c-1&&t===v.length-1,u=0!==d&&d!==c-1&&1===t;return i.b.jsx(Te,{key:t,className:g.apply(void 0,Object(r.m)([],Object(r.k)((n=o||a||u,[{color:"rgba(0, 0, 0, 0.25)"},Object(p.c)(n,{color:"#000000"})])),!1))})}))),i.b.jsx(Pe,{className:g.apply(void 0,Object(r.m)([],Object(r.k)($e({mirrorIcon:!1,pointerEvents:d+1t/2?-360+a:a}(C[n][Math.floor(Math.random()*(null===(e=C[n])||void 0===e?void 0:e.length))],ht(C));B(r),te(r)}}),[t,I,C,n,te]),L?i.b.jsx(mt,{style:G>0&&W!==G?{visibility:"hidden"}:{}},i.b.jsx(gt,{shadowBlur:l,shadowPosX:d,shadowPosY:f,shadowColor:c}),i.b.jsx(yt,{className:_?"started-spinning":"",startSpinningTime:K,continueSpinningTime:X,stopSpinningTime:Q,startRotationDegrees:E,finalRotationDegrees:F},i.b.jsx(vt,{width:"900",height:"900",data:D,outerBorderColor:u,outerBorderWidth:s,radiusLineColor:p,radiusLineWidth:h,textDistance:b,perpendicularText:g,prizeMap:C,rouletteUpdater:M})),i.b.jsx(Dt,{style:v.style,src:v.src,alt:"roulette-static"})):null},wt=n(176),Ct=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"}}},jt=function(e){var t=e.designs;return[{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(p.v)(t.textColor),backgroundColor:Object(p.v)(t.backgroundColor),borderWidth:t.borderApplied?t.borderWidth:0,borderColor:t.borderApplied?Object(p.v)(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(p.s)(t,!1),Object(p.k)()]},xt=function(){function e(e,t,n,r,i){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,"visitorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"streamingSessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"firstStreamEventSentTs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isStreamLoadedEventSent",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isEngaged1minSent",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isEngaged3minSent",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isEngaged5minSent",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.streamUrl||(this.streamUrl="No stream url"),"unpackedCid"===n&&(n=void 0),"sessionId"===r&&(r=void 0),this.visitorId=n||this.generateRandomId(),this.sessionId=r||this.generateRandomId(),this.streamingSessionId=i||"unknown"}return Object.defineProperty(e.prototype,"generateRandomId",{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,"shouldSendEvents",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"unknown"!==this.streamingSessionId}}),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.visitorId,session_id:i.sessionId,organization_id:i.organizationId,label:i.streamingSessionId})})),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 this.shouldSendEvents()&&!this.isStreamLoadedEventSent?(e=[{event_version:1,category:"stream_player",properties:["stream=".concat(this.streamUrl)],action:"load_stream",value:1}],this.isStreamLoadedEventSent=!0,[2,this.sendEvents(e)]):[2]}))}))}}),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,t,n;return Object(r.h)(this,(function(r){return this.shouldSendEvents()?(this.firstStreamEventSentTs||(this.firstStreamEventSentTs=new Date),e=(new Date).getTime()-this.firstStreamEventSentTs.getTime(),(t=Math.floor(e/1e3))>=300&&!this.isEngaged5minSent?(this.isEngaged5minSent=!0,this.sendEngagedEvent("5min")):t>=180&&!this.isEngaged3minSent?(this.isEngaged3minSent=!0,this.sendEngagedEvent("3min")):t>=60&&!this.isEngaged1minSent&&(this.isEngaged1minSent=!0,this.sendEngagedEvent("1min")),n=[{event_version:1,category:"stream_player",properties:["stream=".concat(this.streamUrl)],action:"view_stream",value:1}],[2,this.sendEvents(n)]):[2]}))}))}}),Object.defineProperty(e.prototype,"sendEngagedEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(r.e)(this,void 0,void 0,(function(){var t;return Object(r.h)(this,(function(n){return this.shouldSendEvents()?(t=[{event_version:1,category:"stream_player",properties:["stream=".concat(this.streamUrl)],action:"stream_engaged_".concat(e),value:1}],[2,this.sendEvents(t)]):[2]}))}))}}),e}(),Et=n(362),At=n(164),kt=function(e,t,n){var r=t.backgroundImageGiosgAssetUrl&&e.environment.getFullAssetCdnUrl(t.backgroundImageGiosgAssetUrl);return[Object(p.f)(t,e,!1),Object(p.g)(t,e),{pointerEvents:"initial",overflow:"hidden",backgroundImage:t.backgroundImageApplied&&(n||r)?"url(".concat(null!=n?n:r,")"):void 0,backgroundPosition:"center",backgroundSize:"contain"}]},Ft=n(64),Bt=n(73),St={textAlign:"center"},_t=function(e,t,n){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(r){return Object(Bt.b)({store:e,action:"changeview",triggerElementId:t.uid,dim3:n.viewId,actionUid:n.uid}),[2,Object(Ft.h)(e,n.viewId,!1)]}))}))},Pt=function(e,t,n){return[{padding:t.designs.paddingsNew?Object(p.o)(t):Object(p.n)(t,!1)},Object(p.f)(t.designs,e,n),Object(p.g)(t.designs,e),Object(p.s)(t.designs,e.data.project.relativeFontSize,!0)]},Tt=n(360),It=function(e,t,n,r,i){var o=i.width/i.height,a=Math.round(r*o),u=Math.round(n/o);return[Object(p.f)(t,e,!1),Object(p.g)(t,e),{width:a<=n?a:n,height:u<=r?u:r,top:0,bottom:0,left:0,right:0,margin:"auto",position:"absolute",pointerEvents:"initial"}]},Rt=function(e){return{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}},Nt=function(e){var t,n=e.store,u=e.inViewElement,s=e.zIndex,c=e.baseProps,l=Wt(u.type),d=Object(i.f)(null),f=n.getElementVisibilityStatus(u,c.elementPath,c.activeBreakpoint).isVisible;return Object(o.a)(!!d.current,f,d.current,u.uid),i.b.jsx(T,{delay:c.editingMode?0:null!==(t=u.entryDelay)&&void 0!==t?t:0},i.b.jsx(a.a,{animateOnMount:!c.editingMode,key:u.uid,shown:f,enter:u.animation,render:function(e){return i.b.jsx(l,Object(r.a)({},c,{store:n,innerRef:function(t){d.current=t,e(t)},element:u,zIndex:s}))}}))},Lt=function(e){var t=e.store,n=e.elements,o=e.parentVariables,a=e.baseProps;if(!a.activeBreakpoint)return null;var u=K(n,a.activeBreakpoint);return i.b.jsx(i.b.Fragment,null,u.map((function(e){var n,u=Object(r.k)(e,2),s=u[0],c=u[1];return"flow"===s.type?i.b.jsx(Vt,{key:c,store:t,element:s,parentVariables:o,baseProps:a}):i.b.jsx(Nt,{key:c,store:t,inViewElement:s,zIndex:1e6+c,baseProps:Object(r.a)(Object(r.a)({},a),{parentVariables:Array.isArray(o)?o[c]:o,elementPath:Object(r.m)(Object(r.m)([],Object(r.k)(null!==(n=a.elementPath)&&void 0!==n?n:[]),!1),[c],!1)})})})))},Vt=function(e){var t=e.store,n=e.element,o=e.parentVariables,a=e.baseProps,u=i.b.useCss(),s=Object(i.f)(null),c=Object(r.k)(Object(i.g)(0),2)[1];if(Object(i.e)((function(){if(s.current){var e=new ResizeObserver((function(){s.current&&c(s.current.clientWidth)}));return e.observe(s.current),function(){e.disconnect()}}})),!a.activeBreakpoint)return null;var l=n.startElements,d=n.middleElements,f=n.endElements,p=n.stretchElements,h=l.length>0||f.length>0||p.length>0;return d.length>0&&h&&console.error("Center elements with left/right/stretch elements in flow"),i.b.jsx("table",{className:u(zt),ref:s},i.b.jsx("tbody",null,i.b.jsx("tr",null,l.map((function(e){var n,s=Object(r.k)(e,2),c=s[0],l=s[1];return i.b.jsx("td",{key:l,className:u(Mt)},i.b.jsx(Nt,{store:t,inViewElement:c,zIndex:1e6+l,baseProps:Object(r.a)(Object(r.a)({},a),{parentVariables:Array.isArray(o)?o[l]:o,elementPath:Object(r.m)(Object(r.m)([],Object(r.k)(null!==(n=a.elementPath)&&void 0!==n?n:[]),!1),[l],!1)})}))})),p.map((function(e){var n,s=Object(r.k)(e,2),c=s[0],l=s[1];return i.b.jsx("td",{key:l,className:u(Ut)},i.b.jsx(Nt,{store:t,inViewElement:c,zIndex:1e6+l,baseProps:Object(r.a)(Object(r.a)({},a),{parentVariables:Array.isArray(o)?o[l]:o,elementPath:Object(r.m)(Object(r.m)([],Object(r.k)(null!==(n=a.elementPath)&&void 0!==n?n:[]),!1),[l],!1)})}))})),0===p.length&&0===d.length?i.b.jsx("td",null):null,f.map((function(e){var n,s=Object(r.k)(e,2),c=s[0],l=s[1];return i.b.jsx("td",{key:l,className:u(Mt)},i.b.jsx(Nt,{store:t,inViewElement:c,zIndex:1e6+l,baseProps:Object(r.a)(Object(r.a)({},a),{parentVariables:Array.isArray(o)?o[l]:o,elementPath:Object(r.m)(Object(r.m)([],Object(r.k)(null!==(n=a.elementPath)&&void 0!==n?n:[]),!1),[l],!1)})}))})),d.length>0?i.b.jsx("td",null):null,d.map((function(e){var n,s=Object(r.k)(e,2),c=s[0],d=s[1];return i.b.jsx("td",{key:d,className:u(Mt),colSpan:l.length+p.length+f.length||1},i.b.jsx(Nt,{store:t,inViewElement:c,zIndex:1e6+d,baseProps:Object(r.a)(Object(r.a)({},a),{parentVariables:Array.isArray(o)?o[d]:o,elementPath:Object(r.m)(Object(r.m)([],Object(r.k)(null!==(n=a.elementPath)&&void 0!==n?n:[]),!1),[d],!1)})}))})),d.length>0?i.b.jsx("td",null):null)))},zt={width:"100%",borderCollapse:"collapse"},Mt={width:"1px",verticalAlign:"top"},Ut={verticalAlign:"top"},$t=Object(I.a)({button:function(e){var t,n,o,a=e.element,b=e.store,g=e.parentVariables,v=e.elementPath,m=e.editingMode;Object(d.a)(b,a,e.parentVariables,e.elementPath,m);var j=i.b.useCss(),x=(null===(n=null===(t=b.data.project.publishingSettings)||void 0===t?void 0:t[0])||void 0===n?void 0:n.interactionType)===u.a.Email,E=Object(r.k)(Object(i.g)(!1),2),A=E[0],k=E[1],F=Object(r.k)(Object(i.g)(!1),2),B=F[0],S=F[1],_=Object(r.k)(Object(i.g)(!1),2),P=_[0],T=_[1],I=Object(y.a)(b,e.element),R=b.getElementVisibilityStatus(a,v,e.activeBreakpoint).isEnabled,N="disabled"===I||!R||A,L=N?"disabled":P?"active":B?"hover":void 0,V=Object(h.b)(b,a,b.data.project.conditionalActions,v),z=Object(f.a)(b,a.type,a.description),M=b.data.textMetrics,U=b.data.project.relativeFontSize,$=Object(s.d)({react:i.b,css:j,getVariableValue:function(e){return b.getVariableValue(e,g)},isEditMode:!!m,relativeFontSize:U,textMetrics:M,elementState:L,buttonDesigns:a.designs});if(x&&!m){var W=null!==(o=function(e){var t,n;if(!e.clickEvents||0===e.clickEvents.length)return null;try{for(var i=Object(r.n)(e.clickEvents),o=i.next();!o.done;o=i.next()){var a=o.value.actions.find((function(e){return"url"===e.type&&("opentab"===e.urlType||"redirect"===e.urlType)}));if(a)return a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null}(a))&&void 0!==o?o:{targetUrl:"#",urlType:"redirect"},H="#"!==W.targetUrl&&!N,q=W.targetUrl;try{q=Object(D.c)(W.targetUrl,!1,(function(e){return b.getVariableValue(e,g)}))}catch(e){q=W.targetUrl}var G="opentab"===W.urlType?"_blank":void 0,J="opentab"===W.urlType?"noopener":void 0;return i.b.jsx(O.a,Object(r.a)({},e,{type:"a",css:Object(r.m)(Object(r.m)([],Object(r.k)(w(b,a,L,m)),!1),[Object(p.j)()],!1),className:"interaction-builder-rich-text-container",shouldClickThrough:!V&&!H,hasFullHeightChildren:!1,elementProps:Object(r.a)({"aria-labelledby":z,"aria-disabled":N,"aria-label":a.description,href:q,target:G,rel:J},m?{id:Object(c.a)(a.uid)}:{})}),i.b.jsx(C,{element:a,textRenderer:$}))}return i.b.jsx(O.a,Object(r.a)({},e,{type:"button",css:w(b,a,L,m),className:"interaction-builder-rich-text-container",shouldClickThrough:!V,hasFullHeightChildren:!1,elementProps:Object(r.a)({"aria-labelledby":z,"aria-disabled":N,"aria-label":a.description,hidden:"hidden"===I,onMouseEnter:function(){N||m||S(!0),Object(l.a)(b,a,{elementUid:a.uid,type:"hover"},g,v)},onMouseLeave:function(){S(!1),T(!1)},onMouseDown:function(){N||m||T(!0)},onMouseUp:function(){T(!1)},onTouchStart:function(){N||m||T(!0)},onTouchEnd:function(){T(!1)},onClick:function(){N||(k(!0),Object(l.a)(b,a,{elementUid:a.uid,type:"click"},g,v).finally((function(){return k(!1)})))}},m?{id:Object(c.a)(a.uid)}:{})}),i.b.jsx(C,{element:a,textRenderer:$}))},input:function(e){var t=e.element,n=e.store,o=e.parentVariables,a=e.elementPath,u=e.editingMode,s=i.b.useCss();Object(d.a)(n,t,o,a,u);var c=Object(r.k)(A(n,t),2),p=c[0],b=c[1],g=Object(r.k)(Object(i.g)(""),2),v=g[0],m=g[1],y=Object(i.f)(!1),D=Object(r.k)(Object(i.g)(!1),2),w=D[0],C=D[1];void 0!==p&&"string"!=typeof p&&"number"!=typeof p&&Object(j.a)(new Error("Expected string field value."));var E=Object(x.b)(n,t.uid),k=Object(h.b)(n,t,n.data.project.conditionalActions,a),F=Object(h.a)(n),B=n.getElementVisibilityStatus(t,a,e.activeBreakpoint).isEnabled,S="multiline"!==t.inputFieldType?"input":"textarea";Object(i.e)((function(){y.current||m(String(null!=p?p:""))}),[p]);var _="number"===t.inputFieldType?"text":t.inputFieldType,P="number"===t.inputFieldType?"decimal":void 0,T=Object(f.a)(n,t.type,t.description),I=(new Date).toISOString().split("T")[0],R="flow"===t.arrangement.default.yType;return i.b.jsx(O.a,Object(r.a)({},Object(r.a)(Object(r.a)({},e),{includeElementsIds:!1}),{type:"div",css:he(n,t,k||F),hasFullHeightChildren:!1,shouldClickThrough:!1}),i.b.jsx(S,{type:_,min:"date"===_?I:void 0,inputMode:P,placeholder:t.placeholder,value:v,"giosg-autotest-valid":E.toString(),"aria-labelledby":T,"aria-invalid":!E,"aria-required":t.isRequired,name:"tel"===t.inputFieldType?"phone":t.inputFieldType,autoComplete:t.inputFieldType,className:s.apply(void 0,Object(r.m)([],Object(r.k)(be(n,t.designs,E,t.inputFieldType,w,!!t.iconUrl)),!1)),onMouseDownCapture:function(){B&&C(!0)},onClick:function(){B&&Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)},onFocus:function(){B&&(E||Object(x.c)(n,t.uid),Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a))},onBlur:function(){return Object(r.e)(void 0,void 0,void 0,(function(){var e,i;return Object(r.h)(this,(function(r){switch(r.label){case 0:return y.current=!1,C(!1),""!==v||Object(de.b)(void 0,t)||Object(x.d)(n,t.uid),"number"!==t.inputFieldType?[3,1]:(e=ve(v),Object(de.b)(e,t)||Object(x.d)(n,t.uid),[3,7]);case 1:return"tel"!==t.inputFieldType?[3,6]:""!==(i=v.trim())?[3,2]:(Object(de.b)(i,t)&&Object(x.c)(n,t.uid),[3,5]);case 2:return Object(le.h)(v)?[3,3]:(Object(x.d)(n,t.uid),[3,5]);case 3:return[4,pe(n.data.info.organizationUid,v,t.defaultCountryCode)];case 4:r.sent()?Object(x.c)(n,t.uid):Object(x.d)(n,t.uid),r.label=5;case 5:return[3,7];case 6:Object(de.b)(p,t)||Object(x.d)(n,t.uid),r.label=7;case 7:return[2]}}))}))},onKeyDown:function(e){if(t.triggerElementOnEnter&&"Enter"===e.key&&B){y.current=!1,e.target.blur();var r=n.getElementByUid(t.triggerElementOnEnter);r&&Object(l.a)(n,r,{elementUid:r.uid,type:"click"},o,a)}},onInput:function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var i,o,a;return Object(r.h)(this,(function(r){switch(r.label){case 0:return y.current=!0,i=e.currentTarget.value,m(i),"number"!==t.inputFieldType?[3,1]:(/^-?$|^-?\d+([.,]\d*)?$/.test(i)?(Object(x.c)(n,t.uid),void 0!==(o=ve(i))&&b(o),""===i&&b(void 0)):Object(x.d)(n,t.uid),[3,4]);case 1:return"tel"!==t.inputFieldType?[3,3]:[4,pe(n.data.info.organizationUid,i,t.defaultCountryCode)];case 2:return a=r.sent(),b(a||""),[3,4];case 3:b(i),r.label=4;case 4:return[2]}}))}))}}),t.iconUrl&&i.b.jsx("img",{src:t.iconUrl,alt:"","aria-hidden":!0,className:s(me(t.inputFieldType,t.designs.fontSize))}),!E&&t.errorText&&i.b.jsx("span",{className:s.apply(void 0,Object(r.m)([],Object(r.k)(ge(t.designs,n,R)),!1))},t.errorText))},view:null,radio:function(e){var t=e.element,n=e.store,o=e.parentVariables,a=e.elementPath,u=i.b.useCss(),s=Object(r.k)(A(n,t),2),c=s[0],d=s[1];void 0!==c&&"number"!=typeof c&&Object(j.a)(new Error("Expected string field value."));var p=Object(x.b)(n,t.uid),h=Array.apply(null,{length:t.columns}).map((function(e,t){return t})),b=i.b.useMemo((function(){return"".concat(t.uid,"-").concat(Math.random())}),[]),g=Object(f.a)(n,t.type,t.description);return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:u.apply(void 0,Object(r.m)([],Object(r.k)(Je(t.designs,n,p)),!1)),shouldClickThrough:!1,elementProps:{role:"radiogroup","aria-labelledby":g}}),h.map((function(e){return i.b.jsx("div",{className:u((s=h.length,{width:s>1?"".concat(100/s,"%"):"100%",display:"inline-block",verticalAlign:"top"})),key:e},t.options.map((function(s,f){return f%h.length===e?i.b.jsx("div",{key:f},i.b.jsx("label",{className:u((g=t.designs,v=g.fontSize+2,{margin:"initial",position:"relative",cursor:"pointer",display:"inline-block",paddingBottom:Math.floor(v/4),minHeight:v}))},i.b.jsx("input",{className:u.apply(void 0,Object(r.m)([],Object(r.k)(Xe(t.designs)),!1)),checked:c===f,onChange:function(e){e.target.checked&&d(f),p||Object(x.c)(n,t.uid),Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)},type:"radio","aria-labelledby":"".concat(t.uid,"-").concat(f,"-label"),name:b,value:s.label,"aria-required":t.isRequired,"aria-invalid":!p}),i.b.jsx("span",{role:"presentation",className:u.apply(void 0,Object(r.m)([],Object(r.k)(Ze(t.designs,p)),!1))},i.b.jsx(Ge,{role:"presentation",className:"".concat(u(Ke(t.designs))," ib-disable-style-reset")})),i.b.jsx("div",{id:"".concat(t.uid,"-").concat(f,"-label"),className:u.apply(void 0,Object(r.m)([],Object(r.k)(Ye(t.designs,n)),!1))},s.label))):null;var g,v})));var s})))},checkbox:function(e){var t=e.element,n=e.store,o=e.parentVariables,a=e.elementPath,u=i.b.useCss(),s=Object(r.k)(A(n,t),2),c=s[0],d=s[1];void 0!==c&&"boolean"!=typeof c&&Object(j.a)(new Error("Expected boolean field value."));var f,h=Object(x.b)(n,t.uid);return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:u.apply(void 0,Object(r.m)([],Object(r.k)(F(t.designs,n)),!1)),shouldClickThrough:!1}),i.b.jsx("label",{className:u.apply(void 0,Object(r.m)([],Object(r.k)(B(t.designs,n)),!1))},i.b.jsx("input",{className:"".concat(u.apply(void 0,Object(r.m)([],Object(r.k)((f=t.designs,[{margin:0,width:0,opacity:0,":checked ~ span":{borderColor:Object(p.v)(f.selectedBorderColor),backgroundColor:Object(p.v)(f.selectedFillColor)},":checked ~ span svg":{display:"block"}},Object(p.k)(":focus-visible ~ span")])),!1))," ib-disable-style-reset"),onClick:function(e){e.stopPropagation()},onChange:function(e){d(e.target.checked),Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)},checked:c,type:"checkbox",value:t.label,title:t.description,"aria-labelledby":"".concat(t.uid,"-label")}),i.b.jsx("span",{className:u.apply(void 0,Object(r.m)([],Object(r.k)(_(t.designs,h)),!1))},i.b.jsx(k,{className:"".concat(u(P(t.designs))," ib-disable-style-reset")})),i.b.jsx("div",{id:"".concat(t.uid,"-label"),className:u.apply(void 0,Object(r.m)([],Object(r.k)(S(t.designs,n)),!1))},t.label)))},image:function(e){var t=e.element,n=e.store,o=e.parentVariables,a=e.elementPath,u=e.editingMode;Object(d.a)(n,t,e.parentVariables,a,u);var s=Object(r.k)(A(n,t),1)[0],c=Object(y.a)(n,e.element),b=Object(h.b)(n,t,n.data.project.conditionalActions,a),g=Object(h.a)(n),v=n.getElementVisibilityStatus(t,a,e.activeBreakpoint).isEnabled,m="disabled"===c||!v,w=function(e,t,n,r,i,o){if(e)return null!=t?t:o;if(n){var a=r(n);if(""!==a)return a}return void 0!==i&&""!==i?i:null!=t?t:o}(!!u,t.giosgAssetUrl&&n.environment.getFullAssetCdnUrl(t.giosgAssetUrl),t.imageUrlFromVariable,(function(e){return Object(D.c)(e,!1,(function(e){return n.getVariableValue(e,o)}))}),void 0!==s?String(s):void 0,t.imageUrl),C=Object(f.a)(n,t.type,t.description);return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!b,css:Object(r.m)(Object(r.m)([],Object(r.k)(ce(n,t.designs,t,b||g,w)),!1),[Object(p.r)(c)],!1),elementProps:{onClick:function(){m||Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)},onKeyDown:function(e){"Enter"!==e.key||m||Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)},role:"img","aria-labelledby":C,"aria-hidden":!t.description||void 0,alt:t.description,"aria-disabled":m,hidden:"hidden"===c,tabIndex:b?0:void 0}}))},select:function(e){var t=e.element,n=e.store,o=e.parentVariables,a=e.elementPath,u=i.b.useCss(),s=Object(r.k)(Object(i.g)(!1),2),c=s[0],d=s[1],f=Object(r.k)(A(n,t),2),p=f[0],h=f[1],b=Object(x.b)(n,t.uid),g=(t.isRequired||!t.defaultValue)&&!!t.placeholder&&Object(x.a)(n,t.uid);return void 0!==p&&"number"!=typeof p&&Object(j.a)(new Error("Expected string field value.")),i.b.jsx(O.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!1,hasFullHeightChildren:!1,elementProps:{value:void 0!==p?p:-1},css:rt(t.designs,n)}),i.b.jsx(nt,{className:u.apply(void 0,Object(r.m)([],Object(r.k)(it(n,t.designs,b,g,c)),!1)),store:n,element:t,isValid:b,isPlaceholderShown:!t.defaultValue,value:p,onMouseDownCapture:function(){return d(!0)},onBlur:function(){return d(!1)},onChange:function(e){h(parseInt(e.target.value)),b||Object(x.c)(n,t.uid),Object(l.a)(n,t,{elementUid:t.uid,type:"click"},o,a)}}))},text:Tt.a,video:function(e){var t,n,o=e.element,a=e.store,u=e.parentVariables,s=e.elementPath,c=i.b.useCss(),d=i.b.useRef(null),p=Object(r.k)(i.b.useState(0),2),h=p[0],b=p[1],g=Object(r.k)(i.b.useState(0),2),v=g[0],m=g[1];Object(i.e)((function(){if(d.current){var e=function(){d.current&&(b(d.current.clientWidth),m(d.current.clientHeight))},t=new ResizeObserver(e);return e(),t.observe(d.current),function(){t.disconnect()}}}),[d,m,b]);var y=Object(f.a)(a,o.type,o.description);var D=null!==(n=null===(t=window.i18n)||void 0===t?void 0:t.t("designStep.elementsDefaults.VideoPlaceholder"))&&void 0!==n?n:"No video found";return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",innerRef:function(t){t&&(d.current=t,e.innerRef&&e.innerRef(t))},shouldClickThrough:!1}),o.video&&function(t){switch(t.type){case"web":return i.b.jsx("video",{className:c.apply(void 0,Object(r.m)([],Object(r.k)(It(a,o.designs,h,v,t)),!1)),controls:!t.hideControls,loop:t.loop,muted:t.muted,autoPlay:!e.editingMode&&t.autoplay,playsInline:!e.editingMode,tabIndex:0,role:"video","aria-labelledby":y,onClick:function(){Object(l.a)(a,o,{elementUid:o.uid,type:"click"},u,s)},onKeyDown:function(e){"Enter"===e.key&&Object(l.a)(a,o,{elementUid:o.uid,type:"click"},u,s)}},i.b.jsx("source",{src:t.videoUrl}));case"vimeo":var n=new URLSearchParams;return n.append("autoplay",!e.editingMode&&t.autoplay?"1":"0"),n.append("loop",t.loop?"1":"0"),n.append("controls",t.hideControls?"0":"1"),n.append("muted",t.muted?"1":"0"),n.append("dnt",t.doNotTrack?"1":"0"),i.b.jsx("iframe",{className:c.apply(void 0,Object(r.m)([],Object(r.k)(It(a,o.designs,h,v,t)),!1)),src:"https://player.vimeo.com/video/".concat(t.videoId,"?").concat(n),frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope;",allowFullScreen:!0});case"youtube":var d=new URLSearchParams;d.append("autoplay",!e.editingMode&&t.autoplay?"1":"0"),d.append("controls",t.hideControls?"0":"1"),d.append("mute",t.muted?"1":"0"),t.loop&&(d.append("loop","1"),d.append("playlist",t.videoId));var f=t.doNotTrack?"www.youtube-nocookie.com":"www.youtube.com";return i.b.jsx("iframe",{className:c.apply(void 0,Object(r.m)([],Object(r.k)(It(a,o.designs,h,v,t)),!1)),src:"https://".concat(f,"/embed/").concat(t.videoId,"?").concat(d),referrerPolicy:"strict-origin-when-cross-origin",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope;",allowFullScreen:!0});default:Object(ue.a)(t)}}(o.video),!o.video&&e.editingMode&&i.b.jsx("div",{className:c(Rt(o))},D))},iframe:function(e){var t=i.b.useCss(),n=e.element,o=e.store,a=Object(D.c)(n.srcTemplate,!1,(function(t){return o.getVariableValue(t,e.parentVariables)})),u=Object(ee.a)(a);return""===a?i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:t.apply(void 0,Object(r.m)([],Object(r.k)(ie(o,n.designs)),!1)),shouldClickThrough:!1}),i.b.jsx("div",{className:t(ae)},i.b.jsx(re,null))):a.startsWith("<")?i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:"".concat(t.apply(void 0,Object(r.m)([],Object(r.k)(ie(o,n.designs)),!1))," ib-disable-style-reset"),shouldClickThrough:!1}),i.b.jsx(ne,{html:a})):i.b.jsx(O.a,Object(r.a)({},e,{type:"iframe",className:t.apply(void 0,Object(r.m)([],Object(r.k)(ie(o,n.designs)),!1)),shouldClickThrough:!1,elementProps:{src:u,sandbox:oe,allow:"camera; fullscreen; autoplay; microphone; display-capture"}}))},stream:function(e){var t=e.element,o=e.store,a=e.editingMode;Object(d.a)(o,t,e.parentVariables,e.elementPath,a);var u=i.b.useCss(),s=Object(r.k)(Object(i.g)(""),2),c=s[0],l=s[1],f=Object(r.k)(Object(i.g)(null),2),p=f[0],h=f[1],b=Object(r.k)(Object(i.g)(null),2),g=b[0],v=b[1],m=Object(r.k)(Object(i.g)(null),2),y=m[0],D=m[1],w=Object(i.f)(null),C=o.data.info.organizationUid;Object(i.e)((function(){!function(){Object(r.e)(this,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){switch(t.label){case 0:return[4,o.environment.getUnpackedVisitorCid()];case 1:return e=t.sent(),h(e),[2]}}))}))}(),function(){Object(r.e)(this,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){switch(t.label){case 0:return[4,o.environment.getSessionId()];case 1:return e=t.sent(),v(e),[2]}}))}))}()}),[o.environment]),Object(i.e)((function(){a||function(){Object(r.e)(this,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(n){switch(n.label){case 0:return t.streamChannelId?[4,Object(At.a)(o.data.info.organizationUid,t.streamChannelId)]:[2];case 1:return e=n.sent(),D(e.stream_session_id),[2]}}))}))}()}),[o.data.info.organizationUid,t.streamChannelId,a]);Object(i.e)((function(){return function(){var e;(null===(e=w.current)||void 0===e?void 0:e.shadowRoot)&&Object(i.c)(null,w.current.shadowRoot)}}),[]),Object(i.e)((function(){a||("video-recorded"!==t.streamSourceType&&t.streamUrl?l(t.streamUrl):"video-recorded"===t.streamSourceType&&t.muxVideoAssetId&&Object(At.c)(C,t.muxVideoAssetId).then((function(e){var t=e.playback_url;return l(t)})))}),[o,t,a,C]);var j=void 0;if(Object(i.e)((function(){var e=void 0;return y&&p&&g&&j&&(e=setInterval((function(){j&&j.streamViewingEvent()}),1e4),j.streamViewingEvent()),function(){e&&(clearInterval(e),e=void 0)}}),[y,p,g,j]),!c)return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:u.apply(void 0,Object(r.m)([],Object(r.k)(kt(o,t.designs,t.imageUrl)),!1)),shouldClickThrough:!1}));y&&(j=new xt(C,c,p,g,y)).streamLoadedEvent();var x,E=(x=!1,function(){x||(x=!0,window.parent.postMessage({type:"player_started"},"*"))});return i.b.jsx(O.a,Object(r.a)({},e,{type:"div",className:u.apply(void 0,Object(r.m)([],Object(r.k)(kt(o,t.designs,t.imageUrl)),!1)),shouldClickThrough:!1,innerRef:function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var a,u,s;return Object(r.h)(this,(function(r){switch(r.label){case 0:return!e||e.shadowRoot?[3,2]:(a=e.attachShadow({mode:"open"}),[4,Promise.all([n.e(9),n.e(12)]).then(n.bind(null,2100))]);case 1:u=r.sent().default,w.current=e,(s=document.documentElement.getAttribute("lang"))&&w.current.setAttribute("lang",s),Object(i.c)(i.b.jsx(u,{src:c,autoPlay:t.autoPlay,portraitMode:"portrait"===t.orientation,muted:t.muted,scalingFactor:t.scale,controlsMode:t.controlsMode,controlsSize:t.controlSize,hideControls:t.autoHideControls,themeColor:"#7357FF",loop:t.loop,allowReplay:t.allowReplay,startTimeOffset:t.startTime?Object(Et.c)(t.startTime):null,hlsQualityConfig:Object(Et.e)(t),onPlayStream:function(){E()},onPauseStream:function(){},containerElement:e,videoDescription:t.description,customControlsLabel:t.controlLabels,store:o}),a),r.label=2;case 2:return[2]}}))}))}}))},stream_viewer_count:function(e){var t=e.element,n=e.store,o=e.editingMode,a=e.parentVariables,u=e.elementPath,s=i.b.useCss(),c=Object(r.k)(Object(i.g)("-"),2),d=c[0],f=c[1],p=Object(h.b)(n,t,n.data.project.conditionalActions,u),b=Object(h.a)(n);return Object(ft.useEffect)((function(){var e=void 0;return o?f(Math.floor(1991*Math.random()+10).toString()):e=window.setInterval((function(){var e=n.data.info.organizationUid,r=t.streamChannelId;r&&Object(At.b)(e,r).then((function(e){f(e.viewer_count.toString())}))}),1500),function(){clearInterval(e)}}),[t.streamChannelId,n.data.info.organizationUid,o]),i.b.jsx(O.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!p,className:s.apply(void 0,Object(r.m)([],Object(r.k)(Pt(n,t,p||b)),!1)),elementProps:{onClick:function(){return Object(l.a)(n,t,{elementUid:t.uid,type:"click"},a,u)},onKeyDown:function(e){"Enter"!==e.key||o||Object(l.a)(n,t,{elementUid:t.uid,type:"click"},a,u)},tabIndex:p?0:void 0}}),d)},stream_event_listener:function(e){var t=e.element,n=e.store,o=e.editingMode,a=i.b.useCss(),u=Object(r.k)(Object(i.g)(!1),2),s=u[0],c=u[1];return Object(i.e)((function(){if(void 0!==t.onStreamStartChangeView||void 0!==t.onStreamEndChangeView){var e=void 0,r=n.data.info.organizationUid,i=t.streamChannelId;return!o&&i&&(e=window.setInterval((function(){Object(At.a)(r,i).then((function(r){var i=r.is_connected&&r.is_watchable;s&&!i?t.onStreamEndChangeView&&(clearInterval(e),_t(n,t,t.onStreamEndChangeView)):i&&!s&&t.onStreamStartChangeView&&(clearInterval(e),_t(n,t,t.onStreamStartChangeView)),s!==i&&c(i)})).catch((function(e){console.error("Failed to fetch stream status",e)}))}),3e3)),function(){clearInterval(e)}}}),[n,t,o,s,e.parentVariables,e.elementPath]),o?i.b.jsx(O.a,Object(r.a)({},e,{type:"div",shouldClickThrough:!0}),i.b.jsx("div",{className:a(St)},i.b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",width:"40"},i.b.jsx("path",{d:"m15.917 36.667-.792-5.292q-.708-.25-1.437-.687-.73-.438-1.355-.896L7.417 32l-4.125-7.208L7.75 21.5q-.083-.333-.104-.75-.021-.417-.021-.75t.021-.75q.021-.417.104-.75l-4.458-3.292L7.417 8l4.916 2.208q.625-.458 1.375-.896.75-.437 1.417-.687l.792-5.292h8.166l.792 5.292q.708.25 1.458.667.75.416 1.334.916L32.583 8l4.125 7.208-4.458 3.209q.083.375.104.791.021.417.021.792 0 .375-.021.771t-.104.771l4.417 3.25L32.583 32l-4.916-2.208q-.625.458-1.355.916-.729.459-1.437.667l-.792 5.292Zm4.125-11.125q2.291 0 3.916-1.625T25.583 20q0-2.292-1.625-3.917t-3.916-1.625q-2.334 0-3.959 1.625T14.458 20q0 2.292 1.625 3.917t3.959 1.625Z"})),i.b.jsx("div",null,"Live stream events"))):null},product_card:function(e){var t=e.element,n=e.store,o=e.editingMode,a=e.elementPath,u=Object(r.k)(Object(i.g)([]),2),s=u[0],c=u[1],l=Object(r.k)(Object(i.g)(0),2),d=l[0],f=l[1];return Object(i.e)((function(){var e,r,i=n.data.info.organizationUid;if(o){var a=t.organizationId;if(!t.products.length||!a)return void c([He]);Object(Se.b)(a).then((function(e){c(e.filter((function(e){return t.products.includes(e.id)})))}))}else if(null===(e=n.data.project.publishingSettings)||void 0===e?void 0:e.some((function(e){return"ProductCardAttachment"===e.interactionType}))){var u=window.location.search,s=new URLSearchParams(u).get("productId");if(s){var l=decodeURIComponent(s);Object(Se.b)(i).then((function(e){var t=e.find((function(e){return e.id===l}));t&&c([t])}))}}else{if("static_product_card"!==t.usageScenario){var d=null!==(r=t.targetGroups)&&void 0!==r?r:[],f=function(){Promise.all(d.map((function(e){return Object(Se.a)(i,e)}))).then((function(e){var t=new Date,n=e.flat().filter((function(e){return t>=new Date(e.start_date)&&t=c.length))return n.setData({error:"Invalid spinner result ".concat(u)}),[2];f=s?u:function(e){for(var t=function(e){var t=e.filter((function(e){return null===e.probability})).length,n=e.filter((function(e){return null!==e.probability})).reduce((function(e,t){return e+(t.probability||0)}),0);return e.map((function(e){return null===e.probability?(100-n)/t/100:e.probability/100}))}(e),n=Math.random(),r=t.length-1,i=0,o=0;o0,w=Object(f.a)(n,t.type,t.description);return i.b.jsx(O.a,Object(r.a)({},o,{type:"div",element:t,shouldClickThrough:!1,className:a(ut(u,n)),css:"display: flex"}),i.b.jsx("input",{type:"range",min:s,max:c,step:l,value:null!=g?g:0,"aria-labelledby":w,className:a.apply(void 0,Object(r.m)([],Object(r.k)(st(u,y,n,p,m)),!1)),onInput:function(e){v(Number(e.currentTarget.value))}}),D&&i.b.jsx("div",{className:a.apply(void 0,Object(r.m)([],Object(r.k)(ct(m,u,n)),!1))},d.map((function(e,t){return i.b.jsx("span",{key:t,className:a(lt(e.value,c))},e.label)}))))},scrollable:function(e){var t,n=e.store,o=e.element,a=Object(r.l)(e,["store","element"]);Object(d.a)(n,o,a.parentVariables,a.elementPath,a.editingMode);var u=o.groupElement,s=Object(r.k)(A(n,o),1)[0];if(!(void 0===s||Array.isArray(s)&&s.every((function(e){return"object"==typeof e}))))throw new Error("Invalid list injected to scrollable list: "+(null==s?void 0:s.toString()));var c=null!==(t=o.repetitionType)&&void 0!==t?t:"once",l=function(e,t){return"vertical"===c?Object(r.a)(Object(r.a)({},e),{topOffset:e.height*t,bottomOffset:0,leftOffset:0,rightOffset:0}):Object(r.a)(Object(r.a)({},e),{leftOffset:e.width*t,rightOffset:0,topOffset:0,bottomOffset:0})},p="once"===c?[{}]:null!=s?s:[],h=i.b.useMemo((function(){return Math.random()}),[s]),b=Object(f.a)(n,o.type,o.description);return i.b.jsx(O.a,Object(r.a)({},a,{type:"div",element:o,shouldClickThrough:!0,elementProps:{"aria-labelledby":b,alt:o.description},css:Qe(n,o.designs)}),u&&i.b.jsx(Lt,{key:h,baseProps:a,store:n,parentVariables:a.parentVariables,elements:p.map((function(e,t){return Object(r.a)(Object(r.a)({},u),{parameters:e,arrangement:Object(r.a)(Object(r.a)({default:l(u.arrangement.default,t)},u.arrangement.desktop?{desktop:l(u.arrangement.desktop,t)}:{}),u.arrangement.mobile?{mobile:l(u.arrangement.mobile,t)}:{})})}))}))},email_body:function(e){var t,o,a=e.element,u=e.store,s=Object(r.l)(e,["element","store"]),c=i.b.useCss(),l="email"===globalThis.__APP_ENV__,d=Object(r.k)(Object(i.g)(""),2),f=d[0],p=d[1],h=a.variableId,b=h?u.getVariableValue(h,s.parentVariables):void 0,v=void 0===b?"":String(b),m=h===R.d,y=u.data.info.isPreviewMode&&m?"\nHi,\n\nThank you for visiting our store! We understand that you were really impressed of our web store. Especially the chatbot interaction on it. We'd love your feedback on your visit:\n* **Browsing experience:** Was it easy to find what you were looking for?\n* **Site navigation:** Did everything load smoothly?\n* **Product selection:** Did you find the variety to be sufficient?\n\nFeel free to share any thoughts or suggestions – we appreciate your input!\n":v,D=m?Object(N.c)(u,s.parentVariables):void 0,w=m?Object(N.b)(y,D,null!==(t=a.additionalAttachmentsLabel)&&void 0!==t?t:N.a):y,C=l&&null!==(o=z(w))&&void 0!==o?o:"";return Object(i.e)((function(){s.editingMode||Object(r.e)(void 0,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){switch(t.label){case 0:return e=p,[4,(i=w,Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.h)(this,(function(e){switch(e.label){case 0:return g||(g=Object(r.e)(void 0,void 0,void 0,(function(){var e;return Object(r.h)(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve().then(n.t.bind(null,744,7))];case 1:return e=t.sent().marked,[2,V(e)]}}))}))),[4,g];case 1:return[2,e.sent()(i)]}}))})))];case 1:return e.apply(void 0,[t.sent()]),[2]}var i}))}))}),[w,s.editingMode]),i.b.jsx(O.a,Object(r.a)({},s,{type:"div",element:a,shouldClickThrough:!1,hasFullHeightChildren:!h,css:H(u,a.designs,!!s.editingMode),elementProps:s.editingMode?void 0:{dangerouslySetInnerHTML:{__html:l?C:f}}}),s.editingMode?i.b.jsx(i.b.Fragment,null,h&&i.b.jsx($,{variableId:h,dataFields:u.data.project.dataFields,noNegativeMargin:!0}),i.b.jsx("div",{className:c(q)},i.b.jsx(L,{className:c(G)}))):null)}});function Wt(e){return $t[e]}},223:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={opacity:1,shadowApplied:!1,shadowBlur:0,shadowPosX:0,shadowPosY:0,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:0,topRight:0,bottomLeft:0,bottomRight:0},backgroundColorApplied:!1,backgroundColor:{r:193,g:193,b:201,a:1},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0}},226:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(1),i=n(37),o=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.g,"/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]}}))}))},a=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.g,"/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]}}))}))}},229: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}}},230:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(75);function i(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!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:t+""}},231:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(e){return!!e.children},i=function(e){if(!e.richText)return!1;var t=e.richText;return 1!==t.length?0===t.length:!!r(t[0])&&(1!==t[0].children.length?0===t[0].children.length:""===t[0].children[0].text)},o=function(e){var t=e.length-Array.from(e).reverse().findIndex((function(e){return!!r(e)&&(0!==e.children.length&&(e.children.length>1||""!==e.children[0].text))}));return e.slice(0,t)}},232:function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var r=n(1),i=n(27),o=n(56),a=function(e,t){var n=Object(r.k)(e,2),i=n[0],o=n[1];return Math.max(i,Math.min(o,t))},u=function(e){return a(e,320)},s=function(e){return a(e,568)},c=function(e,t){var n=(void 0===t?{}:t).additionalPadding,r=void 0===n?10:n,o=Object(i.f)(e,"mobile");return{xOffsetFromCentralPoint:0,yOffsetFromCentralPoint:0,width:u(o.width)+2*r,height:s(o.height)+2*r}},l=function(e){var t=e.designs;return!("shadowApplied"in t)||t.shadowApplied?[0,0]:[t.shadowPosX+Math.max(0,t.shadowBlur)+t.shadowSpread,t.shadowPosY+Math.max(0,t.shadowBlur)+t.shadowSpread]},d=function(e,t){var n,a,c,d,f,p,h=void 0===t?{}:t,b=h.additionalPadding,g=void 0===b?10:b,v=h.withShadow,m=void 0!==v&&v,y=Object(r.k)(m?l(e):[0,0],2),D=y[0],O=y[1],w=Object(i.f)(e),C={width:u(w.width),height:s(w.height)},j={top:-(null!==(c=w.topOffset)&&void 0!==c?c:1/0),bottom:C.height+(null!==(d=w.bottomOffset)&&void 0!==d?d:1/0),left:-(null!==(f=w.leftOffset)&&void 0!==f?f:1/0),right:C.width+(null!==(p=w.rightOffset)&&void 0!==p?p:1/0)},x={top:Math.min(O,0),left:Math.min(D,0),right:C.width+Math.max(D,0),bottom:C.height+Math.max(O,0)};try{for(var E=Object(r.n)(e.elements),A=E.next();!A.done;A=E.next()){var k=A.value,F=Object(i.f)(k),B=Object(o.c)(F,C),S=Object(r.k)(m?l(k):[0,0],2),_=S[0],P=S[1];x.top=Math.min(x.top,B.y+Math.min(P,0)),x.left=Math.min(x.left,B.x+Math.min(_,0)),x.right=Math.max(x.right,B.x+B.width+Math.max(_,0)),x.bottom=Math.max(x.bottom,B.y+B.height+Math.max(P,0))}}catch(e){n={error:e}}finally{try{A&&!A.done&&(a=E.return)&&a.call(E)}finally{if(n)throw n.error}}var T=function(e){return Object(r.k)(e,2)[1]===i.a},I=T(w.width)||T(w.height);x.top-=I?0:g,x.bottom+=I?0:g,x.left-=I?0:g,x.right+=I?0:g,x.top=Math.max(x.top,j.top),x.bottom=Math.min(x.bottom,j.bottom),x.left=Math.max(x.left,j.left),x.right=Math.min(x.right,j.right);var R=x.right-x.left,N=x.bottom-x.top;return{xOffsetFromCentralPoint:C.width/2-(x.left+x.right)/2,yOffsetFromCentralPoint:C.height/2-(x.top+x.bottom)/2,leftOffset:x.left,topOffset:x.top,width:R,height:N}},f=function(e,t){return{x:e.x+t.leftOffset,y:e.y+t.topOffset,width:t.width,height:t.height}}},245:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(1),i=n(28),o=n(42),a=n(74),u=n(40),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=this.store.getElementByUid(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 this.store.getElementVisibilityStatus(this.initialElement,"*").isVisible},set:function(e){this.store.setElementVisibilityStatus(this.storeElement.uid,"*",e?"visible":"hidden")},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,r=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}));r&&Object(u.h)(this.store,this.storeElement.uid,{designs:r.designs})}}),Object.defineProperty(e.prototype,"disabled",{set:function(e){this.store.setElementVisibilityStatus(this.initialElement.uid,"*","visible",!e)},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}(),c=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(){var e=this.storeElement;if(e.label)return e.label;var t=e.richText;return t?t.map((function(e){return e.children.map((function(e){return e.text})).join("")})).join("\n"):""},set:function(e){var t,n=this.storeElement;if(n.label)Object(u.h)(this.store,this.storeElement.uid,Object(r.a)(Object(r.a)({},n),{label:e}));else{var i=null!==(t=n.richText)&&void 0!==t?t:[],o=JSON.parse(JSON.stringify(i[0])),a=o.children[0];Object(u.h)(this.store,this.storeElement.uid,Object(r.a)(Object(r.a)({},this.storeElement),{richText:[Object(r.a)(Object(r.a)({},o),{children:[Object(r.a)(Object(r.a)({},a),{text: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={api:function(e){function t(t,n){return e.call(this,t,n)||this}return Object(r.g)(t,e),t}(s)},f={api: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)},p={api:function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return Object.defineProperty(i,"initialElement",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(i,"store",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(i,"parentVariables",{enumerable:!0,configurable:!0,writable:!0,value:r}),i}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),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),Object.defineProperty(t.prototype,"url",{get:function(){return this.storeElement.imageUrl},set:function(e){Object(u.h)(this.store,this.storeElement.uid,{imageUrl:e,giosgAssetUrl:void 0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.store.data.fields[this.initialElement.uid];return void 0!==e?String(e):void 0},set:function(e){var t;"string"!=typeof e&&void 0!==e||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),g=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"number"===this.initialElement.inputFieldType?void 0:"";if("number"===this.initialElement.inputFieldType){if(!("number"==typeof e))throw new Error("Expected field value to be number")}else if("string"!=typeof e)throw new Error("Expected field value to be string");return e},set:function(e){var t;if("number"===this.initialElement.inputFieldType&&!("number"==typeof e||void 0===e))throw new Error("Expected field value to be number or undefined");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),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),t}(s),m=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),y=n(20),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),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&&e0?n:void 0}},27:function(e,t,n){"use strict";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 u})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return d}));var r=n(1),i=function(e){return"start"===e||"flow"===e?"left":"end"===e?"right":e},o=function(e){return"start"===e?"top":"end"===e?"bottom":e};function a(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:["middle","start","flow","stretch"].includes(o)?null!==(t=e.leftOffset)&&void 0!==t?t:Math.round(e.xPos):void 0,rightOffset:null!==(n=["end","stretch"].includes(o)?e.rightOffset:void 0)&&void 0!==n?n:["end"].includes(o)?-Math.round(e.xPos):void 0,topOffset:["middle","start","flow","stretch"].includes(a)?null!==(r=e.topOffset)&&void 0!==r?r:Math.round(e.yPos):void 0,bottomOffset:null!==(i=["end","stretch"].includes(a)?e.bottomOffset:void 0)&&void 0!==i?i:["end"].includes(a)?-Math.round(e.yPos):void 0,flowOffsetY:e.flowOffsetY,flowOffsetLeft:e.flowOffsetLeft,flowOffsetRight:e.flowOffsetRight,xType:o,yType:a,height:e.height,width:e.width,rotation:e.rotation,hidden:e.hidden}}var u=1e4,s=function(e,t){var n,r,i,o,s,l,d=c(e,t),f=!!e.isFullHeight,p=!!e.isFullWidth,h=a(d);return{type:"view",width:[null!==(n=d.minWidth)&&void 0!==n?n:p?1:d.width,null!==(r=d.maxWidth)&&void 0!==r?r:p?u:d.width],height:[null!==(i=d.minHeight)&&void 0!==i?i:f?1:d.height,null!==(o=d.maxHeight)&&void 0!==o?o:f?u:d.height],xType:h.xType,yType:h.yType,topOffset:h.topOffset,bottomOffset:h.bottomOffset,leftOffset:h.leftOffset,rightOffset:h.rightOffset,flowOffsetY:void 0,flowOffsetLeft:h.flowOffsetLeft,flowOffsetRight:h.flowOffsetRight,rotation:h.rotation,hidden:h.hidden,isAutoMinWidth:null!==(s=d.isAutoMinWidth)&&void 0!==s&&s,isAutoMinHeight:null!==(l=d.isAutoMinHeight)&&void 0!==l&&l}};function c(e,t){var n,i,o,a=null!==(n="mobile"===t?e.arrangement.mobile:"desktop"===t?e.arrangement.desktop:null)&&void 0!==n?n:e.arrangement.default;return Object(r.a)(Object(r.a)({},a),{hidden:null!==(o=null!==(i="view"===e.type?void 0:e.hidden)&&void 0!==i?i:a.hidden)&&void 0!==o&&o})}function l(e,t){return void 0===t&&(t="all"),"view"===e.type?s(e,t):a(c(e,t))}var d=function(e,t){return"flow"===a(function(e,t){var n=e.arrangement,r="mobile"===t?n.mobile:n.desktop;return n.runtime||r||n.default}(e,t)).yType}},28:function(e,t,n){"use strict";function r(e){throw new Error("Unexpected object: ".concat(function(e){try{return JSON.stringify(e)}catch(t){return String(e)}}(e)))}n.d(t,"a",(function(){return r}))},282:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return r}))},283:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},29:function(e,t,n){"use strict";n.d(t,"n",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"p",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"m",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"j",(function(){return m}));var r="group-ag5ulxf3jufbccgjmtpdfnynr6pu20q71h5t",i="group-sqg5k1w160ddfnldfdinlkk8iru64860cc4e",o="group-fm7k0eov9vgzyp4obnkfdkbbxlr0f9zrb7",a="variable-a2nevps625ces55o1i09byshz7ymdqqhc61s",u="group-t4jbdlcsd5ktn068j6c4uyvu3l8360ai9ypfq",s="group-crvrsmjnqy9bv7ajlhty86vyb7obonaf1a8v",c="group-po3inao7kyldlqyhsf4qz5soa9z0064fv",l="element-iyyu9yfj981zmxt6uas4onrhnzgtteeklk",d="element-g5my76lht99vgfip1v8gkf2iftk4irrhv16",f="element-ia3jud0wppwtcwu7t841ji1xfvae622l17",p="group-scrollabledefaultgroup1bxlr0f9zrb7",h="group-fileslistpreset1234567890123456789",b="group-fileslistscrollable123456789",g="variable-fileslistname123456789012345678",v="variable-fileslistfilesvariable123456789",m="element-fileslistscrollable123456789012345"},293:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(1);function i(e,t){return Object(r.e)(this,void 0,void 0,(function(){var n,i,o,a,u,s;return Object(r.h)(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,7]),n=Object(r.n)(e),i=n.next(),c.label=1;case 1:return i.done?[3,4]:(o=i.value,[4,t(o)]);case 2:if(c.sent())return[2,o];c.label=3;case 3:return i=n.next(),[3,1];case 4:return[3,7];case 5:return a=c.sent(),u={error:a},[3,7];case 6:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(u)throw u.error}return[7];case 7:return[2,null]}}))}))}var o=function(e){var t=e.designs;return!(t.backgroundColorApplied||t.borderApplied||t.shadowApplied||t.backgroundImageApplied)}},294:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r="https://api.giosg.com/events/v2/store/internal",i="https://api.giosg.com/events/v2/store/external"},295:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n="end"!==e.yType?e.topOffset:e.bottomOffset,r="end"!==t.yType?t.topOffset:t.bottomOffset,i=n+e.height;return nr}},296: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 u=a.value,s=Object(r.k)(u.split("="),2),c=s[0],l=s[1];if(c)try{i[c]=decodeURIComponent(l)}catch(e){i[c]="URI malformed"}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}},297:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(1),i=function(e,t){var n,r=(null!==(n=t.templates)&&void 0!==n?n:[]).find((function(t){return t.uid===e.templateUid}));return r?o(e,r):e},o=function(e,t){return Object(r.a)(Object(r.a)({},e),{templateUid:void 0,designs:t.designs,elements:Object(r.m)(Object(r.m)([],Object(r.k)(t.elements),!1),Object(r.k)(e.elements),!1),arrangement:Object(r.a)(Object(r.a)({},e.arrangement),{default:Object(r.a)(Object(r.a)({},e.arrangement.default),{width:t.width,height:t.height})})})}},298:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(1),i=function(e,t){var n=new Set,i=function(t,r){if(n.has(t))return[];n.add(t);var i=e.getGroup(t);return o(i.elements,r)},o=function(e,t){return e.flatMap((function(e,n){var o=t.length>0?Object(r.m)(Object(r.m)([],Object(r.k)(t[t.length-1].elementPath),!1),[n],!1):[n],a={element:e,elementPath:o,ancestors:t};if("group"===e.type){var u=Object(r.m)(Object(r.m)([],Object(r.k)(t),!1),[{element:e,elementPath:o}],!1);return Object(r.m)([a],Object(r.k)(i(e.groupUid,u)),!1)}if("scrollable"===e.type){u=Object(r.m)(Object(r.m)([],Object(r.k)(t),!1),[{element:e,elementPath:o}],!1);return Object(r.m)([a],Object(r.k)(i(e.groupElement.groupUid,u)),!1)}return[a]}))};return o(t.elements,[])},o=function(e,t){return i(e,t).map((function(e){return e.element}))}},299:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(128),i=function(e,t){return void 0===e||""===String(e).trim()?!t.isRequired:"number"===t.inputFieldType?"number"==typeof e&&Object(r.f)(e):"email"===t.inputFieldType?"string"==typeof e&&Object(r.d)(e):"tel"!==t.inputFieldType||"string"==typeof e&&Object(r.h)(e)}},300:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(28),o=n(73),a=function(e,t,n,a){var u=e.data,s=u.info,c=u.matchedGoals;if(0!==n.length){var l=e.environment.getGiosg(),d=function(e){switch(e.environment.runtime){case"iframe_embedded":return"iframe";case"on_the_page":return"on_the_page";case"chat_message_visitor":return"chat_message";case"chat_message_user":return"user_chat_message";case"on_the_task_list":return"task_list";case"advert":return"iframe";default:return Object(i.a)(e.environment.runtime)}}(e);n.forEach((function(n){var i;if(!c.includes(n)){var u=e.data.reportingSequenceNumber;null===(i=null==l?void 0:l.api)||void 0===i||i.goal.matches(n,{interactionUuid:s.interactionUuid,interactionViewUid:t,reportingSequenceNumber:u.toString(),actionUid:a}),Object(o.b)({store:e,action:"goal_matched",triggerElementId:t,dim3:n,dim4:d,actionUid:a}),Object(o.b)({store:e,action:"goal_matched",triggerElementId:t,dim3:n,dim4:d,actionUid:a,workflowUid:e.data.project.workflowUid}),e.setData({matchedGoals:Object(r.m)(Object(r.m)([],Object(r.k)(c),!1),[n],!1)})}}))}}},301:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="UPLOAD_CANCELLED";function i(e){return e===r}},302:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),i=function(){var e=r.b.useCss();return r.b.jsx("div",{className:e(o)})},o={overflow:"hidden"}},303:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(4),o=function(e,t,n,r){var i,o,u,s=window,c=a(e,t,n,r);(null===(i=s.Android)||void 0===i?void 0:i.setVisibleElementsBoundingBox)&&s.Android.setVisibleElementsBoundingBox(c),(null===(u=null===(o=s.webkit)||void 0===o?void 0:o.messageHandlers)||void 0===u?void 0:u.setVisibleElementsBoundingBox)&&s.webkit.messageHandlers.setVisibleElementsBoundingBox.postMessage(c)},a=function(e,t,n,r){return e?{id:n,isVisible:t,width:null==r?void 0:r.width,height:null==r?void 0:r.height,x:null==r?void 0:r.x,y:null==r?void 0:r.y}:{id:n,isVisible:t}},u=function(e,t,n,r){var i,o,a,u;(u=window,(null===(i=u.Android)||void 0===i?void 0:i.setVisibleElementsBoundingBox)||(null===(a=null===(o=u.webkit)||void 0===o?void 0:o.messageHandlers)||void 0===a?void 0:a.setVisibleElementsBoundingBox))&&s(e,t,n,r)},s=function(e,t,n,a){var u=Object(r.k)(Object(i.g)(void 0),2),s=u[0],c=u[1],l=e&&n,d=Object(i.d)((function(){setTimeout((function(){if(l){var e=n.getBoundingClientRect(),t={x:e.x,y:e.y,width:e.width,height:e.height};c((function(e){return JSON.stringify(e)!==JSON.stringify(t)?t:e}))}}),100)}),[n,l]);d(),Object(i.e)((function(){if(l&&s)return o(n,t,a,s),function(){t&&o(null,!1,a,s)}}),[a,t,s,l,n]),Object(i.e)((function(){if(l)return window.addEventListener("resize",d),window.addEventListener("scroll",d),function(){window.removeEventListener("resize",d),window.removeEventListener("scroll",d)}}),[d,l])}},304:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var r={shapeType:"rectangle",opacity:1,shadowApplied:!1,shadowBlur:0,shadowPosX:0,shadowPosY:0,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:0,topRight:0,bottomLeft:0,bottomRight:0},backgroundColorApplied:!0,backgroundColor:{r:193,g:193,b:201,a:1},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0},i={shapeType:"rectangle",opacity:1,shadowApplied:!1,shadowBlur:0,shadowPosX:0,shadowPosY:0,shadowSpread:0,borderApplied:!1,borderColor:{a:0,b:0,g:0,r:0},borderStyle:"solid",borderWidth:1,shadowColor:{a:0,b:0,g:0,r:0},borderRadius:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},backgroundColorApplied:!1,backgroundColor:{a:0,r:255,g:255,b:255},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0},o={shapeType:"circle",opacity:1,shadowApplied:!1,shadowBlur:0,shadowPosX:0,shadowPosY:0,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:80,topRight:80,bottomLeft:80,bottomRight:80},backgroundColorApplied:!0,backgroundColor:{r:193,g:193,b:201,a:1},backgroundImageSize:"contain",backgroundImageApplied:!1,backgroundImage:void 0,backgroundImageGiosgAssetUrl:void 0}},306:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));n(294);function r(e,t){return new Promise((function(n,r){var i={events:t};if(!i.events.some((function(e){return"exit"===e.action})))try{if("sendBeacon"in navigator)if(navigator.sendBeacon(e,new Blob([JSON.stringify(i)],{type:"application/json"})))return void n()}catch(e){console.warn(e)}return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){if(!e.ok){var t="Event send internal error ".concat(e.status," ").concat(e.statusText);return console.warn(t),r(new Error(t))}n()})).catch((function(e){return console.warn("Event send network error",e),r(e)}))}))}function i(e,t){var n={events:t};try{if("sendBeacon"in navigator)if(navigator.sendBeacon(e,new Blob([JSON.stringify(n)],{type:"application/json"})))return}catch(e){console.warn(e)}fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then((function(e){e.ok||console.warn("Event send internal error ".concat(e.status," ").concat(e.statusText))})).catch((function(e){console.warn("Event send network error: ".concat(e))}))}},307:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p}));var r=n(1),i=n(20),o=n(13),a=n(88),u=n(181),s=n(180),c=n(126),l=n(94),d=n(29),f=function(){var e=Object(s.a)("background",{xType:"stretch",yType:"stretch",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:2});e.designs.shapeType="rectangle",e.designs.borderWidth=1,e.designs.borderApplied=!0,e.designs.borderStyle="solid",e.designs.borderColor={a:.25,b:0,g:0,r:0},e.designs.borderRadius={topLeft:4,topRight:4,bottomLeft:4,bottomRight:4},e.designs.backgroundColor={a:1,b:255,g:255,r:255},e.designs.backgroundColorApplied=!1;var t=Object(a.a)("Delete File",{xType:"right",yType:"stretch",width:40,height:40,rightOffset:0,topOffset:0,bottomOffset:2});t.richText=[{type:"PARAGRAPH",textAlignment:"center",children:[{text:"×",fontSize:18,color:"rgba(0, 0, 0, 1)",fontFamily:"Arial, Helvetica Neue, Helvetica, sans-serif",bold:!0}]}],t.designs.backgroundColor={a:0,b:255,g:255,r:255},t.designs.backgroundColorApplied=!1,t.designs.backgroundHoverColor={a:0,b:255,g:255,r:255},t.designs.borderHoverColor={a:.25,b:0,g:0,r:0},t.designs.borderWidth=0,t.designs.borderRadius={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},t.designs.paddingsNew={top:0,right:0,bottom:0,left:0},t.clickEvents=[{conditions:[],actions:[{type:"runjs",uid:Object(i.a)(),async:!1,javascriptCode:"\n const fileName = $i.groupVariables.name;\n const filesVariableId = $i.groupVariables.filesVariable;\n if (!filesVariableId || !fileName) {\n return;\n }\n const filesArray = $i.dataFields[filesVariableId];\n if (Array.isArray(filesArray)) {\n $i.dataFields[filesVariableId] = filesArray.filter((file) => file.name !== fileName);\n }\n "}]}];var n=Object(c.a)("File Name",{xType:"stretch",leftOffset:10,rightOffset:40,yType:"stretch",topOffset:0,bottomOffset:2},void 0,void 0),u={id:d.m,name:"name",type:"string",defaultValue:""},l=n.designs,f={fontFamily:l.fontFamily,fontSize:l.fontSize,color:Object(o.v)(l.textColor),bold:l.fontBold,italic:l.fontItalic,underline:l.fontUnderlined},p={type:"VARIABLE",variable:"name",children:[Object(r.a)({text:""},f)]};return n.richText=[{type:"PARAGRAPH",textAlignment:"left",children:[Object(r.a)({text:"📄 "},f),p,Object(r.a)({text:""},f)]}],n.designs.verticalTextAlignment="center",{uid:d.k,isComponent:!1,elements:[e,t,n],variableDefinitions:[u]}},p=function(){var e=Object(u.a)("File List",{yType:"stretch",xType:"stretch",leftOffset:0,rightOffset:0,topOffset:0,bottomOffset:0},void 0,void 0);return e.repetitionType="vertical",e.uid=d.j,e.designs.backgroundColor={r:255,g:255,b:255,a:0},e.designs.borderWidth=0,e.groupElement=Object(l.a)("group",{xType:"stretch",leftOffset:0,rightOffset:0,yType:"top",height:42}),e.groupElement.groupUid=d.k,e.clickEvents=[{conditions:[{uid:Object(i.b)(),type:"elementShown",onlyOnce:!0,targetId:d.j}],actions:[{type:"runjs",uid:Object(i.a)(),async:!1,javascriptCode:"\n const filesVariableId = $i.groupVariables.filesVariable;\n if (!filesVariableId) {\n return;\n }\n $i.get(`".concat(d.j,"`).value = [];\n\n const listenerFunction = (changedData) => {\n const changedDataFields = changedData.dataFields;\n if (changedDataFields && changedDataFields[filesVariableId]) {\n const filesArray = $i.dataFields[filesVariableId];\n $i.get(`").concat(d.j,"`).value = Array.isArray(filesArray) ? filesArray : [];\n }\n };\n $i.store.addUpdateListener(listenerFunction);\n ")}]}],{uid:d.i,elements:[e],presetType:"filesList",isComponent:!0,originGroupInstanceUid:d.i,presetVersion:1,variableDefinitions:[{type:"string",name:"filesVariable",defaultValue:"",id:d.l}]}}},309:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n(1),i=n(159),o=n(295),a={type:"element",width:0,height:0,xType:"start",yType:"flow",topOffset:void 0,bottomOffset:void 0,leftOffset:void 0,rightOffset:void 0,rotation:0,hidden:!1},u=function(e,t){return e.filter((function(e){var n=Object(r.k)(e,1)[0];return"flow"===t[n.uid].yType})).sort((function(e,n){var o=Object(r.k)(e,1)[0],a=Object(r.k)(n,1)[0],u=t[o.uid],s=t[a.uid];return Object(i.b)(u,s)})).reduce((function(e,n){var i,u,s=Object(r.k)(n,2),c=s[0],l=s[1],d=t[c.uid],f=null===(i=e[e.length-1])||void 0===i?void 0:i[0],p=null===(u=e[e.length-1])||void 0===u?void 0:u[1],h=t[null==f?void 0:f.uid];if(h&&Object(o.a)(d,h)){var b=Math.min(d.topOffset,h.topOffset),g=Math.max(d.topOffset+d.height,h.topOffset+h.height);if("flow"===f.type)return t[f.uid]=Object(r.a)(Object(r.a)({},a),{topOffset:b,height:g-b}),Object(r.m)(Object(r.m)([],Object(r.k)(e.slice(0,-1)),!1),[[Object(r.a)(Object(r.a)({},f),{startElements:Object(r.m)(Object(r.m)([],Object(r.k)(f.startElements),!1),[[c,l]],!1)}),-1]],!1);var v=Math.random().toString();return t[v]=Object(r.a)(Object(r.a)({},a),{topOffset:b,height:g-b}),Object(r.m)(Object(r.m)([],Object(r.k)(e.slice(0,-1)),!1),[[{type:"flow",uid:v,startElements:[[f,p],[c,l]],middleElements:[],endElements:[],stretchElements:[]},-1]],!1)}return Object(r.m)(Object(r.m)([],Object(r.k)(e),!1),[[c,l]],!1)}),[])},s=function(e,t){var n,o,a,u;try{for(var s=Object(r.n)(e),c=s.next();!c.done;c=s.next()){var l=Object(r.k)(c.value,1)[0];if("flow"===l.type){var d=[],f=[],p=[],h=[];try{for(var b=(a=void 0,Object(r.n)(l.startElements)),g=b.next();!g.done;g=b.next()){var v=Object(r.k)(g.value,2),m=v[0],y=v[1],D=t[m.uid];"start"===D.xType?d.push([m,y]):"middle"===D.xType?f.push([m,y]):"end"===D.xType?p.push([m,y]):"stretch"===D.xType&&h.push([m,y])}}catch(e){a={error:e}}finally{try{g&&!g.done&&(u=b.return)&&u.call(b)}finally{if(a)throw a.error}}l.startElements=d.sort((function(e,n){var o=Object(r.k)(e,1)[0],a=Object(r.k)(n,1)[0];return Object(i.a)(t[o.uid],t[a.uid])})),l.middleElements=f.sort((function(e,n){var o=Object(r.k)(e,1)[0],a=Object(r.k)(n,1)[0];return Object(i.a)(t[o.uid],t[a.uid])})),l.endElements=p.sort((function(e,n){var o=Object(r.k)(e,1)[0],a=Object(r.k)(n,1)[0];return Object(i.a)(t[o.uid],t[a.uid])})),l.stretchElements=h.sort((function(e,n){var o=Object(r.k)(e,1)[0],a=Object(r.k)(n,1)[0];return Object(i.a)(t[o.uid],t[a.uid])}))}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}},31:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.WebsiteNormal="WebsiteNormal",e.Email="Email",e.OperatorSendToVisitor="OperatorSendToVisitor",e.OperatorSendToGroup="OperatorSendToGroup",e.ChatWindowSidePanel="ChatWindowSidePanel",e.StartMenu="StartMenu",e.Advertisement="Advertisement",e.ProductCardAttachment="ProductCardAttachment"}(r||(r={}))},317:function(e,t,n){"use strict";var r=n(152),i=n(93),o=n(79);function a(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function u(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;r3){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(g,{rootRef:t}),o.b.jsx(p,{innerRef:t,onFocus:function(){return h(t,r.GoToEnd)}}))},g=function(e){var t=e.rootRef;return o.b.jsx(p,{innerRef:t,onFocus:function(){return h(t,r.GoToStart)}})},v=n(73),m=n(154),y=n(303),D=0,O="",w=function(){0===D&&(O=document.body.style.overflow,document.body.style.overflow="hidden"),D+=1},C=function(){D<=0||0===(D-=1)&&(document.body.style.overflow=O)},j=n(33),x=n(222),E=n(293),A=n(13),k=function(e,t,n,r,o,a,u,s){var c=t.arrangement.default,l=!!t.isFullHeight,d=!!t.isFullWidth;return Object(i.m)(Object(i.m)([],Object(i.k)(u?[]:[Object(A.f)(t.designs,e,n),Object(A.h)(t.designs,e)]),!1),[Object(A.c)(u||Object(E.b)(t),{pointerEvents:"none"}),Object(A.c)(!a&&d,{width:"100%"}),Object(A.c)(!a&&l,{height:"100%"}),Object(A.c)(r,{position:"relative",marginLeft:"left"!==c.xType?"auto":0,marginRight:"right"!==c.xType?"auto":0,marginTop:"top"!==c.yType?"auto":0,marginBottom:"bottom"!==c.yType?"auto":0}),Object(A.r)(o),Object(A.c)(a,{transform:c.rotation?"rotate(".concat(c.rotation,"deg)"):void 0,width:"100%",height:"100%"}),Object(A.c)(s,Object(A.k)())],!1)},F=n(27),B=n(99),S=function(e){var t=e.store,n=e.className,r=e.element,p=e.innerRef,h=e.enableResponsivePlayer,D=e.isInteractionRendered,O=e.blockAllClicks,E=void 0!==O&&O,A=Object(i.l)(e,["store","className","element","innerRef","enableResponsivePlayer","isInteractionRendered","blockAllClicks"]),S=o.b.useCss(),T=Object(o.f)(null),I=Object(i.k)(Object(o.g)(!1),2),R=I[0],N=I[1],L=Object(m.a)(t,r),V=t.data.project.isInInvisibleViewMode;Object(o.e)((function(){var e,n,o,a;("chat_message_visitor"===t.environment.runtime||"chat_message_user"===t.environment.runtime||"on_the_task_list"===t.environment.runtime)&&(e=r,n=Object(F.f)(e),o=Object(i.k)(n.width,2)[1],a=Object(i.k)(n.height,2)[1],Object(B.b)({type:"size",width:o,height:a}))}),[t.environment.runtime,r]),Object(o.e)((function(){if(!t.data.info.editing){Object(v.d)(t,r);var e=Object(a.b)(r);return Object(c.a)(t,r.uid,e,void 0),function(){Object(v.c)(t,r)}}}),[r.uid]);var z=!h&&!t.data.info.editing&&"chat_message_visitor"!==t.environment.runtime&&"chat_message_user"!==t.environment.runtime;Object(o.e)((function(){if(z&&T.current){var e=T.current,n=e.offsetHeight,o=e.offsetWidth,a=e.parentElement;if(a&&t.data.project.allowScaling){if((a.offsetHeight-n)/20?[e.stretchElements[e.stretchElements.length-1]]:[];try{for(var _=(g=void 0,Object(r.n)(Object(r.m)(Object(r.m)([],Object(r.k)(S),!1),Object(r.k)(e.endElements),!1).reverse())),P=_.next();!P.done;P=_.next()){w=Object(r.k)(P.value,1)[0],C=t[w.uid];var T=null!==(s=C.rightOffset)&&void 0!==s?s:0;o(w,n).flowOffsetRight=T-B,B=T+C.width}}catch(e){g={error:e}}finally{try{P&&!P.done&&(v=_.return)&&v.call(_)}finally{if(g)throw g.error}}if(e.middleElements.length>0){var I=e.middleElements.reduce((function(e,n){var i,o=Object(r.k)(n,1)[0];return e+(null!==(i=t[o.uid].width)&&void 0!==i?i:0)}),0),R=e.middleElements.slice(1).map((function(n,i){var o,a,u,s,c=Object(r.k)(n,1)[0],l=t[e.middleElements[i][0].uid],d=t[c.uid],f=null!==(o=l.leftOffset)&&void 0!==o?o:0,p=null!==(a=d.leftOffset)&&void 0!==a?a:0,h=null!==(u=l.width)&&void 0!==u?u:0,b=null!==(s=d.width)&&void 0!==s?s:0;return Math.round(p-f-(h+b)/2)})),N=R.reduce((function(e,t){return e+t}),0),L=t[e.middleElements[0][0].uid],V=(null!==(c=L.leftOffset)&&void 0!==c?c:0)-(null!==(l=L.width)&&void 0!==l?l:0)/2,z=Math.round(2*V+I+N),M=Math.max(0,z),U=Math.max(0,-z);e.middleElements.forEach((function(t,i){var a=Object(r.k)(t,1)[0],u=i===e.middleElements.length-1,s=o(a,n);s.flowOffsetLeft=0===i?M:R[i-1],s.flowOffsetRight=u?U:0}))}}else o(e,n).flowOffsetY=m.topOffset-d;d=m.topOffset+m.height};try{for(var p=Object(r.n)(e),h=p.next();!h.done;h=p.next()){f(Object(r.k)(h.value,1)[0])}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}(s,n,t),{elementsWithIndex:u,layouts:n,flowElements:s}}},362:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return s}));var r=n(260),i=1920;function o(e,t,n){var r=e.height*(11/15),o=(e.width-r)/2,a=o/e.width*100,u=a,s=100-a,c=n?"".concat(n.height.toString(),"px"):"100%";return{clipPathLeft:u,clipPathRight:s,curtainWidth:o,height:t?"".concat(i*t,"px"):c}}var a=function(e,t,n){return{"--plyr-color-main":e||"#7357FF","--plyr-control-icon-size":t?"".concat(t,"px"):"18px","--plyr-min-width":n?"200px":"0px"}},u=function(e){var t=new Date,n=new Date(e),r=Math.round((t.getTime()-n.getTime())/1e3);return Math.max(r,0)},s=function(e){var t,n={low:{enableWorker:!0,lowLatencyMode:!0,testBandwidth:!0,maxLiveSyncPlaybackRate:1.7,liveSyncDuration:2,liveMaxLatencyDuration:5,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0,liveDurationInfinity:!0,startLevel:-1},optimized:{enableWorker:!0,lowLatencyMode:!0,maxLiveSyncPlaybackRate:1.7,liveSyncDurationCount:3,liveMaxLatencyDurationCount:5,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0,abrBandWidthUpFactor:4,abrBandWidthFactor:6,liveDurationInfinity:!0,startLevel:-1},high:{enableWorker:!0,lowLatencyMode:!0,maxLiveSyncPlaybackRate:1.7,liveSyncDurationCount:2,liveMaxLatencyDurationCount:5,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0,abrBandWidthUpFactor:4,abrBandWidthFactor:6,liveDurationInfinity:!0,startLevel:-1},adaptive:{autoLevelEnabled:!0,abrEwmaFastLive:2,abrEwmaSlowLive:5,abrBandWidthFactor:.7,abrMaxWithRealBitrate:!0,maxBufferLength:10,maxBufferSize:3e7,maxMaxBufferLength:20,liveSyncDuration:3,liveMaxLatencyDuration:5,fragLoadingMaxRetry:6,fragLoadingRetryDelay:500,fragLoadingMaxRetryTimeout:64e3,startLevel:0,capLevelToPlayerSize:!0,lowLatencyMode:!0},test:{enableWorker:!0,abrEwmaDefaultEstimate:6e5,testBandwidth:!1,abrBandWidthUpFactor:4,abrBandWidthFactor:6,lowLatencyMode:!0,maxBufferSize:60,maxBufferLength:30,liveSyncDurationCount:2,liveDurationInfinity:!0,maxLiveSyncPlaybackRate:1.7,startLevel:-1}},i=e.qualityPreset,o=i&&null!==(t=n[i])&&void 0!==t?t:n.optimized;for(var a in r.e){var u=e.qualityPreset;null!==u&&(o[r.e[a]]=u)}return o}},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"m",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"n",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return v}));var r=n(63),i="production",o="https://service.giosg.com",a="production"===i?"https://globalcdn.interactionbuilder.giosg.com/thumbnails":"staging"===i?"https://ib-thumbnails.staging.giosg.app/thumbnails":"localhost"===i?"http://localhost:4010/thumbnails":"",u="".concat(o,"/api"),s="production"===i?"https://calendar.giosg.com":"staging"===i?"https://calendar.staging.giosg.com":"localhost"===i?"https://calendar.giosg.com":"",c="undefined"!=typeof window?window.location.origin:"https://unittest.com",l="".concat(c,"/api"),d="localhost"===i?"http://localhost:5050":"staging"===i?"https://api.preview.staging.giosg.com":"https://api.preview.giosg.com",f="production"===i?r.c:"staging"===i?"https://service-staging.giosg.com/identity/authorize":"".concat("https://service.giosg.com","/identity/authorize"),p=function(e){return"localhost"===i?"http://localhost:5050":"https://".concat(e,"staging"===i?".preview.staging.giosg.com":".preview.giosg.com")},h="staging"===i?"https://api-staging.giosg.com":"https://api.giosg.com",b="".concat(h,"staging"===i?"/workflow_builder_staging":"/workflow_builder"),g="https://globalcdn.interactionbuilder.giosg.com/".replace(/\/$/,""),v="localhost"===i?"https://globalcdn.interactionbuilder.giosg.com/blank-preview.html":"".concat(g,"/blank-preview.html")},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p}));var r=n(1),i=n(54),o=n(92),a=n(74),u=n(13),s=i.createContext(null),c=o.useState,l=o.useEffect,d=o.useRef,f=o.useCallback,p=i.render;t.b=Object(r.a)(Object(r.a)(Object(r.a)({},i),o),{Fragment:i.Fragment,jsx:function(e,t){for(var n=[],o=2;o=100&&u.status<=299)try{var r=JSON.parse(u.responseText);o(r)}catch(e){console.info(e),a(e instanceof Error?e:new Error(""))}else u.statusText||u.responseText?a(new Error(u.statusText+": "+u.responseText)):a(new Error("Network error"))},u.onerror=function(r){e.log({category:"fetch",level:"error",data:{method:n,url:t},type:"http"}),a(new Error("Network error"))},u.send(r?JSON.stringify(r):void 0)}))}var y=n(300),D=function(e,t,n,i,a){return Object(r.e)(void 0,void 0,void 0,(function(){var u,d,p,h,b,g,v,m,D;return Object(r.h)(this,(function(C){switch(C.label){case 0:e.log({category:"ui",message:"Click on [".concat(n.type,'] "').concat(n.name,'"'),data:{id:n.uid}}),C.label=1;case 1:C.trys.push([1,12,13,14]),u=Object(r.n)(t),d=u.next(),C.label=2;case 2:if(d.done)return[3,11];p=d.value,C.label=3;case 3:return C.trys.push([3,9,,10]),e.log({category:"action",message:p.type,data:{id:p.uid}}),(h=w(e,p,n,a))?[4,Object(o.b)(h)]:[3,5];case 4:C.sent(),C.label=5;case 5:return e.data.info.isPreviewMode?[4,l(p)]:[3,7];case 6:if(!C.sent())return[3,10];C.label=7;case 7:return[4,O[p.type](e,p,n,i,a)];case 8:return C.sent(),b=Object(s.a)(p),Object(y.a)(e,n.uid,b,p.uid),[3,10];case 9:return g=C.sent(),e.log({category:"action",level:"error",message:Object(c.c)(g),data:{id:p.uid,type:p.type}}),Object(f.b)(g)?[3,11]:(Object(c.b)(g,{id:e.interactionId,organizationId:e.organizationId,breadcrumbs:e.sentryBreadcrumbs},[{type:"ActionError",value:p.uid}]),g instanceof Error?(e.setData({error:g.message}),console.error("Action failed ".concat(p.type),p,g),[3,11]):[3,10]);case 10:return d=u.next(),[3,2];case 11:return[3,14];case 12:return v=C.sent(),m={error:v},[3,14];case 13:try{d&&!d.done&&(D=u.return)&&D.call(u)}finally{if(m)throw m.error}return[7];case 14:return"element-opbht4e7782cw3o6bw9bg3w9b12dm47svb7p"===n.uid&&Object(c.b)("calendar-submit",{id:e.interactionId,organizationId:e.organizationId,breadcrumbs:e.sentryBreadcrumbs}),[2]}}))}))},O={changeview:d.a,url:d.s,delay:d.c,localstorageflag:d.j,hubformdata:d.i,formdata:d.f,giosgprocessor:d.g,openchat:d.k,closechat:d.b,runjs:d.l,exit:d.e,showhide:d.q,enableDisable:d.d,uploadFile:d.r,starttask:function(e,t,n,i){return Object(r.e)(void 0,void 0,void 0,(function(){var n,o,a,u,s,c,l,d,f,h;return Object(r.h)(this,(function(r){switch(r.label){case 0:return n=e.environment.getGiosg(),o={type:"interaction_submit",message:Object(g.c)(t.message||"Lead",!1,(function(t){return e.getVariableValue(t,i)}))},(h={})[b.g]=Object(g.c)(t.title||b.a,!1,(function(t){return e.getVariableValue(t,i)})),h[b.e]=t.avatarUrl,h[b.f]=t.avatarUrl,a=h,(null==n?void 0:n.api)?[4,n.api.chat.startTask(o,t.roomId,"incognito"===t.visitorType,a)]:[3,2];case 1:return r.sent(),[3,9];case 2:if(!(u=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(p.a)(t.visitorType)}return s=e.data.info.organizationUid,c=e.data.info.api.interactionPlayerChatOrigin,[4,m(e,"".concat(c,"/api/v5/public/orgs/").concat(s,"/auth"),"POST",{})];case 3:return l=r.sent(),[4,m(e,"".concat(c,"/api/v5/public/orgs/").concat(l.organization_id,"/rooms/").concat(u,"/visitors"),"POST",{id:l.visitor_id},l.access_token)];case 4:return d=r.sent(),[4,m(e,"".concat(c,"/api/v5/public/orgs/").concat(l.organization_id,"/rooms/").concat(u,"/visitors/").concat(d.id,"/chats"),"POST",{chat_type:"task"},l.access_token)];case 5:return f=r.sent(),t.title||t.avatarUrl?[4,Object(v.f)(e,"".concat(c,"/giosg_api/visitor/").concat(d.id,"/").concat(u,"/"),{data:a})]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,m(e,"".concat(c,"/api/v5/public/visitors/").concat(d.id,"/chats/").concat(f.id,"/messages"),"POST",o,l.access_token)];case 8:r.sent(),r.label=9;case 9:return[2]}}))}))},startcall:function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,u;return Object(r.h)(this,(function(r){if(n=t.phoneNumberElementId,i=t.callType,o=e.environment.getGiosg(),a=n?e.data.fields[n]:"",!(null==o?void 0:o.api))throw new Error("Startcall action is not supported in '".concat(e.environment.runtime,"' runtime."));if(!o.api.call)throw new Error("Visitor-side webrtc plugin is not loaded");switch(o.api.visitor.submit({"Click events":e.data.clicks.join(" -> ")},"plain",!1,h(t,o.api)),i){case"webCall":case void 0:u=!1===t.requestPermissionsBeforeCall,o.api.call.startCallWithOptions({operatorName:t.title,operatorAvatarUrl:t.avatarUrl,roomId:t.roomId,kind:t.kind,type:u?"voip_deferred_permissions":"voip"});break;case"telephonyCall":o.api.call.startCallWithOptions({operatorName:t.title,operatorAvatarUrl:t.avatarUrl,roomId:t.roomId,kind:t.kind,type:"telephony",phoneNumber:a});break;default:Object(p.a)(i)}return[2]}))}))},setdatafield:d.o,setVisitorVariable:d.p,customaction:d.m,sendEmail:d.n},w=function(e,t,n,i){var o=n.uid,a=function(n,i){return void 0===i&&(i={}),Object(r.a)({store:e,action:n,triggerElementId:o,actionUid:t.uid},i)};if("changeview"===t.type)return a(t.type,{dim3:t.viewId});if("delay"===t.type)return a(t.type,{value:t.delayMs});if("localstorageflag"!==t.type){if("giosgprocessor"===t.type)return a("leadform");if("showhide"!==t.type)return"enableDisable"===t.type?a("enable"===t.action?"enableElement":"disableElement"):"startcall"===t.type?a(t.type,{dim4:t.kind}):a(t.type);var u=t.targetUid&&e.getElementByUid(t.targetUid);if(u&&"view"!==u.type){var s=e.getTargetPaths(t.targetUid,i,!1),c=s.length>0?s[0]:[],l=e.getElementVisibilityStatus(u,c,e.data.activeBreakpoint).isVisible;return a("show"===t.action||"toggle"===t.action&&!l?"showelement":"hideelement")}}},C=n(245),j=n(208),x=function(e){return"number"==typeof e||"string"==typeof e},E=function(e,t){return void 0!==e&&void 0!==t&&e.toString()===t.toString()},A=function(e,t){return!(!x(e)||!x(t))&&parseFloat(e.toString())>parseFloat(t.toString())},k=function(e,t){return!(!x(e)||!x(t))&&parseFloat(e.toString())>=parseFloat(t.toString())},F=function(e,t){return!(!x(e)||!x(t))&&parseFloat(e.toString())0&&Object(i.b)(c.join(". ")),r.label=5;case 5:return[2]}}))},x.label=1;case 1:x.trys.push([1,6,7,8]),b=Object(r.n)(f),g=b.next(),x.label=2;case 2:return g.done?[3,5]:(m=g.value,y=m.events,O=m.actions,[5,h(y,O)]);case 3:x.sent(),x.label=4;case 4:return g=b.next(),[3,2];case 5:return[3,8];case 6:return w=x.sent(),C={error:w},[3,8];case 7:try{g&&!g.done&&(j=b.return)&&j.call(b)}finally{if(C)throw C.error}return[7];case 8:return[2]}}))}))}var G=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})}))})),n};function J(e,t,n,i){return Object(r.e)(this,void 0,void 0,(function(){var u,s,c;return Object(r.h)(this,(function(l){switch(l.label){case 0:return u=n.some((function(e){return"click"===e.type})),n.some((function(e){return"shown"===e.type}))&&(e.data.elementInitialized.includes(t.uid)||e.setData({elementInitialized:Object(r.m)(Object(r.m)([],Object(r.k)(e.data.elementInitialized),!1),[t.uid],!1)})),u?(s=i.filter((function(e){return"url"===e.type})),c="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:c,clickHistory:e.data.elementClicks,urlActions:s.map((function(e){return{type:e.urlType,targetUrl:e.targetUrl}}))})]):[3,2];case 1:l.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}),l.label=2;case 2:return[2]}}))}))}var Y=function(e,t,n,i,a){return Object(r.e)(void 0,void 0,void 0,(function(){var u,s;return Object(r.h)(this,(function(r){switch(r.label){case 0:return e.data.info.editing?[2]:("click"===n.type&&(Object(o.b)({store:e,action:"click",triggerElementId:t.uid}),u=e.data.project.workflowUid,s="button"===t.type&&t.label?t.label:t.name,Object(o.a)({store:e,workflowUid:u,action:"".concat(t.type," | ").concat(s),dim2:t.uid})),[4,q(e,t,[n],i,a).catch((function(e){console.error("Error while running events",t,e)}))]);case 1:return r.sent(),[2]}}))}))}},433:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=n(1),o=n(31),a=n(103),u=n(72),s=((r={})[o.a.Email]=[{name:u.e,id:u.d},{name:u.b,id:u.a}],r),c=function(e){var t,n,r=function(e){var t,n=Object(a.a)(e);return null!==(t=s[n])&&void 0!==t?t:[]}(e);if(r.length){e.dataFields||(e.dataFields=[]);var o=function(t){e.dataFields.find((function(e){return e.name===t.name}))||e.dataFields.push({name:t.name,id:t.id,type:"system"})};try{for(var u=Object(i.n)(r),c=u.next();!c.done;c=u.next()){o(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}}},434:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),i=n(63),o=n(131),a=n(51),u=n(108),s=n(296),c=function(){var e=Object(u.a)("local"),t="giosg-unpacked-visitor-cid",n=e.getItem(t);if(n)return n;var r=Object(o.a)().replace(/-/g,"");return e.setItem(t,r),r},l=function(){var e=Object(u.a)("session"),t="giosg-giosg-session-id",n=e.getItem(t);if(n)return n;var r=Object(o.a)();return e.setItem(t,r),r};var d=function(){function e(e,t,n){if(Object.defineProperty(this,"info",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"runtime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"initialViewIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"giosg",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"giosgClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:{}}),t&&n)this.giosg=t,this.giosgClient=n,this.runtime="on_the_page";else{var r=Object(s.a)(window.location.search);this.initialViewIndex=void 0!==r.initialViewIndex?parseInt(r.initialViewIndex):0,!function(){var e=document.querySelector('meta[name="environment"]');if(e){var t=e.getAttribute("content")||"";if(["gwd-googleads"].includes(t))return!0}return!1}()?r.session_id&&r.visitor_id&&r.chat_id&&r.room_id?(this.params=r,this.runtime="chat_message_visitor"):"message"===r.mode&&r.user_id&&r.chat_id&&r.room_id?(this.params=r,this.runtime="chat_message_user"):"task_list"===r.mode&&r.user_id?(this.params=r,this.runtime="on_the_task_list"):!function(){try{return window.self!==window.top}catch(e){return!0}}()?(this.params=r,this.runtime="on_the_page"):(this.params=r,this.runtime="iframe_embedded"):this.runtime="advert"}}return Object.defineProperty(e.prototype,"getGiosg",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.giosg?this.giosg:window.giosg?window.giosg:void 0}}),Object.defineProperty(e.prototype,"getGiosgClient",{enumerable:!1,configurable:!0,writable:!0,value:function(){if("on_the_page"===this.runtime&&this.giosgClient)return this.giosgClient}}),Object.defineProperty(e.prototype,"getUnpackedVisitorCid",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return new Promise((function(t,n){"on_the_page"===e.runtime&&e.giosg?function(e,t,n,r,i){p("unpackedVisitorCid",e,t,n,r,i)}(t,n,e.giosg,1e4,e.info):"chat_message_visitor"===e.runtime&&e.params&&e.params.visitor_id?t(e.params.visitor_id):t(c())}))}}),Object.defineProperty(e.prototype,"getUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(("chat_message_user"===this.runtime||"on_the_task_list"===this.runtime)&&this.params&&this.params.user_id)return this.params.user_id}}),Object.defineProperty(e.prototype,"getSessionId",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return new Promise((function(t,n){"on_the_page"===e.runtime&&e.giosg?function(e,t,n,r,i){p("sessionUuid",e,t,n,r,i)}(t,n,e.giosg,1e4,e.info):"chat_message_visitor"===e.runtime&&e.params&&e.params.session_id?t(e.params.session_id):t(l())}))}}),Object.defineProperty(e.prototype,"getChatId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"on_the_page"===this.runtime&&this.giosgClient?this.giosgClient.activeChat?this.giosgClient.activeChat.id:void 0:("chat_message_visitor"===this.runtime||"chat_message_user"===this.runtime)&&this.params&&this.params.chat_id?this.params.chat_id:void 0}}),Object.defineProperty(e.prototype,"getRoomId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"on_the_page"===this.runtime&&this.giosgClient?this.giosgClient.activeChat?this.giosgClient.activeChat.room_id:void 0:("chat_message_visitor"===this.runtime||"chat_message_user"===this.runtime)&&this.params&&this.params.room_id?this.params.room_id:void 0}}),Object.defineProperty(e.prototype,"getFullAssetCdnUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n;return(null!==(n=null===(t=this.getGiosg())||void 0===t?void 0:t.assets_cdn_url)&&void 0!==n?n:"https://cdn.giosgusercontent.com")+e}}),Object.defineProperty(e.prototype,"getInteractionBuilderBaseUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,n;return null!==(n=null===(t=null===(e=this.getGiosg())||void 0===e?void 0:e.interaction_url_pattern)||void 0===t?void 0:t.replace("{interactionUuid}",this.info.interactionUuid))&&void 0!==n?n:this.info.api.interactionDesignerOrigin}}),Object.defineProperty(e.prototype,"getFormDataUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.getInteractionBuilderBaseUrl()+"/api/visitor/formdata"}}),Object.defineProperty(e.prototype,"getSendEmailUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getInteractionBuilderBaseUrl()+"/api/v2/actions/".concat(e,"/send_email")}}),Object.defineProperty(e.prototype,"getBreweryEventsUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=null===(e=this.getGiosg())||void 0===e?void 0:e.api_giosg_url;return t?t+"/events/v2/store/external":this.info.api.breweryExternalEventEndpoint}}),Object.defineProperty(e.prototype,"getWorkflowTriggerUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n=null===(t=this.getGiosg())||void 0===t?void 0:t.api_giosg_url;return n?n+"/workflow_builder/public/workflows/".concat(e,"/trigger_workflow"):"".concat("https://api.giosg.com","/workflow_builder/public/workflows/").concat(e,"/trigger_workflow")}}),Object.defineProperty(e.prototype,"getWorkflowResultsUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n=null===(t=this.getGiosg())||void 0===t?void 0:t.api_giosg_url;return n?n+"/workflow_builder/public/execution/".concat(e,"/status"):"".concat("https://api.giosg.com","/workflow_builder/public/execution/").concat(e,"/status")}}),e}();function f(e,t){var n,o,u,s,c,l,d="Could not get giosg.".concat(e," before timeout!");try{Object(a.b)(d,Object(r.a)({id:t.interactionUuid,organizationId:t.organizationUid,giosg_id_attr:e},(s=window.giosg,c=null==s?void 0:s.tcAPI,l=null!==(o=null===(n=null==c?void 0:c.hasSufficientPermissions)||void 0===n?void 0:n.call(c,[i.d.AccessLocalOrSessionStorage,i.d.SelectPersonalizedContent]))&&void 0!==o?o:"no_tc_api",{chat_consent_granted:String(l),has_visitor_cid:String(!!(null==s?void 0:s.visitorCid)),has_unpacked_visitor_cid:String(!!(null==s?void 0:s.unpackedVisitorCid)),has_session_uuid:String(!!(null==s?void 0:s.sessionUuid)),use_bar_dialog:String(!!(null===(u=s)||void 0===u?void 0:u.useBarDialog)),giosg_v2:String(!!(null==s?void 0:s.usedV2Loader)),page_ready_ms:String(Math.round(performance.now()))})))}catch(n){}}function p(e,t,n,r,i,o){return void 0!==r[e]?t(r[e]):i<=0?(f(e,o),n("Could not get giosg.".concat(e," before timeout!"))):void setTimeout((function(){p(e,t,n,r,i-150,o)}),150)}},435:function(e,t,n){"use strict";function r(e,t){var n,r,i;if(e<=385)return"mobile";if(i=navigator.userAgent,/android/i.test(i)||(/iPhone|iPod/.test(i)||void 0))return"mobile";var o=t.arrangement.desktop;return e<(null!==(r=null!==(n=null==o?void 0:o.minWidth)&&void 0!==n?n:null==o?void 0:o.width)&&void 0!==r?r:1)?"mobile":"desktop"}n.d(t,"a",(function(){return r}))},436:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(4),o=n(135),a=n(302),u=n(82),s=n(50),c=n(13),l=n(33),d=n(222),f=n(223),p=function(e,t,n){if(t)return[Object(c.f)({opacity:1},e,!1),Object(c.e)(e,!1)];var i=Object(r.a)(Object(r.a)({},f.a),n);return[Object(c.f)(i,e,!1),Object(c.e)(e,!1),Object(c.g)(i,e)]},h=function(e){var t=e.element,n=e.store,c=Object(r.l)(e,["element","store"]),f=i.b.useCss(),h=n.getGroup(t.groupUid).elements,b=n.getGroup(t.groupUid),g=b.variableDefinitions||[];Object(u.a)(n,t,c.parentVariables,c.elementPath,c.editingMode);var v=i.b.useMemo((function(){return g.reduce((function(e,n){var i,o,a,u;return"string"===n.type?Object(r.a)(Object(r.a)({},e),((i={})[null!==(o=n.id)&&void 0!==o?o:n.name]=null!==(u=null===(a=t.parameters)||void 0===a?void 0:a[n.name])&&void 0!==u?u:n.defaultValue,i)):e}),{})}),[]),m=i.b.useMemo((function(){return{values:(e=v,t=c.parentVariables.values,new Proxy({},{get:function(n,r){var i;return null!==(i=e[r])&&void 0!==i?i:t[r]},set:function(n,r,i){return r in e?e[r]=i:t[r]=i,!0}})),definitions:Object(r.m)(Object(r.m)([],Object(r.k)(g),!1),Object(r.k)(c.parentVariables.definitions),!1)};var e,t}),[]),y=Object(s.a)(n,t.type,t.description),D=Object(o.d)(b);return i.b.jsx(l.a,Object(r.a)({},c,{element:t,type:"div",className:f.apply(void 0,Object(r.m)([],Object(r.k)(p(n,D,t.designs)),!1)),shouldClickThrough:!0,hasFullHeightChildren:!1,scrollOnStretchY:!0,elementProps:{"aria-labelledby":y,alt:t.description}}),i.b.jsx(a.a,null),i.b.jsx(d.a,{store:n,elements:h,parentVariables:m,baseProps:Object(r.a)(Object(r.a)({},c),{absolutePositionDisabled:!1})}))}},439:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(317),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.replace(/-/g,"").split("").map((function(e){return"abcdefghijklmnop"[parseInt(e,16)]})).join("")}var u=function(e,t){return Object(r.a)({key:"player-styles-".concat(t),stylisPlugins:[o,i.v],container:e})}},442:function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?c=s.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=u(f);l=!0;for(var t=c.length;t;){for(s=c,c=[];++d1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(u.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 D(e,t){var n=m(e,t),r=n.obj,i=n.k;if(r)return r[i]}function O(e,t,n){var r=D(e,n);return void 0!==r?r:D(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 C(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function x(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function A(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[u=r.slice(o,o+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(o+a).join(n);return c?A(s,c,n):void 0}i=i[r[o]]}return i}}var k=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(c.a)(t).call(this)),E&&h.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(u.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 u=D(this.data,a);return u||!o||"string"!=typeof n?u:A(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},u=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(u=e.split("."))[1]),this.addNamespaces(t);var s=D(this.data,u)||{};r?w(s,n,i):s=o({},s,n),y(this.data,u,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}(h),F={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}},B={},S=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(c.a)(t).call(this)),E&&h.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(u.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 u=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=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 h=n.nsSeparator||this.options.nsSeparator;return d+h+c}return c}var b=this.resolve(e,n),g=b&&b.res,v=b&&b.usedKey||c,m=b&&b.exactUsedKey||c,y=Object.prototype.toString.apply(g),D=["[object Number]","[object Function]","[object RegExp]"],O=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(w&&g&&C&&D.indexOf(y)<0&&("string"!=typeof O||"[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(c," (").concat(this.language,")' returned an object instead of string.");if(u){var j="[object Array]"===y,x=j?[]:{},E=j?m:v;for(var A in g)if(Object.prototype.hasOwnProperty.call(g,A)){var k="".concat(E).concat(u).concat(A);x[A]=this.translate(k,o({},n,{joinArrays:!1,ns:l})),x[A]===k&&(x[A]=g[A])}g=x}}else if(w&&"string"==typeof O&&"[object Array]"===y)(g=g.join(O))&&(g=this.extendTranslation(g,e,n,i));else{var F=!1,B=!1,S=void 0!==n.count&&"string"!=typeof n.count,_=t.hasDefaultValue(n),P=S?this.pluralResolver.getSuffix(f,n.count):"",T=n["defaultValue".concat(P)]||n.defaultValue;!this.isValidLookup(g)&&_&&(F=!0,g=T),this.isValidLookup(g)||(B=!0,g=c);var I=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,R=I&&B?void 0:g,N=_&&T!==g&&this.options.updateMissing;if(B||F||N){if(this.logger.log(N?"updateKey":"missingKey",f,d,c,N?T:g),u){var L=this.resolve(c,o({},n,{keySeparator:!1}));L&&L.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 V=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var M=0;M1&&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,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==u.count&&"string"!=typeof u.count,f=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!B["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(B["".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=c,p=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,c,n,e,u);else d&&(o=a.pluralResolver.getSuffix(n,u.count)),d&&f&&p.push(l+o),f&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),d&&p.push(l+=o);for(;s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{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}(h);function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}var P=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(u.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]=_(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]=_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=_(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}(),T=[{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}],I={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 R(){var e={};return T.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}var N=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=R()}return Object(u.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}(),L=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(u.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:x,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?C(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?C(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?C(t.nestingPrefix):t.nestingPrefixEscaped||C("$t("),this.nestingSuffix=t.nestingSuffix?C(t.nestingSuffix):t.nestingSuffixEscaped||C(")"),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,u,s=this,c=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=O(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,o({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),u=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(O(t,c,u),l,n,o({},r,t,{interpolationkey:u}))};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(u=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,++u>=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]:{},u=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,u)).replace(/'/g,'"');try{u=JSON.parse(i),t&&(u=o({},t,u))}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 u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],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(),c=d,l=!0}if((r=t(s.call(this,n[1].trim(),u),u))&&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=c.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 V=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(c.a)(t).call(this)),E&&h.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(u.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[u]=2:i.state[u]<0||(1===i.state[u]?a.indexOf(u)<0&&a.push(u):(i.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),o.indexOf(u)<0&&o.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:u,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,u,s,c,l,d;r=n.loaded,u=o,c=m(r,[i],Object),l=c.obj,d=c.k,l[d]=l[d]||[],s&&(l[d]=l[d].concat(u)),s||l[d].push(u),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(u,s){u&&s&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(u,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}(h);function z(){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 M(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 U(){}var $=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(c.a)(t).call(this)),E&&h.call(Object(l.a)(e)),e.options=M(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(u.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({},z(),this.options,M(t)),this.format=this.options.interpolation.format,n||(n=U),!this.options.isClone){this.modules.logger?p.init(r(this.modules.logger),this.options):p.init(null,this.options);var i=new P(this.options);this.store=new k(this.options.resources,this.options);var a=this.services;a.logger=p,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new N(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new L(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new V(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"!==u[0]&&(this.options.lng=u[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 c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=b(),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]:U,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 u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.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=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=U),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&&F.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=b();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 u;if("object"!==Object(r.a)(a)){for(var s=arguments.length,c=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 u=n.precheck(this,a);if(void 0!==u)return u}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=b();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=b();"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]:U,i=o({},this.options,n,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach((function(t){a[t]=e[t]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new S(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=0?t:0:t},h=function(e,t,n){return"middle"===e?t<0?-t:0:n},b=p(e.xType,e.leftOffset),g=h(e.xType,e.leftOffset,e.rightOffset),v=p(e.yType,e.topOffset),m=h(e.yType,e.topOffset,e.bottomOffset),y={x1:("middle"===e.xType?2:1)*b,x2:("middle"===e.xType?2:1)*g,y1:("middle"===e.yType?2:1)*v,y2:("middle"===e.yType?2:1)*m},D={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)},O=t.width,w=t.height,C=e.fitWithScaling?O/s:1,j=e.fitWithScaling?w/d:1,x=Math.min(1,C,j),E=Math.max(Math.min(O/x,c),s),A=Math.max(Math.min(w/x,f),d),k=D.x1+D.x2+E*x,F=D.y1+D.y2+A*x,B=Math.max(k-t.width,0),S=Math.max(F-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}},P=_(B),T=_(S),I={x1:P(D.x1,B),x2:P(D.x2,B),y1:T(D.y1,S),y2:T(D.y2,S)},R={x1:P(I.x1),x2:P(I.x2),y1:T(I.y1),y2:T(I.y2)};return{top:R.y1,bottom:R.y2,left:R.x1,right:R.x2,width:E,height:A,scaling:x,fitWithScaling:e.fitWithScaling,reserveSpaceInContainer:e.reserveSpaceInContainer,position:e.positionInPage?e.reserveSpaceInContainer?"relative":"absolute":"fixed",zIndex:e.zIndex,containerHeight:e.reserveSpaceInContainer?A*x:void 0,scrollX:!e.fitWithScaling&&E>O,scrollY:!e.fitWithScaling&&A>w,xAlignment:"start"===e.xType?"start":"middle"===e.xType?"center":"end",yAlignment:e.reserveSpaceInContainer||"start"===e.yType?"start":"middle"===e.yType?"center":"end"}}(O,v);return s.b.jsx(D,{isDesignMode:d,style:h(w)},s.b.jsx(D,{isDesignMode:d,innerRef:c,style:b(w)},O.fitWithScaling?e.children:s.b.jsx(D,{isDesignMode:d,style:y(w)},e.children)))},h=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:"fixed"===e.position?"none":"auto"}},b=function(e){return{minWidth:e.scrollX?"100%":e.width,width:0,height:e.scrollY?"100%":e.height,transform:e.fitWithScaling?"scale(".concat(e.scaling,")"):void 0,transformOrigin:m(e),position:e.reserveSpaceInContainer?"absolute":"relative",overflowX:e.scrollX?"scroll":void 0,overflowY:e.scrollY?"scroll":void 0,pointerEvents:"none"}},g={start:"top",center:"center",end:"bottom"},v={start:"left",center:"center",end:"right"},m=function(e){return"".concat(g[e.yAlignment]," ").concat(v[e.xAlignment])},y=function(e){return{minWidth:e.width,height:e.height,position:"relative",pointerEvents:"none"}},D=function(e){var t=s.b.useCss();return s.b.jsx("div",{style:e.isDesignMode?e.style:void 0,ref:e.innerRef,className:"".concat(t(e.style)," ").concat(e.className||"")},e.children)}},51:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return g}));var r=n(1),i=[];var o=function(e){var t=/([^\/]+):\/\/([^\:]*)(:[^\:]*)?@([^\/]+)(.*)\/([^\/]+)/.exec(e);if(!t)throw new Error("Invalid sentry DSN");return{protocol:t[1],publicKey:t[2],host:t[4],path:t[5],projectId:t[6]}}("https://524a55c7cb5f42b990f93fa2bf8f0c9e@sentry.int.giosg.com/46"),a=!1;function u(){a=!0,function(){var e,t,n=i.slice();i.splice(0,i.length);try{for(var o=Object(r.n)(n),a=o.next();!a.done;a=o.next()){s(a.value)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}()}function s(e){var t="".concat(o.protocol,"://").concat(o.host).concat(o.path),n="".concat(t,"/api/").concat(o.projectId,"/store/"),r=new XMLHttpRequest;r.open("POST",n,!0);var i="Sentry sentry_version=5,sentry_client=interaction-client,"+"sentry_timestamp=".concat(Math.floor((new Date).getTime()/1e3),",")+"sentry_key=".concat(o.publicKey);r.setRequestHeader("X-Sentry-Auth",i),r.setRequestHeader("Content-type","application/json");r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&r.status>=300&&setTimeout((function(){return s(e)}),3e4)},r.onerror=function(){setTimeout((function(){return s(e)}),3e4)},r.send(JSON.stringify(e))}function c(){return"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)}))}var l=void 0,d=void 0;function f(){var e,t;return l||(l=c().replace(/-/g,"").substring(16)),d||(d=(null===(e=window.giosg)||void 0===e?void 0:e.sessionUuid)?null===(t=window.giosg)||void 0===t?void 0:t.sessionUuid.replace(/-/g,""):c().replace(/-/g,"")),{trace_id:d,span_id:l}}function p(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);try{!function(e,t,n){var o,u;void 0===t&&(t={});void 0===n&&(n=[]);var l=e instanceof Error?e:new Error(e),d=t.id,p=t.organizationId,g=t.breadcrumbs,v=Object(r.l)(t,["id","organizationId","breadcrumbs"]),m="b76acd00-cf09-11e0-8104-00163ee6f85d"===p?"staging":"production",y=null===(o=window.giosg)||void 0===o?void 0:o.unpackedVisitorCid,D=(null==e?void 0:e.constructor.name)||"undefined",O="string"==typeof e?e:e instanceof Error?e.message:b(e),w=window.giosg?window.giosg.usedV2Loader?"v2":"v1":"no-giosg";console.warn("Got error ".concat(D," ").concat(O),l);var C={event_id:c().replace(/-/g,""),timestamp:(new Date).toISOString(),logger:"interaction",platform:"javascript",level:"error",release:"d36e9bd18d71e484215aaee62b10913d565cc945",environment:m,user:y?{id:y}:void 0,request:{url:window.location.href,headers:{Referer:document.referrer,"User-Agent":navigator.userAgent}},tags:{org_id:p,interaction_id:d,host:window.location.host,giosgscript:w},exception:{values:Object(r.m)(Object(r.m)([],Object(r.k)(n),!1),[{type:D,value:O,stacktrace:h(l)}],!1)},fingerprint:[(j=O,j.replace(/[\w\-_]{17,10000}|[\-+]?\d+/g,""))].concat(n.map((function(e){return e.type}))),contexts:{trace:f(),interaction:Object(r.a)({id:d,giosgscript:w,rooms:b((null===(u=window.giosg)||void 0===u?void 0:u.rooms)||[])},v)},breadcrumbs:(g||[]).slice(-100)};var j;a?s(C):i.push(C)}(e,t,n)}catch(e){}}function h(e){try{var t=e.stack||"";if(t.includes("file:"))return;var n=t.trim().split("\n"),i=n.length>1&&n[1].trim().startsWith("at");return{frames:(i?n.slice(1):n).map((function(e){try{if(i){if(l=/at (.*):(\d+):(\d+)\s*$/.exec(e)){var t=Object(r.k)(l,4),n=t[1],o=t[2],a=t[3];return{filename:n,function:"unknown",lineno:Number(o),colno:Number(a)}}var u=/at (.*)\((.*):(\d+):(\d+)\)\s*$/.exec(e);if(u){var s=Object(r.k)(u,5),c=s[1];n=s[2],o=s[3],a=s[4];return{filename:n,function:c.trim(),lineno:Number(o),colno:Number(a)}}}else{var l;if(l=/^(.*)@(.*):(\d+):(\d+)$/.exec(e)){var d=Object(r.k)(l,5);c=d[1],n=d[2],o=d[3],a=d[4];return{filename:n,function:c,lineno:Number(o),colno:Number(a)}}}}catch(e){}return{filename:"unknown",function:e,lineno:0,colno:0}}))}}catch(e){return}}function b(e){try{var t=JSON.stringify(e);return"string"==typeof t?t:String(e)}catch(e){return"(no serialization)"}}function g(e,t){throw void 0===t&&(t={}),p(e,t),e}},523:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),i=n(31),o=n(103),a=n(131),u=n(42),s=n(433),c=n(143),l=n(253),d=n(337),f=n(51),p=n(108);var h=function(){function e(e,t){var n=this;Object.defineProperty(this,"info",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"onStateUpdate",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cooldownKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"handleStorageEvent",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e.key!==n.cooldownKey&&e.key!==n.dataKey||n.onStateUpdate(n.getStateFromStorage())}});var r={dataPrefix:"GIOSG_INTERACTION_DATA_",cooldownPrefix:"GIOSG_INTERACTION_COOLDOWN_"},i=r.dataPrefix,o=r.cooldownPrefix,a="".concat(e.interactionUuid,"_").concat(e.publishedAt,"_").concat(1);this.cooldownKey=o+a,this.dataKey=i+a,this.onStateUpdate(this.getStateFromStorage()),window.addEventListener("storage",this.handleStorageEvent)}return Object.defineProperty(e.prototype,"destroy",{enumerable:!1,configurable:!0,writable:!0,value:function(){window.removeEventListener("storage",this.handleStorageEvent)}}),Object.defineProperty(e.prototype,"setState",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.shown,n=Object(r.l)(e,["shown"]);if(!t){var i=Date.now()+18e5;Object(p.a)("local").setItem(this.cooldownKey,i.toString())}Object(p.a)("session").setItem(this.dataKey,JSON.stringify(n))}}),Object.defineProperty(e.prototype,"getStateFromStorage",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e={},t=Object(p.a)("local").getItem(this.cooldownKey);if(t){var n=(parseInt(t,10)||0)0&&a.forEach((function(e){return o.push(Object(r.m)([n],Object(r.k)(e),!1))}))})),o}var a=this.searchParentElementByPathForCurrentView(t),u=this.findTargetPathsByUid(a,e);return u&&u.length>0?u.map((function(e){return Object(r.m)(Object(r.m)([],Object(r.k)(t.slice(0,-1)),!1),Object(r.k)(e),!1)})):[]}}),Object.defineProperty(e.prototype,"findTargetPathsByUid",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,i=function(e){return"group"===e.type?n.getGroup(e.groupUid).elements:"scrollable"===e.type?n.getGroup(e.groupElement.groupUid).elements:"elements"in e&&Array.isArray(e.elements)?e.elements:[]},o=function(e,n){return e.flatMap((function(e,a){var u=Object(r.m)(Object(r.m)([],Object(r.k)(n),!1),[a],!1),s=i(e),c=o(s,u);return Object(r.m)(Object(r.m)([],Object(r.k)(e.uid===t?[u]:[]),!1),Object(r.k)(c),!1)}))},a=i(e);return o(a,[])}}),Object.defineProperty(e.prototype,"getAllElements",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,n,i=this.data?this.data.project:this.interactionData,o=null!==(n=null===(t=i.groups)||void 0===t?void 0:t.flatMap((function(e){return e.elements})))&&void 0!==n?n:[],a=i.views.map((function(e){return Object(r.m)([e],Object(r.k)(e.elements),!1)}));return(e=[]).concat.apply(e,Object(r.m)(Object(r.m)([],Object(r.k)(a),!1),Object(r.k)(o),!1))}}),Object.defineProperty(e.prototype,"getGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(c.a)(e,this.data.project.groups,this.info.groups)}}),Object.defineProperty(e.prototype,"getVariableValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,r,i,o,a=this.data.fields[e];if(void 0!==a)return a;var s=Object(u.c)(e,t.definitions);if(s){var c=null!==(n=s.id)&&void 0!==n?n:s.name,l=t.values[c];return this.evaluateVariable(s,l,t)}var d=Object(u.c)(e,null!==(r=this.data.project.dataFields)&&void 0!==r?r:[]);if(d){var f=null!==(o=this.data.dataFields[null!==(i=d.id)&&void 0!==i?i:""])&&void 0!==o?o:this.data.dataFields[d.name];return this.evaluateVariable(d,f,t)}}}),Object.defineProperty(e.prototype,"evaluateVariable",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=this;return"expression"===e.type?Object(d.a)(Object(l.a)(e.value),{getVariable:function(e){return r.getVariableValue(e,n)}}):t}}),Object.defineProperty(e.prototype,"getElementVisibilityStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r,i,o,a;void 0===n&&(n="all");var u=null!==(r="mobile"===n?e.arrangement.mobile:e.arrangement.desktop)&&void 0!==r?r:e.arrangement.default,s=null===(i=this.data.elementVisibilityStates)||void 0===i?void 0:i.find((function(n){return JSON.stringify(n.targetPath)===JSON.stringify(t)&&n.targetUid===e.uid})),c=null===(o=this.data.elementVisibilityStates)||void 0===o?void 0:o.find((function(t){return t.targetUid===e.uid&&"*"===t.targetPath})),l=null!=s?s:c;return l?{isVisible:"hidden"!==l.hidden,isEnabled:l.isEnabled}:{isVisible:!("hidden"in e&&null!==(a=e.hidden)&&void 0!==a?a:u.hidden),isEnabled:!0}}}),Object.defineProperty(e.prototype,"setElementVisibilityStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i;void 0===r&&(r=!0),(i="*"===t?this.data.elementVisibilityStates.filter((function(t){return t.targetUid!==e})):this.data.elementVisibilityStates.filter((function(e){return JSON.stringify(e.targetPath)!==JSON.stringify(t)}))).push({targetPath:t,targetUid:e,hidden:n,isEnabled:r}),this.setData({elementVisibilityStates:i})}}),Object.defineProperty(e.prototype,"currentView",{get:function(){var e,t=this;return null!==(e=this.interactionData.views.filter((function(e){return e.uid===t.data.currentViewId}))[0])&&void 0!==e?e:this.interactionData.views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDestroyed",{get:function(){return this.destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destroy",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;this.destroyed||(this.destroyed=!0,null===(e=this.stateSynchronizer)||void 0===e||e.destroy(),this.notifyUpdateListeners(null))}}),Object.defineProperty(e.prototype,"notifyUpdateListeners",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.updateListeners.forEach((function(t){t(e)}))}}),Object.defineProperty(e.prototype,"addUpdateListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return this.updateListeners.push(e),function(){t.updateListeners=t.updateListeners.filter((function(t){return t!==e}))}}}),Object.defineProperty(e.prototype,"setData",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this.data=Object(r.a)(Object(r.a)({},this.data),e),this.pendingUpdates=Object(r.a)(Object(r.a)({},this.pendingUpdates),e),this.stateSynchronizer){var n=this.data,i=n.clicks,o=n.currentViewId,a=n.viewHistory,u=n.fields,s=n.shown,c=n.reportingSequenceUid,l=n.reportingSequenceNumber,d=n.reportingCustomSequenceNumber;this.stateSynchronizer.setState({clicks:i,currentViewId:o,viewHistory:a,fields:u,shown:s,reportingSequenceUid:c,reportingSequenceNumber:l,reportingCustomSequenceNumber:d})}this.updatePromise||(this.updatePromise=new Promise((function(e){window.setTimeout((function(){t.notifyUpdateListeners(t.pendingUpdates),t.pendingUpdates={},t.updatePromise=null,e()}),0)})))}}),Object.defineProperty(e.prototype,"getInteractionType",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(o.a)(this.data.project)}}),Object.defineProperty(e.prototype,"isInIframe",{get:function(){return this.getInteractionType()!==i.a.WebsiteNormal&&this.getInteractionType()!==i.a.Email},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInChatMessage",{get:function(){return[i.a.OperatorSendToVisitor,i.a.OperatorSendToGroup].includes(this.getInteractionType())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWebsiteInteraction",{get:function(){return this.getInteractionType()===i.a.WebsiteNormal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getActiveBreakpointForWidth",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(g.a)(e,this.currentView)}}),Object.defineProperty(e.prototype,"constructElementVariableStore",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=[],n=this;return Object.entries(this.data.fields).forEach((function(i){var o=Object(r.k)(i,1)[0],a=e.getElementByUid(o);a&&t.push({variableName:Object(u.e)(a),get value(){var e=n.data.fields[o];return Object(m.c)(a,e)},uid:o,name:a.name})})),t}}),e}()},53:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),i=n(20);function o(e,t){return function(n,o,a,u){return s=Object(r.a)(Object(r.a)(Object(r.a)({isWorkflowReportingEnabled:!1},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)}}),u),JSON.parse(JSON.stringify(s));var s}}},533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme=void 0;var r=n(113),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"},u={positive:"#F5FCFA",negative:"#FFF9FB",warning:"#FFFBED",neutral:"#F7F5FF"},s={positive:"#D8F6E8",negative:"#FFEEF3",warning:"#FFF5D2",neutral:"#E3DEFF"},c={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:u,BackgroundToneColorActive:s,ShadowToneColor:c,ShadowToneColorHover:l,StatusBadgeToneBackgroundColor:d,GraphColorFirstBright:"#FDB5E5",GraphColorFirstDark:"#D4A2E8",GraphColorSecondBright:"#C7B3FF",GraphColorSecondDark:"#A695FF",GraphColorThirdBright:"#AABBFF",GraphColorThirdDark:"#889CFF",GraphColorFourthBright:"#8FEAD4",GraphColorFourthDark:"#65DBC4"}}},534: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,u=0,s=0;r>=0&&r<1?(a=i,u=o):r>=1&&r<2?(a=o,u=i):r>=2&&r<3?(u=i,s=o):r>=3&&r<4?(u=o,s=i):r>=4&&r<5?(a=o,s=i):r>=5&&r<6&&(a=i,s=o);var c=n-i/2,l=a+c,d=u+c,f=s+c;return{red:Math.round(255*l),green:Math.round(255*d),blue:Math.round(255*f)}}},535: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),u=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=o-a,c=u>.5?s/(2-o-a):s/(o+a);switch(o){case n:t=(r-i)/s+(r3)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 V(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,C(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 C(n.__E=n)}catch(t){e=t}throw e}},i=function(e){return null!=e&&void 0===e.constructor},D.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),C(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},D.prototype.render=y,o=[],a=0,u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=d,l=0},556:function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},56:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return b}));var r=n(1),i=n(28),o=n(27);function a(e){var t,n,i,a,s=u(e.xType,null!==(t=e.leftOffset)&&void 0!==t?t:0,null!==(n=e.rightOffset)&&void 0!==n?n:0),c=u(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],maxWidth:e.width[1],minHeight:e.height[0],maxHeight:e.height[1],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,flowOffsetY:e.flowOffsetY,xPos:s,yPos:c,rotation:e.rotation,hidden:e.hidden})}function u(e,t,n){return("end"===e?-n:t)||0}function s(e,t,n,r,o){if("start"===e||"flow"===e||"stretch"===e)return r;if("middle"===e){var a=r;return Math.floor(t/2-n/2)+a}return"end"===e?t-n-o:Object(i.a)(e)}function c(e,t,n,r,o,a,u){if(a){if(void 0===u)throw new Error("fitWithScaling must be passed");if(u)return function(e,t,n,r,o){var a=Math.max(t-n,0);if("start"===e||"flow"===e||"stretch"===e)return f(r,0,a);if("middle"===e){var u=r;return f(s=Math.min(Math.floor(t/2-n/2),a/2)+u,0,a)}if("end"===e){var s=t-n-Math.max(0,o),c=t-n;return Math.min(f(s,0,a),c)}return Object(i.a)(e)}(e,t,n,r,o);var c=Math.max(t-n,0);return f(s(e,t,n,r,o),0,c)}return s(e,t,n,r,o)}function l(e,t,n,r,o,a){return o?"start"===e||"flow"===e||"stretch"===e?r:"middle"===e?r-Math.floor(t/2-n/2):"end"===e?void 0:Object(i.a)(e):a}function d(e,t,n,r,o,a,u,s){return!o&&a&&"stretch"===e?d(e,t,n,null!=u?u:0,!0,!0,void 0,void 0):o?"end"===e||"stretch"===e?Math.floor(t-(r+n)):"start"===e||"flow"===e||"middle"===e?void 0:Object(i.a)(e):s}function f(e,t,n){return Math.min(Math.max(e,t),n)}function p(e,t,n){var r,i,o,a,u=e.xType,s=e.yType,l="view"===e.type,d=null!==(r=e.leftOffset)&&void 0!==r?r:0,f=null!==(i=e.rightOffset)&&void 0!==i?i:0,p=null!==(o=e.topOffset)&&void 0!==o?o:0,b=null!==(a=e.bottomOffset)&&void 0!==a?a:0,g=h(e,t,!!n),v=g.width,m=g.height,y=g.scaling;return{x:c(u,t.width,v,d,f,l,n),y:c(s,t.height,m,p,b,l,n),width:"stretch"===u?t.width-Math.max(0,d)-Math.max(0,f):v,height:"stretch"===s?t.height-Math.max(0,p)-Math.max(0,b):m,scaling:y}}var h=function(e,t,n){return"view"===e.type?function(e,t,n){var i=t.width,o=t.height,a=Object(r.k)(e.width,2),u=a[0],s=a[1],c=Object(r.k)(e.height,2),l=c[0],d=c[1],p=n?Math.min(i/u,1):1,h=n?Math.min(o/l,1):1,b=Math.min(1,p,h);return{width:f(i/b,u,s)*b,height:f(o/b,l,d)*b,scaling:b}}(e,t,n):{width:e.width,height:e.height,scaling:1}};function b(e,t,n,i){void 0===i&&(i={x:!0,y:!0,width:!0,height:!0,fullScreen:!0});var o={leftOffset:l(e.xType,n.width,t.width,t.x,i.x,e.leftOffset),rightOffset:d(e.xType,n.width,t.width,t.x,i.x,i.width,e.leftOffset,e.rightOffset),topOffset:l(e.yType,n.height,t.height,t.y,i.y,e.topOffset),bottomOffset:d(e.yType,n.height,t.height,t.y,i.y,i.height,e.topOffset,e.bottomOffset),flowOffsetY:void 0,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 u=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 i.fullScreen?g(t,n,u,i):u}return Object(r.a)(Object(r.a)(Object(r.a)({},e),o),{width:t.width,height:t.height})}var g=function(e,t,n,i){var a=v(e,t),u=a.isFullHeight,s=a.isFullWidth,c=function(e){var t=Object(r.k)(e,2);return t[0]===t[1]},l=function(e){return[c(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)}:{}),u&&i.height?{yType:"start",topOffset:0,bottomOffset:void 0,height:l(n.height)}:{})},v=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}}},57:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return u}));var r=n(1);function i(e,t){return!e.data.invalidFields.some((function(e){return e===t}))}function o(e,t){var n=e.data.fields[t];return""===String(n).trim()||void 0===n}function a(e,t){e.setData({invalidFields:Object(r.m)(Object(r.m)([],Object(r.k)(e.data.invalidFields),!1),[t],!1)})}function u(e,t){e.setData({invalidFields:e.data.invalidFields.filter((function(e){return e!==t}))})}},59:function(e,t,n){"use strict";function r(e,t,n,r){var i;if(!t)return!1;if(!e.getElementVisibilityStatus(t,r,e.data.activeBreakpoint).isEnabled)return!1;if(e.data.jsApiEventListeners.find((function(e){return e.elementUid===(null==t?void 0:t.uid)})))return!0;var o=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===(i=null==t?void 0:t.clickEvents)||void 0===i?void 0:i.find((function(e){return e.actions.length>0||e.conditions.length>0})))||o}function i(e){var t=e.data.project.views.find((function(t){return t.uid===e.data.currentViewId}));return!!t&&(!!e.getElementVisibilityStatus(t,"*",e.data.activeBreakpoint).isEnabled&&(!!e.data.jsApiEventListeners.find((function(t){return t.elementUid===e.data.currentViewId}))||r(e,t,e.data.project.conditionalActions,"*")))}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},63: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 u}));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,HIDE_INTERACTION:28},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_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_HAS_WAITED_FOR_THE_FIRST_ANSWER:34,VISITOR_BELONGS_TO_AN_USER_EXPERIMENT_GROUP:35,AVERAGE_WAITING_TIME:37,GIOSG_EVENT_TRIGGERED:38,CALL_STATE:39,CUSTOM_SCHEDULE:40,VISITOR_ISP_NAME:41,CSS_SELECTOR_JS:42}),u=(Object.keys(a),"https://service.giosg.com/identity/authorize");Object.keys({NOT_AVAILABLE:0,DISABLED:1,ENABLED:2})},64:function(e,t,n){"use strict";n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return D})),n.d(t,"r",(function(){return O})),n.d(t,"s",(function(){return w})),n.d(t,"q",(function(){return C})),n.d(t,"d",(function(){return j})),n.d(t,"l",(function(){return x})),n.d(t,"c",(function(){return E})),n.d(t,"m",(function(){return A})),n.d(t,"g",(function(){return k})),n.d(t,"i",(function(){return F})),n.d(t,"n",(function(){return B})),n.d(t,"e",(function(){return S})),n.d(t,"j",(function(){return P})),n.d(t,"f",(function(){return T})),n.d(t,"b",(function(){return I})),n.d(t,"k",(function(){return R})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return L}));var r=n(1),i=n(28),o=n(139),a=n(42),u=n(253),s=n(337),c=n(245),l=n(51),d=n(108),f=n(208),p=n(99),h=n(67),b=n(301),g=n(119),v=function(e,t,n){var r=t.inputs,i={};return r.forEach((function(t){var r=t.variableId,o=t.workflowVariableName;i[o]=e.getVariableValue(r,n)})),i},m=n(40),y=function(e,t,n){return void 0===n&&(n=!0),Object(r.e)(void 0,void 0,void 0,(function(){var i,o,a,u,s,c,l,d,f;return Object(r.h)(this,(function(h){switch(h.label){case 0:return i=e.data,o=i.project,a=i.currentViewId,u=i.viewHistory,t?(s=o.views.find((function(e){return e.uid===t})))?(c=Object(r.m)([a],Object(r.k)(u),!1),[4,Object(p.a)({type:"interactiondesigner:changeview",interactionId:e.data.info.interactionUuid,from:e.data.currentViewId,to:t,viewHistory:c})]):[2]:[3,2];case 1:return h.sent(),e.setData({currentViewId:s.uid,viewHistory:c}),[3,4];case 2:return l=Object(r.k)(u),d=l[0],f=l.slice(1),d?[4,Object(p.a)({type:"interactiondesigner:changeview",interactionId:e.data.info.interactionUuid,from:e.data.currentViewId,to:d,viewHistory:f})]:[2];case 3:h.sent(),e.setData({currentViewId:d,viewHistory:f}),h.label=4;case 4:return e.isViewFocusedInitially=n,[2]}}))}))},D=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){switch(t.label){case 0:return[4,y(e,n)];case 1:return t.sent(),[2]}}))}))},O=function(e,t){var n=t.loadingViewId,i=t.successViewId,o=t.errorViewId,a=t.fileType,u=t.selectedVariable,s=t.selectedRoomId,c=t.allowMultiple;return Object(r.e)(void 0,void 0,void 0,(function(){var t,l,d,f;return Object(r.h)(this,(function(p){return(t=document.createElement("input")).setAttribute("type","file"),c&&t.setAttribute("multiple",""),document.body.appendChild(t),t.style.display="none",l=[],d=[],f=[],a&&(a.split(",").forEach((function(e){var t=e.trim();t.startsWith(".")?l.push(t.toLowerCase()):d.push(t.toLowerCase())})),f=Object(r.m)(Object(r.m)([],Object(r.k)(l),!1),Object(r.k)(d),!1),t.setAttribute("accept",f.join(","))),[2,new Promise((function(l,d){var p=null,h=!1,g=function(){null!==p&&(clearTimeout(p),p=null),window.removeEventListener("focus",m),t.remove()},v=function(){g(),d(b.a)},m=function(){h||(p=window.setTimeout((function(){v()}),300))};t.addEventListener("change",(function(){return Object(r.e)(void 0,void 0,void 0,(function(){var d,b,D,O,w,C,j,x,E,A,k,F,B,S,_,P,T,I,R,N,L,V,z,M,U,$,W;return Object(r.h)(this,(function(H){switch(H.label){case 0:return d=e.data,b=d.project,D=d.currentViewId,O=d.viewHistory,(w=t.files)&&0!==w.length?(h=!0,window.removeEventListener("focus",m),null!==p&&(clearTimeout(p),p=null),C=Array.from(w),a&&C.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!f.includes(r)&&!f.includes(i)})).length>0?(alert("This file format is invalid. Please choose following file formats: ".concat(f," ")),v(),[2]):(j=function(e,t,n,i,o){return Object(r.e)(void 0,void 0,void 0,(function(){var a,u,s,c,l,d;return Object(r.h)(this,(function(r){switch(r.label){case 0:return a="".concat(t,"/api/v5/orgs/").concat(n,"/encrypted_visitor_uploads"),(u=new FormData).append("upload",e),u.append("room_id",i),u.append("created_by_visitor_id",o),[4,fetch(a,{method:"POST",body:u})];case 1:return(s=r.sent()).ok?[3,3]:(c=Error.bind,d=(l="Upload request failed (".concat(s.status,"): ")).concat,[4,s.text()]);case 2:throw new(c.apply(Error,[void 0,d.apply(l,[r.sent()])]));case 3:return[4,s.json()];case 4:return[2,r.sent()]}}))}))},x=function(t,n,i,o){return Object(r.e)(void 0,void 0,void 0,(function(){var a,u,s,c,l;return Object(r.h)(this,(function(r){switch(r.label){case 0:return a="".concat(t,"/api/v5/orgs/").concat(n,"/encrypted_visitor_uploads/webhook"),[4,fetch(a,{method:"POST",body:JSON.stringify({chat_id:e.environment.getChatId(),upload_id:i,visitor_id:o,rooms:[]}),headers:{"Content-Type":"application/json"}})];case 1:return(u=r.sent()).ok?[3,3]:(s=Error.bind,l=(c="Upload webhook request failed (".concat(u.status,"): ")).concat,[4,u.text()]);case 2:throw new(s.apply(Error,[void 0,l.apply(c,[r.sent()])]));case 3:return[2]}}))}))},b.views.find((function(e){return e.uid===n}))&&e.setData({currentViewId:n,viewHistory:Object(r.m)([D],Object(r.k)(O),!1)}),E=[],A=!1,k=e.data.info.organizationUid,[4,e.environment.getUnpackedVisitorCid()])):(v(),[2]);case 1:if(F=H.sent(),B=e.data.info.api.interactionPlayerChatOrigin,!F)throw new Error("visitor_id is required for encrypted uploads!");S=function(t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(!(n=s||e.environment.getRoomId()))throw new Error("room_id is required for encrypted uploads!");return[4,j(t,B,k,n,F)];case 1:return[2,r.sent()]}}))}))},H.label=2;case 2:H.trys.push([2,11,12,13]),_=Object(r.n)(Array.from(w)),P=_.next(),H.label=3;case 3:if(P.done)return[3,10];T=P.value,H.label=4;case 4:return H.trys.push([4,8,,9]),[4,S(T)];case 5:return I=H.sent(),E.push({name:I.original_file_name,url:I.download_url}),u?[3,7]:[4,x(B,k,I.id,F)];case 6:H.sent(),H.label=7;case 7:return[3,9];case 8:return R=H.sent(),console.error("Error when uploading file",R),A=!0,[3,10];case 9:return P=_.next(),[3,3];case 10:return[3,13];case 11:return N=H.sent(),U={error:N},[3,13];case 12:try{P&&!P.done&&($=_.return)&&$.call(_)}finally{if(U)throw U.error}return[7];case 13:return u&&!A&&E.length>0&&(L=void 0,void 0!==c?(V=e.data.dataFields[u],z=Array.isArray(V)?V:[],L=Object(r.m)(Object(r.m)([],Object(r.k)(z),!1),Object(r.k)(E),!1)):L=E[0].url,e.setData({dataFields:Object(r.a)(Object(r.a)({},e.data.dataFields),(W={},W[u]=L,W))})),[4,new Promise((function(e){return setTimeout(e,500)}))];case 14:return H.sent(),(M=b.views.find((function(e){return e.uid===(A?o:i)})))&&y(e,M.uid),g(),l(),[2]}}))}))}),{once:!0}),t.click(),setTimeout((function(){window.addEventListener("focus",m)}),0)}))]}))}))},w=function(e,t,n,o){var a=t.targetUrl,u=t.urlType;return Object(r.e)(void 0,void 0,void 0,(function(){var t,n,s;return Object(r.h)(this,(function(r){switch(t=!Object(h.d)(a),n=Object(h.c)(a,t,(function(t){return e.getVariableValue(t,o)})),u){case"redirect":try{window.open(n,"_top")}catch(e){console.error("Invalid redirect action",e)}break;case"opentab":null===(s=window.open(n,"_blank","noopener,noreferrer"))||void 0===s||s.focus();break;case"get":return[2,Object(m.i)(e,n,void 0)];case"post":return[2,Object(m.i)(e,n,Object(g.a)(e))];default:Object(i.a)(u)}return[2]}))}))},C=function(e,t,n,o,a){var u=t.action,s=t.targetUid,c=t.localSearch;return void 0===a&&(a=[]),Object(r.e)(void 0,void 0,void 0,(function(){var t,n,o,l,d;return Object(r.h)(this,(function(r){if(!(t=s&&e.getElementByUid(s))||"view"===t.type)return[2];if(n=e.getTargetPaths(s,a,c),"hide"===u)o=!0;else if("show"===u)o=!1;else{if("toggle"!==u)return[2,Object(i.a)(u)];l=n.length>0?n[0]:[],d=e.getElementVisibilityStatus(t,l,e.data.activeBreakpoint).isVisible,o=d}return c?n.forEach((function(t){e.setElementVisibilityStatus(s,t,o?"hidden":"visible")})):e.setElementVisibilityStatus(s,"*",o?"hidden":"visible"),[2]}))}))},j=function(e,t,n,i,o){var a=t.action,u=t.targetUid,s=t.localSearch;return void 0===o&&(o=[]),Object(r.e)(void 0,void 0,void 0,(function(){var t,n;return Object(r.h)(this,(function(r){return u&&e.getElementByUid(u)?(t="enable"===a,n=e.getTargetPaths(u,o,s),s?n.forEach((function(n){e.setElementVisibilityStatus(u,n,"visible",t)})):e.setElementVisibilityStatus(u,"*","visible",t),[2]):[2]}))}))},x=function(e,t,n,i){var o=t.uid,a=t.async,u=t.javascriptCode;return Object(r.e)(void 0,void 0,void 0,(function(){var t,n,s;return Object(r.h)(this,(function(r){switch(r.label){case 0:return t=null!==(s=e.data.project.noUnsafeEvaluation)&&void 0!==s&&s,n=new c.a(e,i),[4,Object(f.b)(t,o,e.data.info.interactionUuid,a,u,n,e.elementVariableValues)];case 1:return r.sent(),[2]}}))}))},E=function(e,t){var n=t.delayMs;return new Promise((function(e){setTimeout(e,n)}))},A=function(e,t,n,i){var u=t.workflowId,s=t.successViewId,c=t.errorViewId,l=t.variablesMappingData;return Object(r.e)(void 0,void 0,void 0,(function(){var t,n,d,f,p,h,b,D,O,w,C,j,x,E,A,k,F,B,S,_;return Object(r.h)(this,(function(P){switch(P.label){case 0:return t=e.data,n=t.dataFields,d=t.clicks,u?[4,e.environment.getUnpackedVisitorCid()]:[2];case 1:return f=P.sent(),p=v(e,null!=l?l:o.a,i),h=p&&Object.keys(p).length>0,b=h?p:{formData:Object(g.b)(e,"variable name"),variables:Object(a.f)(e.data.project.dataFields,n),clicks:d,visitorId:f,userId:e.environment.getUserId(),chatId:e.environment.getChatId()},[4,fetch(e.environment.getWorkflowTriggerUrl(u),{method:"POST",body:JSON.stringify(b),headers:{"Content-Type":"application/json"}})];case 2:return[4,P.sent().json()];case 3:return D=P.sent(),[4,Object(m.g)(300)];case 4:return P.sent(),[4,fetch(e.environment.getWorkflowResultsUrl(D.execution_id),{method:"GET"})];case 5:return[4,P.sent().json()];case 6:O=P.sent(),P.label=7;case 7:return"running"!==O.status&&"created"!==O.status?[3,11]:[4,Object(m.g)(500)];case 8:return P.sent(),[4,fetch(e.environment.getWorkflowResultsUrl(D.execution_id),{method:"GET"})];case 9:return[4,P.sent().json()];case 10:return O=P.sent(),[3,7];case 11:if("finished"===O.status){if(w=Object(r.a)({},e.data.dataFields),C=null!=l?l:o.a,C.outputs.length>0){j=function(t,n){var i,o=C.outputs.find((function(e){return e.workflowVariableName===t}));if(o){var u=o.variableId,s=Object(a.c)(u,e.data.project.dataFields);s?w[null!==(_=s.id)&&void 0!==_?_:s.name]=n:e.setData({fields:Object(r.a)(Object(r.a)({},e.data.fields),(i={},i[u]=n,i))})}};try{for(x=Object(r.n)(Object.entries(O.data)),E=x.next();!E.done;E=x.next())A=Object(r.k)(E.value,2),k=A[0],F=A[1],j(k,F)}catch(e){B={error:e}}finally{try{E&&!E.done&&(S=x.return)&&S.call(x)}finally{if(B)throw B.error}}}else Object.keys(w).forEach((function(t){var n=Object(a.c)(t,e.data.project.dataFields),r=(null==n?void 0:n.name)||t;if(r&&void 0!==O.data[r]){var i=(null==n?void 0:n.id)||t;w[i]=O.data[r]}}));s&&y(e,s),e.setData({dataFields:w})}else c&&y(e,c);return[2]}}))}))},k=function(e,t){var n=t.url,i=t.leadForm,o=t.company,a=t.domain,u=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(m.a)(e,n,{data:Object(g.b)(e,"variable name"),lead_form:i,company:o,domain:a,room:u,page_url:window.location.href,page_title:document.title,cid:t.visitorCid,processor:null,completed:!0})]}))}))},F=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,u,s,c,l,d,f,p,h,b;return Object(r.h)(this,(function(v){if(t=Object(g.b)(e,"variable name"),n&&i){o=[],a=document.cookie.replace(/(?:(?:^|.*;\s*)hubspotutk\s*\=\s*([^;]*).*$)|^.*$/,"$1"),u=a.length>1?a:null;try{for(s=Object(r.n)(Object.entries(t)),c=s.next();!c.done;c=s.next())l=Object(r.k)(c.value,2),d=l[0],null!=(f=l[1])&&o.push({name:d,value:f})}catch(e){h={error:e}}finally{try{c&&!c.done&&(b=s.return)&&b.call(s)}finally{if(h)throw h.error}}return p={fields:o,context:{hutk:u,pageUri:document.location.href}},[2,Object(m.a)(e,"https://api.hsforms.com/submissions/v3/integration/submit/".concat(n,"/").concat(i),p)]}return[2]}))}))},B=function(e,t,n,i,a){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,u,s,c,l,d,f,p,b,g,m,y;return Object(r.h)(this,(function(D){switch(D.label){case 0:n=e.data.info,a=v(e,null!==(m=t.variablesMappingData)&&void 0!==m?m:o.a,i),u=[];try{for(s=Object(r.n)(t.sendEmailTo.split(/[,\s]+/)),c=s.next();!c.done;c=s.next())if(l=c.value)try{(d=Object(h.c)(l,!1,(function(t){return e.getVariableValue(t,i)})))&&u.push(d)}catch(e){if(e instanceof h.a||"InvalidVariableError"===(null===(y=e)||void 0===y?void 0:y.name))continue;throw e}}catch(e){b={error:e}}finally{try{c&&!c.done&&(g=s.return)&&g.call(s)}finally{if(b)throw b.error}}return f={interaction_uid:n.interactionUuid,variables:a,recipients:u},p=e.environment.getSendEmailUrl(t.uid),e.data.info.publishedAt?[4,fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})]:(console.info("Fetch request emulated. ".concat(p," | data:"),f),[2]);case 1:return D.sent(),[2]}}))}))},S=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(p.a)({type:"interactiondesigner:exit",interactionId:e.data.info.interactionUuid})];case 1:return t.sent(),Object(p.b)({type:"exit"}),e.setData({shown:!1}),[2]}}))}))};function _(e){return"widget-flag-".concat(e)}var P=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(d.a)("local").setItem(_(n),"true"):"unset"===o?Object(d.a)("local").removeItem(_(n)):Object(i.a)(o)),[2]}))}))},T=function(e,t,n){var i=t.uid;return Object(r.e)(void 0,void 0,void 0,(function(){var t,o,a,u,s,c,l,d;return Object(r.h)(this,(function(f){switch(f.label){case 0:return t=e.data,o=t.clicks,a=t.info,u=t.dataFields,[4,e.environment.getSessionId()];case 1:return s=f.sent(),[4,e.environment.getUnpackedVisitorCid()];case 2:return c=f.sent(),l={projectUid:a.projectUid,interactionId:a.interactionUuid,clickHistory:o,formdata:Object(g.b)(e,"element uid"),fieldsData:u,published:!!a.publishedAt,submitElementUid:n.uid,roomId:void 0,visitorId:c,sessionId:s,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(p.b)({type:"reply",text:Object(m.d)(Object(r.a)(Object(r.a)({},Object(g.b)(e,"element name")),{clicks:e.data.clicks.join(" -> ")})),value:""}),d="button"===n.type||"text"===n.type?n.label:void 0,[4,Object(p.a)({type:"interactiondesigner:formdata",interactionId:a.interactionUuid,elementId:n.uid,elementType:n.type,elementName:n.name,elementLabel:d,formData:Object(g.b)(e,"element name")})];case 3:return f.sent(),[2,Object(m.a)(e,e.environment.getFormDataUrl(),l)]}}))}))},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]}}))}))},R=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,u,s,c,d,f,p,h,b,v,y,D,O,w;return Object(r.h)(this,(function(C){switch(C.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."));u=Object(g.b)(e,"element name",{filterEmptyAndUndefined:!1}),s=Object.entries(u),c=function(e){return[!1,void 0,null,""].includes(e)},d=s.filter((function(e){var t=Object(r.k)(e,2)[1];return c(t)})),f=s.filter((function(e){var t=Object(r.k)(e,2)[1];return!c(t)})),p=Object.fromEntries(f);try{for(h=Object(r.n)(d),b=h.next();!b.done;b=h.next())v=Object(r.k)(b.value,1),y=v[0],a.api.visitor.remove(y)}catch(e){O={error:e}}finally{try{b&&!b.done&&(w=h.return)&&w.call(h)}finally{if(O)throw O.error}}return n?[4,a.api.room.join({id:n})]:[3,2];case 1:C.sent(),C.label=2;case 2:return D=n||Object(m.b)(e),a.api.visitor.submit(Object(r.a)(Object(r.a)({},p),{"Click events":t.join(" -> ")}),"plain",!1,{id:D}).catch((function(t){return Object(l.b)(t,{id:e.interactionId,organizationId:e.organizationId,breadcrumbs:e.sentryBreadcrumbs,variable:"Click events"})})),o.visitorCidDeferred?[3,4]:[4,o.openChatDialog(!1,D,!0)];case 3:C.sent(),C.label=4;case 4:return i?[4,o.showAutoSuggest(i.autosuggestMessage||"Hello, how could I help you?",D,i.autosuggestUserId)]:[3,6];case 5:C.sent(),C.label=6;case 6:return o.visitorCidDeferred&&o.showClient(!1,D,!0),[2]}}))}))},N=function(e,t,n,i){var o=t.name,c=t.value,l=t.expression;return Object(r.e)(void 0,void 0,void 0,(function(){var t,n,d,f;return Object(r.h)(this,(function(p){return o?(t=(null===(f=Object(a.c)(o,e.data.project.dataFields))||void 0===f?void 0:f.id)||o,n=l?String(Object(s.a)(Object(u.a)(l),{getVariable:function(t){return e.getVariableValue(t,i)}})):null!=c?c:"",e.setData({dataFields:Object(r.a)(Object(r.a)({},e.data.dataFields),(d={},d[t]=n,d))}),[2]):[2]}))}))},L=function(e,t,n,i){var o=t.name,a=t.value,u=t.roomId;return Object(r.e)(void 0,void 0,void 0,(function(){var t,n,s,c;return Object(r.h)(this,(function(r){switch(r.label){case 0:if(!(null==(t=e.environment.getGiosg())?void 0:t.api))return[2];n=Object(h.c)(a,!1,(function(t){return e.getVariableValue(t,i)})),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,t.api.visitor.submit((c={},c[o]=n,c),void 0,void 0,u?{id:u}:void 0)];case 2:return r.sent(),[3,4];case 3:throw s=r.sent(),Object(l.b)(s,{id:e.interactionId,organizationId:e.organizationId,breadcrumbs:e.sentryBreadcrumbs,variable:o}),s;case 4:return[2]}}))}))}},67:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n(1),i=function(e){return/^\${[^\${}]*?}$/.test(e)},o=function(e){function t(t,n){var r=e.call(this,t)||this;return Object.defineProperty(r,"variable",{enumerable:!0,configurable:!0,writable:!0,value:n}),r.name="InvalidVariableError",r}return Object(r.g)(t,e),t}(Error),a=function(e){function t(t){var n=e.call(this,t)||this;return n.name="UnexpectedCharacterError",n}return Object(r.g)(t,e),t}(Error),u=function(e){for(var t=0,n=[],r=function(e){var t=n[n.length-1];"text"===(null==t?void 0:t.type)?t.text+=e:n.push({type:"text",text:e})};t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(742),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(144))},742:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,u,s=1,c={},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(){h(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){h(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(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),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;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var a=/[&<>"']/,u=new RegExp(a.source,"g"),s=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,c=new RegExp(s.source,"g"),l={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return l[e]};function f(e,t){if(t){if(a.test(e))return e.replace(u,d)}else if(s.test(e))return e.replace(c,d);return e}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(p,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var b=/(^|[^\[])\^/g;function g(e,t){e="string"==typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(b,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(e,t,n){if(e){var r;try{r=decodeURIComponent(h(n)).replace(v,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){D[" "+e]||(O.test(e)?D[" "+e]=e+"/":D[" "+e]=E(e,"/",!0));var n=-1===(e=D[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(w,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(C,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var D={},O=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/,j={exec:function(){}};function x(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function k(e,t,n,r){var i=t.href,o=t.title?f(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var u={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,u}return{type:"image",raw:n,href:i,title:o,text:f(a)}}var F=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:E(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=E(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,u,s,c,l,d,f,p,h=t[1].trim(),b=h.length>1,g={type:"list",raw:"",ordered:b,start:b?+h.slice(0,-1):"",loose:!1,items:[]};h=b?"\\d{1,9}\\"+h.slice(-1):"\\"+h,this.options.pedantic&&(h=b?h:"[*+-]");for(var v=new RegExp("^( {0,3}"+h+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),l=e.split("\n",1)[0],this.options.pedantic?(o=2,f=c.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,f=c.slice(o),o+=t[1].length),u=!1,!c&&/^ *$/.test(l)&&(n+=l+"\n",e=e.substring(l.length+1),p=!0),!p)for(var m=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),D=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),O=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");e&&(l=d=e.split("\n",1)[0],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!D.test(l))&&!O.test(l)&&!m.test(l)&&!y.test(e);){if(l.search(/[^ ]/)>=o||!l.trim())f+="\n"+l.slice(o);else{if(u)break;if(c.search(/[^ ]/)>=4)break;if(D.test(c))break;if(O.test(c))break;if(y.test(c))break;f+="\n"+l}u||l.trim()||(u=!0),n+=d+"\n",e=e.substring(d.length+1),c=l.slice(o)}g.loose||(s?g.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f))&&(i="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:f}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=f.trimRight(),g.raw=g.raw.trimRight();var w=g.items.length;for(a=0;a0&&C.some((function(e){return/\n.*\n/.test(e.raw)}));g.loose=j}if(g.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:x(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,u=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):f(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=E(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],u="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);s&&(a=s[1],u=s[3])}else u=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),k(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:u?u.replace(this.rules.inline._escapes,"$1"):u},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return k(n,r,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,u=r[0].length-1,s=u,c=0,l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+u);null!=(r=l.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=o.length,r[3]||r[4])s+=a;else if(!((r[5]||r[6])&&u%3)||(u+a)%3){if(!((s-=a)>0)){a=Math.min(a,a+s+c);var d=e.slice(0,u+r.index+(r[0].length-o.length)+a);if(Math.min(u,a)%2){var f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else c+=a}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=f(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},n.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=f(this.options.mangle?t(i[1]):i[1])):n=f(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=f(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=f(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.inlineText=function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):f(r[0]):r[0]:f(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},t}(),B={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:j,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};B.def=g(B.def).replace("label",B._label).replace("title",B._title).getRegex(),B.bullet=/(?:[*+-]|\d{1,9}[.)])/,B.listItemStart=g(/^( *)(bull) */).replace("bull",B.bullet).getRegex(),B.list=g(B.list).replace(/bull/g,B.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+B.def.source+")").getRegex(),B._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",B._comment=/|$)/,B.html=g(B.html,"i").replace("comment",B._comment).replace("tag",B._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),B.paragraph=g(B._paragraph).replace("hr",B.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",B._tag).getRegex(),B.blockquote=g(B.blockquote).replace("paragraph",B.paragraph).getRegex(),B.normal=n({},B),B.gfm=n({},B.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),B.gfm.table=g(B.gfm.table).replace("hr",B.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",B._tag).getRegex(),B.gfm.paragraph=g(B._paragraph).replace("hr",B.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",B.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",B._tag).getRegex(),B.pedantic=n({},B.normal,{html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",B._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:j,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(B.normal._paragraph).replace("hr",B.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",B.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var S={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:j,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:j,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}S._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",S.punctuation=g(S.punctuation).replace(/punctuation/g,S._punctuation).getRegex(),S.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,S.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,S._comment=g(B._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),S.emStrong.lDelim=g(S.emStrong.lDelim).replace(/punct/g,S._punctuation).getRegex(),S.emStrong.rDelimAst=g(S.emStrong.rDelimAst,"g").replace(/punct/g,S._punctuation).getRegex(),S.emStrong.rDelimUnd=g(S.emStrong.rDelimUnd,"g").replace(/punct/g,S._punctuation).getRegex(),S._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,S._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,S._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,S.autolink=g(S.autolink).replace("scheme",S._scheme).replace("email",S._email).getRegex(),S._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,S.tag=g(S.tag).replace("comment",S._comment).replace("attribute",S._attribute).getRegex(),S._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,S._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,S._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,S.link=g(S.link).replace("label",S._label).replace("href",S._href).replace("title",S._title).getRegex(),S.reflink=g(S.reflink).replace("label",S._label).replace("ref",B._label).getRegex(),S.nolink=g(S.nolink).replace("ref",B._label).getRegex(),S.reflinkSearch=g(S.reflinkSearch,"g").replace("reflink",S.reflink).replace("nolink",S.nolink).getRegex(),S.normal=n({},S),S.pedantic=n({},S.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",S._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",S._label).getRegex()}),S.gfm=n({},S.normal,{escape:g(S.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;a.options.extensions.startBlock.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}return this.state.top=!0,t},a.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},a.inlineTokens=function(e,t){var n,r,i,o=this;void 0===t&&(t=[]);var a,u,s,c=e;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+A("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,a.index)+"["+A("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(s=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(n=r.call({lexer:o},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,P))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,P))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;o.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(i,_))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),u=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(n.raw.length),t.push(n);return t},r=n,o=[{key:"rules",get:function(){return{block:B,inline:S}}}],(i=null)&&t(r.prototype,i),o&&t(r,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(),I=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:f(e,!0))+"
\n":"
"+(n?e:f(e,!0))+"
\n"},n.blockquote=function(e){return"
\n"+e+"
\n"},n.html=function(e){return e},n.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},n.hr=function(){return this.options.xhtml?"
\n":"
\n"},n.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},n.listitem=function(e){return"
  • "+e+"
  • \n"},n.checkbox=function(e){return" "},n.paragraph=function(e){return"

    "+e+"

    \n"},n.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},n.tablerow=function(e){return"\n"+e+"\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},n.strong=function(e){return""+e+""},n.em=function(e){return""+e+""},n.codespan=function(e){return""+e+""},n.br=function(){return this.options.xhtml?"
    ":"
    "},n.del=function(e){return""+e+""},n.link=function(e,t,n){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},n.image=function(e,t,n){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},n.text=function(e){return e},t}(),R=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),N=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),L=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new I,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new R,this.slugger=new N}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var n=t.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,u,s,c,l,d,f,p,b,g,v,m,y,D,O,w="",C=e.length;for(n=0;n0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=D+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=D+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:D}):g+=D),g+=this.parse(v.tokens,b),l+=this.renderer.listitem(g,y,m);w+=this.renderer.list(l,f,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(l=d.tokens?this.parseInline(d.tokens):d.text;n+1";return t?Promise.resolve(i):n?void n(null,i):i}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((i=n({},M.defaults,a)).silent,i.async,o);if(null==r)return u(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),o){var s,c=i.highlight;try{i.hooks&&(r=i.hooks.preprocess(r)),s=e(r,i)}catch(e){return u(e)}var l=function(e){var n;if(!e)try{i.walkTokens&&M.walkTokens(s,i.walkTokens),n=t(s,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(t){e=t}return i.highlight=c,e?u(e):o(null,n)};if(!c||c.length<3)return l();if(delete i.highlight,!s.length)return l();var d=0;return M.walkTokens(s,(function(e){"code"===e.type&&(d++,setTimeout((function(){c(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--d&&l()}))}),0))})),void(0===d&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then((function(t){return e(t,i)})).then((function(e){return i.walkTokens?Promise.all(M.walkTokens(e,i.walkTokens)).then((function(){return e})):e})).then((function(e){return t(e,i)})).then((function(e){return i.hooks?i.hooks.postprocess(e):e})).catch(u);try{i.hooks&&(r=i.hooks.preprocess(r));var p=e(r,i);i.walkTokens&&M.walkTokens(p,i.walkTokens);var h=t(p,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(e){return u(e)}}}function M(e,t,n){return z(T.lex,L.parse)(e,t,n)}V.passThroughHooks=new Set(["preprocess","postprocess"]),M.options=M.setOptions=function(t){var r;return M.defaults=n({},M.defaults,t),r=M.defaults,e.defaults=r,M},M.getDefaults=o,M.defaults=e.defaults,M.use=function(){for(var e=M.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,r=new Array(t),i=0;i * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,"a",(function(){return i}))},79:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));var r="undefined"!=typeof document;function i(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o=function(e,t,n){var i=e.key+"-"+t.name;(!1===n||!1===r&&void 0!==e.compat)&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},a=function(e,t,n){o(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a="",u=t;do{var s=e.insert(t===u?"."+i:"",u,e.sheet,!0);r||void 0===s||(a+=s),u=u.next}while(void 0!==u);if(!r&&0!==a.length)return a}}},82:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i=n(43),o=function(e,t,n,o,a){Object(r.e)((function(){var r,u=null===(r=t.clickEvents)||void 0===r?void 0:r.some((function(e){return e.conditions.some((function(e){return"elementShown"===e.type}))}));!a&&u&&Object(i.a)(e,t,{elementUid:t.uid,type:"shown"},n,o)}),[e,t])}},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(47),o=n(141),a=n(53),u=n(101),s=Object(a.a)((function(e){var t;return{type:"button",hasCustomName:!1,get richText(){return Object(o.c)(i.a.t("designStep.elementsDefaults.ButtonLabel"),null!=e?e:u.a)},designs:Object(r.a)(Object(r.a)(Object(r.a)({},u.a),e),{paddingsNew:null!==(t=null==e?void 0:e.paddingsNew)&&void 0!==t?t:u.a.paddingsNew})}}),{width:100,height:60})},90:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},91:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(230);function i(e,t){for(var n=0;n=t.__.length&&t.__.push({}),t.__[e]}function p(e){return h(k,e)}function h(e,t,n){var o=f(r++);return o.__c||(o.__c=i,o.__=[n?n(t):k(void 0,t),function(t){var n=e(o.__[0],t);o.__[0]!==n&&(o.__[0]=n,o.__c.setState({}))}]),o.__}function b(e,t){var n=f(r++);A(n.__H,t)&&(n.__=e,n.__H=t,i.__H.__h.push(n))}function g(e,t){var n=f(r++);A(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 A(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function D(e,t){return y((function(){return e}),t)}function O(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 C(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 j(){u.some((function(e){if(e.__P)try{e.__H.__h.forEach(x),e.__H.__h.forEach(E),e.__H.__h=[]}catch(t){return a.options.__e(t,e.__v),!0}})),u=[]}function x(e){e.t&&e.t()}function E(e){var t=e.__();"function"==typeof t&&(e.t=t)}function A(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function k(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(x),i.__H.__h.forEach(E),i.__H.__h=[])},a.options.diffed=function(e){c&&c(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==u.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))})(j))}},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(x),e.__h=e.__h.filter((function(e){return!e.__||E(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)}}}},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r={animationIterationCount:1,aspectRatio: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,scale: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},i=n(282),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},c=Object(i.a)((function(e){return u(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===r[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)f={name:a.name,styles:a.styles,next:f},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=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)+s,styles:i,next:f}}},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),i=n(223),o=n(29),a=Object(r.a)((function(e){return{type:"group",designs:null!=e?e:i.a,groupUid:o.n}}),{width:200,height:250})},99:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(1);function i(e){if(window.parent&&window.parent!==window.self&&window.parent.postMessage){var t="EXTERNAL_ATTACHMENT#"+JSON.stringify(e);console.info("Sending iframe message to parent:",t),window.parent.postMessage(t,"*")}}function o(e){return Object(r.e)(this,void 0,void 0,(function(){return Object(r.h)(this,(function(t){return[2,new Promise((function(t){if(window.onGiosgInteractionEvent){if("function"!=typeof window.onGiosgInteractionEvent)return console.error("window.onGiosgInteractionEvent is not a function. No event was sent."),void t();var n=window.onGiosgInteractionEvent(e);if(!(n&&n instanceof Promise))return console.error("window.onGiosgInteractionEvent is not returning a promise. Event was sent but could get lost."),void t();n.then(t).catch((function(){console.error("window.onGiosgInterctionEvent returned a promise that rejected. We will continue as if nothing happened."),t()}))}else t()}))]}))}))}}});