25 lines
253 KiB
JavaScript
Executable File
25 lines
253 KiB
JavaScript
Executable File
!function(){"use strict";function N(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var i=n[o];if(null!=i)for(var a=Object.keys(Object(i)),s=0,u=a.length;s<u;s++){var c=a[s],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(r[c]=i[c])}}return r}function P(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})}({assign:N,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:N})}}).polyfill();var R=setTimeout;function U(e){return Boolean(e&&void 0!==e.length)}function H(){}function i(e){if(!(this instanceof i))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=[],q(e,this)}function F(n,r){for(;3===n._state;)n=n._value;0===n._state?n._deferreds.push(r):(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null===t)(1===n._state?z:V)(r.promise,n._value);else{try{e=t(n._value)}catch(e){return void V(r.promise,e)}z(r.promise,e)}}))}function z(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void W(t);if("function"==typeof n)return void q((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,W(t)}catch(e){V(t,e)}var r,o}function V(e,t){e._state=2,e._value=t,W(e)}function W(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)F(e,e._deferreds[t]);e._deferreds=null}function G(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function q(e,t){var n=!1;try{e(function(e){n||(n=!0,z(t,e))},function(e){n||(n=!0,V(t,e))})}catch(e){if(n)return;n=!0,V(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(H);return F(this,new G(e,t,n)),n},i.prototype.finally=P,i.all=function(t){return new i(function(o,i){if(!U(t))return i(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return o([]);var s=a.length;for(var e=0;e<a.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}a[n]=e,0==--s&&o(a)}catch(e){i(e)}}(e,a[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){if(!U(o))return t(new TypeError("Promise.race accepts an array"));for(var n=0,r=o.length;n<r;n++)i.resolve(o[n]).then(e,t)})},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){R(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var e=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in e?e.Promise.prototype.finally||(e.Promise.prototype.finally=P):e.Promise=i;var X=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var Y=function(u){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[u?a:++r];if(!1===t(o[s],s,o))break}return e}}();var Z=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function K(e,t){return e(t={exports:{}},t.exports),t.exports}var $="object"==typeof M&&M&&M.Object===Object&&M,e="object"==typeof self&&self&&self.Object===Object&&self,o=$||e||Function("return this")(),e=o.Symbol,t=Object.prototype,Q=t.hasOwnProperty,J=t.toString,ee=e?e.toStringTag:void 0;var te=function(e){var t=Q.call(e,ee),n=e[ee];try{var r=!(e[ee]=void 0)}catch(e){}var o=J.call(e);return r&&(t?e[ee]=n:delete e[ee]),o},ne=Object.prototype.toString;var re=function(e){return ne.call(e)},oe=e?e.toStringTag:void 0;var ie=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(oe&&oe in Object(e)?te:re)(e)};var a=function(e){return null!=e&&"object"==typeof e};var t=function(e){return a(e)&&"[object Arguments]"==ie(e)},n=Object.prototype,ae=n.hasOwnProperty,se=n.propertyIsEnumerable,ue=t(function(){return arguments}())?t:function(e){return a(e)&&ae.call(e,"callee")&&!se.call(e,"callee")},p=Array.isArray;function ce(){return!1}var le=K(function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?o.Buffer:void 0,t=n?n.isBuffer:void 0;e.exports=t||ce}),fe=/^(?:0|[1-9]\d*)$/;var de=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&fe.test(e))&&-1<e&&e%1==0&&e<t};var he=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991},r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;function pe(e){return a(e)&&he(e.length)&&!!r[ie(e)]}var _e=function(t){return function(e){return t(e)}},n=K(function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,r=n&&n.exports===t&&$.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=t}),t=n&&n.isTypedArray,ge=t?_e(t):pe,ve=Object.prototype.hasOwnProperty;var me=function(e,t){var n,r=p(e),o=!r&&ue(e),i=!r&&!o&&le(e),a=!r&&!o&&!i&&ge(e),s=r||o||i||a,u=s?Z(e.length,String):[],c=u.length;for(n in e)!t&&!ve.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||de(n,c))||u.push(n);return u},ye=Object.prototype;var be=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ye)};var t=function(t,n){return function(e){return t(n(e))}},we=t(Object.keys,Object),xe=Object.prototype.hasOwnProperty;var Ce=function(e){if(!be(e))return we(e);var t,n=[];for(t in Object(e))xe.call(e,t)&&"constructor"!=t&&n.push(t);return n};var m=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Te=function(e){return!!m(e)&&("[object Function]"==(e=ie(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)};var s=function(e){return null!=e&&he(e.length)&&!Te(e)};var Ee=function(e){return(s(e)?me:Ce)(e)};var Ae=function(i,a){return function(e,t){if(null==e)return e;if(!s(e))return i(e,t);for(var n=e.length,r=a?n:-1,o=Object(e);(a?r--:++r<n)&&!1!==t(o[r],r,o););return e}}(function(e,t){return e&&Y(e,t,Ee)});function Se(e){return e}var Me=function(e){return"function"==typeof e?e:Se};var ke=function(e,t){return(p(e)?X:Ae)(e,Me(t))};var Oe=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==ie(e)},Ie=/^\s+|\s+$/g,Be=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,je=/^0o[0-7]+$/i,De=parseInt;var Ne=function(e){if("number"==typeof e)return e;if(Oe(e))return NaN;if(m(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=m(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var t=Le.test(e);return t||je.test(e)?De(e.slice(2),t?2:8):Be.test(e)?NaN:+e};var Pe=function(e){return e?(e=Ne(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Re=function(e){var t=(e=Pe(e))%1;return e==e?t?e-t:e:0};var Ue=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Re(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}};var w,He,Fe,ze,Ve,We=function(e){return Ue(2,e)},Ge={},qe=[],Xe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function Ze(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,o,i,a=arguments,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(3<arguments.length)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Ke(e,s,r,o,null)}function Ke(e,t,n,r,o){e={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o};return null==o&&(e.__v=e),null!=w.vnode&&w.vnode(e),e}function $e(e){return e.children}function Qe(e,t){this.props=e,this.context=t}function Je(e,t){if(null==t)return e.__?Je(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Je(e):null}function et(e){(!e.__d&&(e.__d=!0)&&Fe.push(e)&&!tt.__r++||Ve!==w.debounceRendering)&&((Ve=w.debounceRendering)||ze)(tt)}function tt(){for(var e;tt.__r=Fe.length;)e=Fe.sort(function(e,t){return e.__v.__b-t.__v.__b}),Fe=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=(e=e).__v).__e,(i=e.__P)&&(t=[],n=ut(i,r,(n=Ye({},r)).__v=n,e.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?Je(r):o,r.__h),ct(t,r),n!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)))})}function nt(e,t,n,r,o,i,a,s,u,c){var l,f,d,h,p,_,g,v=r&&r.__k||qe,m=v.length;for(u==Ge&&(u=null!=a?a[0]:m?Je(r,0):null),n.__k=[],l=0;l<t.length;l++)if(null!=(h=n.__k[l]=null==(h=t[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h?Ke(null,h,null,null,h):Array.isArray(h)?Ke($e,{children:h},null,null,null):null!=h.__e||null!=h.__c?Ke(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=v[l])||d&&h.key==d.key&&h.type===d.type)v[l]=void 0;else for(f=0;f<m;f++){if((d=v[f])&&h.key==d.key&&h.type===d.type){v[f]=void 0;break}d=null}p=ut(e,h,d=d||Ge,o,i,a,s,u,c),(f=h.ref)&&d.ref!=f&&(g=g||[],d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||p,h)),null!=p?(null==_&&(_=p),u=rt(e,h,d,v,a,p,u),c||"option"!=n.type?"function"==typeof n.type&&(n.__d=u):e.value=""):u&&d.__e==u&&u.parentNode!=e&&(u=Je(d))}if(n.__e=_,null!=a&&"function"!=typeof n.type)for(l=a.length;l--;)null!=a[l]&&Ze(a[l]);for(l=m;l--;)null!=v[l]&&ft(v[l],v[l]);if(g)for(l=0;l<g.length;l++)lt(g[l],g[++l],g[++l])}function rt(e,t,n,r,o,i,a){var s,u,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(o==n||i!=a||null==i.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(i),s=null;else{for(u=a,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==i)break e;e.insertBefore(i,a),s=a}return void 0!==s?s:i.nextSibling}function ot(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Xe.test(t)?n:n+"px"}function it(e,t,n,r,o){var i,a;if("style"===(t=o&&"className"==t?"class":t))if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ot(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ot(e.style,t,n[t])}else"o"===t[0]&&"n"===t[1]?(i=t!==(t=t.replace(/Capture$/,"")),t=(t=(a=t.toLowerCase())in e?a:t).slice(2),e.l||(e.l={}),a=i?st:at,(e.l[t+i]=n)?r||e.addEventListener(t,a,i):e.removeEventListener(t,a,i)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function at(e){this.l[e.type+!1](w.event?w.event(e):e)}function st(e){this.l[e.type+!0](w.event?w.event(e):e)}function ut(e,t,n,r,o,i,a,s,u){var c,l,f,d,h,p,_,g,v,m,y,b=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=w.__b)&&c(t);try{e:if("function"==typeof b){if(g=t.props,v=(c=b.contextType)&&r[c.__c],m=c?v?v.props.value:c.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in b&&b.prototype.render?t.__c=l=new b(g,m):(t.__c=l=new Qe(g,m),l.constructor=b,l.render=dt),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=m,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=b.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=Ye({},l.__s)),Ye(l.__s,b.getDerivedStateFromProps(g,l.__s))),d=l.props,h=l.state,f)null==b.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==b.getDerivedStateFromProps&&g!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,m),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,m)||t.__v===n.__v){l.props=g,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),(l.__v=t).__e=n.__e,t.__k=n.__k,l.__h.length&&a.push(l),function e(t,n,r){for(var o,i=0;i<t.__k.length;i++)(o=t.__k[i])&&(o.__=t,o.__e&&("function"==typeof o.type&&1<o.__k.length&&e(o,n,r),n=rt(r,o,o,t.__k,null,o.__e,n),"function"==typeof t.type&&(t.__d=n)))}(t,s,e);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,m),null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(d,h,p)})}l.context=m,l.props=g,l.state=l.__s,(c=w.__r)&&c(t),l.__d=!1,l.__v=t,l.__P=e,c=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=Ye(Ye({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(p=l.getSnapshotBeforeUpdate(d,h)),y=null!=c&&c.type==$e&&null==c.key?c.props.children:c,nt(e,Array.isArray(y)?y:[y],t,n,r,o,i,a,s,u),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),_&&(l.__E=l.__=null),l.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s){var u,c,l,f,d,h=n.props,p=t.props;if(o="svg"===t.type||o,null!=i)for(u=0;u<i.length;u++)if(null!=(c=i[u])&&((null===t.type?3===c.nodeType:c.localName===t.type)||e==c)){e=c,i[u]=null;break}if(null==e){if(null===t.type)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,p.is&&{is:p.is}),i=null,s=!1}if(null===t.type)h===p||s&&e.data===p||(e.data=p);else{if(null!=i&&(i=qe.slice.call(e.childNodes)),l=(h=n.props||Ge).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!s){if(null!=i)for(h={},d=0;d<e.attributes.length;d++)h[e.attributes[d].name]=e.attributes[d].value;!f&&!l||f&&(l&&f.__html==l.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||"")}(function(e,t,n,r,o){for(var i in n)"children"===i||"key"===i||i in t||it(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||it(e,i,t[i],n[i],r)})(e,p,h,o,s),f?t.__k=[]:(u=t.props.children,nt(e,Array.isArray(u)?u:[u],t,n,r,"foreignObject"!==t.type&&o,i,a,Ge,s)),s||("value"in p&&void 0!==(u=p.value)&&(u!==e.value||"progress"===t.type&&!u)&&it(e,"value",u,h.value,!1),"checked"in p&&void 0!==(u=p.checked)&&u!==e.checked&&it(e,"checked",u,h.checked,!1))}return e}(n.__e,t,n,r,o,i,a,u);(c=w.diffed)&&c(t)}catch(e){t.__v=null,!u&&null==i||(t.__e=s,t.__h=!!u,i[i.indexOf(s)]=null),w.__e(e,t,n)}return t.__e}function ct(e,t){w.__c&&w.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){w.__e(e,t.__v)}})}function lt(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){w.__e(e,n)}}function ft(e,t,n){var r,o,i;if(w.unmount&&w.unmount(e),!(r=e.ref)||r.current&&r.current!==e.__e||lt(r,null,t),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){w.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ft(r[i],t,n);null!=o&&Ze(o)}function dt(e,t,n){return this.constructor(e,n)}function ht(e,t,n){var r,o,i;w.__&&w.__(e,t),o=(r=n===mt)?null:n&&n.__k||t.__k,e=b($e,null,[e]),i=[],ut(t,(!r&&n||t).__k=e,o||Ge,Ge,void 0!==t.ownerSVGElement,n&&!r?[n]:!o&&t.childNodes.length?qe.slice.call(t.childNodes):null,i,n||Ge,r),ct(i,e)}function pt(e,r){e={__c:r="__cC"+yt++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e,n,t){return this.getChildContext||(n=[],((t={})[r]=this).getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(et)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return e.Provider.__=e.Consumer.contextType=e}w={__e:function(e,t){for(var n,r,o,i=t.__h;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return t.__h=i,n.__E=n}catch(t){e=t}throw e}},He=function(e){return null!=e&&void 0===e.constructor},Qe.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ye({},this.state);(e="function"==typeof e?e(Ye({},n),this.props):e)&&Ye(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),et(this))},Qe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),et(this))},Qe.prototype.render=$e,Fe=[],ze="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0;var _t,gt,vt,mt=Ge,yt=0,bt=Object.freeze({__proto__:null,render:ht,hydrate:function(e,t){ht(e,t,mt)},createElement:b,h:b,Fragment:$e,createRef:function(){return{current:null}},get isValidElement(){return He},Component:Qe,cloneElement:function(e,t,n){var r,o,i,a=arguments,s=Ye({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(3<arguments.length)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);return null!=n&&(s.children=n),Ke(e.type,s,r||e.key,o||e.ref,null)},createContext:pt,toChildArray:function t(e,n){return n=n||[],null!=e&&"boolean"!=typeof e&&(Array.isArray(e)?e.some(function(e){t(e,n)}):n.push(e)),n},__u:ft,get options(){return w}}),u=K(function(e,t){var l=bt;function f(e,t){for(var n in t)e[n]=t[n];return e}function n(e){this.getChildContext=function(){return{store:e.store}}}n.prototype.render=function(e){return e.children&&e.children[0]||e.children},t.connect=function(u,c){var r;return"function"!=typeof u&&("string"==typeof(r=u||{})&&(r=r.split(/\s*,\s*/)),u=function(e){for(var t={},n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}),function(s){function e(r,e){function t(){var e,t,n=u(i?i.getState():{},r);for(e in n)if(n[e]!==a[e])return a=n,o.setState({});for(t in a)if(!(t in n))return a=n,o.setState({})}var o=this,i=e.store,a=u(i?i.getState():{},r),n=c?function(e,t){var n,r={};for(n in e="function"==typeof e?e(t):e)r[n]=t.action(e[n]);return r}(c,i):{store:i};this.componentWillReceiveProps=function(e){r=e,t()},this.componentDidMount=function(){i.subscribe(t)},this.componentWillUnmount=function(){i.unsubscribe(t)},this.render=function(e){return l.h(s,f(f(f({},n),e),a))}}return(e.prototype=new l.Component).constructor=e}},t.Provider=n}),wt=u.connect,xt=u.Provider,Ct=0,Tt=[],Et=w.__r,At=w.diffed,St=w.__c,Mt=w.unmount;function kt(e,t){w.__h&&w.__h(gt,e,Ct||t),Ct=0;t=gt.__H||(gt.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Ot(e){return Ct=1,t=Rt,e=e,(r=kt(_t++,2)).t=t,r.__c||(r.__=[n?n(e):Rt(void 0,e),function(e){e=r.t(r.__[0],e);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=gt),r.__;var t,n,r}function It(e,t){var n=kt(_t++,3);!w.__s&&Pt(n.__H,t)&&(n.__=e,n.__H=t,gt.__H.__h.push(n))}function Bt(e,t){var n=kt(_t++,7);return Pt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Lt(){Tt.some(function(t){if(t.__P)try{t.__H.__h.forEach(Dt),t.__H.__h.forEach(Nt),t.__H.__h=[]}catch(e){return t.__H.__h=[],w.__e(e,t.__v),!0}}),Tt=[]}w.__r=function(e){Et&&Et(e),_t=0;e=(gt=e.__c).__H;e&&(e.__h.forEach(Dt),e.__h.forEach(Nt),e.__h=[])},w.diffed=function(e){At&&At(e);e=e.__c;e&&e.__H&&e.__H.__h.length&&(1!==Tt.push(e)&&vt===w.requestAnimationFrame||((vt=w.requestAnimationFrame)||function(e){function t(){clearTimeout(r),jt&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);jt&&(n=requestAnimationFrame(t))})(Lt))},w.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Dt),t.__h=t.__h.filter(function(e){return!e.__||Nt(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],w.__e(e,t.__v)}}),St&&St(e,n)},w.unmount=function(e){Mt&&Mt(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Dt)}catch(e){w.__e(e,t.__v)}};var jt="function"==typeof requestAnimationFrame;function Dt(e){"function"==typeof e.u&&e.u()}function Nt(e){e.u=e.__()}function Pt(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Rt(e,t){return"function"==typeof t?t(e):t}function c(e,t){var n,r,t=(t=void 0===t?{}:t).insertAt;e&&"undefined"!=typeof document&&(n=document.head||document.getElementsByTagName("head")[0],(r=document.createElement("style")).type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)))}c("/* http://meyerweb.com/eric/tools/css/reset/\n v5.0.1 | 20191019\n License: none (public domain)\n*/\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, menu, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmain, menu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, main, menu, nav, section {\n\tdisplay: block;\n}\n/* HTML5 hidden-attribute fix for newer browsers */\n*[hidden] {\n display: none;\n}\nbody {\n\tline-height: 1;\n}\nmenu, ol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n"),c("@font-face {\n font-family: 'Roboto';\n src: url('/fonts/Roboto-Regular.woff2');\n src: url('/fonts/Roboto-Regular.woff2') format('woff2'),\n url('/fonts/Roboto-Regular.woff') format('woff'),\n url('/fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'Roboto';\n src: url('/fonts/Roboto-Medium.woff2');\n src: url('/fonts/Roboto-Medium.woff2') format('woff2'), url('/fonts/Roboto-Medium.woff') format('woff'),\n url('/fonts/Roboto-Medium.eot?#iefix') format('embedded-opentype');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n}\n");function Ut(){return Ht.promo}c("html, body {\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n}\n\nbody * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n outline: none;\n}\n\ninput, textarea {\n -webkit-user-select: initial;\n -moz-user-select: initial;\n -ms-user-select: initial;\n user-select: initial;\n font-style: normal;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n}\n\nbody {\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-style: normal;\n color: #313942;\n}\n\nbutton:active {\n transform: translateY(1px);\n}\n\n#app {\n display: flex;\n flex-direction: column;\n height: 100%;\n}");var Ht={gso:"",forms:"",button:"",promo:""};var Ft=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var zt=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};function Vt(e){return e!=e}var Wt=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var Gt=function(e,t,n){return t==t?Wt(e,t,n):zt(e,Vt,n)};var qt=function(e){return"string"==typeof e||!p(e)&&a(e)&&"[object String]"==ie(e)};var Xt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var Yt=function(t,e){return Xt(e,function(e){return t[e]})};var Zt=function(e){return null==e?[]:Yt(e,Ee(e))},Kt=Math.max;var $t=function(e,t,n,r){return e=s(e)?e:Zt(e),n=n&&!r?Re(n):0,r=e.length,n<0&&(n=Kt(r+n,0)),qt(e)?n<=r&&-1<e.indexOf(t,n):!!r&&-1<Gt(e,t,n)};var Qt=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)};var Jt=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},en=Math.max;var tn=function(i,a,s){return a=en(void 0===a?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=en(e.length-a,0),r=Array(n);++t<n;)r[t]=e[a+t];for(var t=-1,o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=s(r),Jt(i,this,o)}};var nn=function(e){return function(){return e}},u=o["__core-js_shared__"],rn=(u=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var on=function(e){return!!rn&&rn in e},an=Function.prototype.toString;var sn=function(e){if(null!=e){try{return an.call(e)}catch(e){}try{return e+""}catch(e){}}return""},un=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,u=u.toString,l=l.hasOwnProperty,cn=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ln=function(e){return!(!m(e)||on(e))&&(Te(e)?cn:un).test(sn(e))};var fn=function(e,t){return null==e?void 0:e[t]};var dn=function(e,t){return e=fn(e,t),ln(e)?e:void 0},hn=function(){try{var e=dn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=Date.now;var _n=function(n){var r=0,o=0;return function(){var e=pn(),t=16-(e-o);if(o=e,0<t){if(800<=++r)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}(hn?function(e,t){return hn(e,"toString",{configurable:!0,enumerable:!1,value:nn(t),writable:!0})}:Se);var gn=function(e,t){return _n(tn(e,t,Se),e+"")},vn=gn(function(e,t){return Qt(e,1,t)}),x=K(function(e){function s(){for(var e=arguments,t=[],n=0;n<arguments.length;n++){var r=e[n];if(r){var o=typeof r;if("string"==o||"number"==o)t.push(r);else if(Array.isArray(r)&&r.length){var i=s.apply(null,r);i&&t.push(i)}else if("object"==o)for(var a in r)u.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/var u;u={}.hasOwnProperty,e.exports?e.exports=s.default=s:window.classNames=s});function mn(){return!!_("AMO_LIVECHAT_UUID")}function yn(){return _("AMO_LIVECHAT_USE_NAME")}var bn=function(e){return void 0===e},_=function(e){return bn(window[e])?null:window[e]},wn=0,xn=1,Cn=3,Tn=-1,En="closed",An="opened-fully",Sn=["picture","video","document"],Mn="welcomeMessageTempId";var kn=function(e,t,n){"__proto__"==t&&hn?hn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var On=function(e,t){return e===t||e!=e&&t!=t},In=Object.prototype.hasOwnProperty;var Bn=function(e,t,n){var r=e[t];In.call(e,t)&&On(r,n)&&(void 0!==n||t in e)||kn(e,t,n)};var Ln=function(e,t,n,r){for(var o=!n,i=(n=n||{},-1),a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),(o?kn:Bn)(n,s,u)}return n};var jn=function(e,t,n){if(!m(n))return!1;var r=typeof t;return!!("number"==r?s(n)&&de(t,n.length):"string"==r&&t in n)&&On(n[t],e)};var Dn,u=function(s){return gn(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:void 0,i=2<r?t[2]:void 0,o=3<s.length&&"function"==typeof o?(r--,o):void 0;for(i&&jn(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&s(e,a,n,o)}return e})},Nn=Object.prototype.hasOwnProperty,f=u(function(e,t){if(be(t)||s(t))Ln(t,Ee(t),e);else for(var n in t)Nn.call(t,n)&&Bn(e,n,t[n])}),l=(Dn="AMO_LIVECHAT_IFRAME",{subscribeToBus:function(n){function e(e){try{var t=JSON.parse(e.data);t.origin===_(Dn)&&n(t)}catch(e){throw new Error(e)}}return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}},sendBusMessage:function(e){window.parent.postMessage(JSON.stringify(m(e)?f({},e,{origin:_(Dn)}):e),"*")}}),Pn=l.subscribeToBus,d=l.sendBusMessage;function Rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Un(e,r){var o=!0;return Ae(e,function(e,t,n){return o=!!r(e,t,n)}),o}var Hn=function(e,t){for(var n=e.length;n--;)if(On(e[n][0],t))return n;return-1},Fn=Array.prototype.splice;function zn(e){var t=this.__data__;return!((e=Hn(t,e))<0)&&(e==t.length-1?t.pop():Fn.call(t,e,1),--this.size,!0)}function Vn(e){var t=this.__data__;return(e=Hn(t,e))<0?void 0:t[e][1]}function Wn(e){return-1<Hn(this.__data__,e)}function Gn(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=zn,qn.prototype.get=Vn,qn.prototype.has=Wn,qn.prototype.set=Gn;var Xn=qn;function Yn(){this.__data__=new Xn,this.size=0}function Zn(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e}function Kn(e){return this.__data__.get(e)}function $n(e){return this.__data__.has(e)}var Qn=dn(o,"Map"),Jn=dn(Object,"create");function er(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e}var tr=Object.prototype.hasOwnProperty;function nr(e){var t,n=this.__data__;return Jn?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:tr.call(n,e)?n[e]:void 0}var rr=Object.prototype.hasOwnProperty;function or(e){var t=this.__data__;return Jn?void 0!==t[e]:rr.call(t,e)}function ir(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jn&&void 0===t?"__lodash_hash_undefined__":t,this}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ar.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},ar.prototype.delete=er,ar.prototype.get=nr,ar.prototype.has=or,ar.prototype.set=ir;var sr=ar;var ur=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var cr=function(e,t){return e=e.__data__,ur(t)?e["string"==typeof t?"string":"hash"]:e.map};function lr(e){return e=cr(this,e).delete(e),this.size-=e?1:0,e}function fr(e){return cr(this,e).get(e)}function dr(e){return cr(this,e).has(e)}function hr(e,t){var n=cr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function pr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(Qn||Xn),string:new sr}},pr.prototype.delete=lr,pr.prototype.get=fr,pr.prototype.has=dr,pr.prototype.set=hr;var _r=pr;function gr(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!Qn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _r(r)}return n.set(e,t),this.size=n.size,this}function vr(e){e=this.__data__=new Xn(e);this.size=e.size}vr.prototype.clear=Yn,vr.prototype.delete=Zn,vr.prototype.get=Kn,vr.prototype.has=$n,vr.prototype.set=gr;var mr=vr;function yr(e){return this.__data__.has(e)}function br(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _r;++t<n;)this.add(e[t])}br.prototype.add=br.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},br.prototype.has=yr;var wr=br;var xr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Cr=function(e,t){return e.has(t)};var Tr=function(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&s<u))return!1;if((u=i.get(e))&&i.get(t))return u==t;var c=-1,l=!0,f=2&n?new wr:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var d,h=e[c],p=t[c];if(void 0!==(d=r?a?r(p,h,c,t,e,i):r(h,p,c,e,t,i):d)){if(d)continue;l=!1;break}if(f){if(!xr(t,function(e,t){if(!Cr(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){l=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){l=!1;break}}return i.delete(e),i.delete(t),l},Er=o.Uint8Array;function Ar(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function Sr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var l=e?e.prototype:void 0,Mr=l?l.valueOf:void 0;var kr=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return e.byteLength==t.byteLength&&i(new Er(e),new Er(t))?!0:!1;case"[object Boolean]":case"[object Date]":case"[object Number]":return On(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ar;case"[object Set]":s=s||Sr;if(e.size!=t.size&&!(1&r))return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);u=Tr(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Mr)return Mr.call(e)==Mr.call(t)}return!1};var Or=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var Ir=function(e,t,n){return t=t(e),p(e)?t:Or(t,n(e))};var Br=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};function Lr(){return[]}var jr=Object.prototype.propertyIsEnumerable,Dr=Object.getOwnPropertySymbols,Nr=Dr?function(t){return null==t?[]:(t=Object(t),Br(Dr(t),function(e){return jr.call(t,e)}))}:Lr;var Pr=function(e){return Ir(e,Ee,Nr)},Rr=Object.prototype.hasOwnProperty;var Ur=function(e,t,n,r,o,i){var a=1&n,s=Pr(e),u=s.length;if(u!=Pr(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:Rr.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;for(var d,h=!0,p=(i.set(e,t),i.set(t,e),a);++c<u;){var _,g=e[l=s[c]],v=t[l];if(!(void 0===(_=r?a?r(v,g,l,t,e,i):r(g,v,l,e,t,i):_)?g===v||o(g,v,n,r,i):_)){h=!1;break}p=p||"constructor"==l}return h&&!p&&(f=e.constructor)!=(d=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof f&&f instanceof f&&"function"==typeof d&&d instanceof d)&&(h=!1),i.delete(e),i.delete(t),h},l=dn(o,"DataView"),h=dn(o,"Promise"),g=dn(o,"Set"),v=dn(o,"WeakMap"),Hr="[object Map]",Fr="[object Promise]",zr="[object Set]",Vr="[object WeakMap]",Wr="[object DataView]",Gr=sn(l),qr=sn(Qn),Xr=sn(h),Yr=sn(g),Zr=sn(v),y=ie,Kr=y=l&&y(new l(new ArrayBuffer(1)))!=Wr||Qn&&y(new Qn)!=Hr||h&&y(h.resolve())!=Fr||g&&y(new g)!=zr||v&&y(new v)!=Vr?function(e){var t=ie(e),e="[object Object]"==t?e.constructor:void 0,e=e?sn(e):"";if(e)switch(e){case Gr:return Wr;case qr:return Hr;case Xr:return Fr;case Yr:return zr;case Zr:return Vr}return t}:y,$r="[object Arguments]",Qr="[object Array]",Jr="[object Object]",eo=Object.prototype.hasOwnProperty;var to=function(e,t,n,r,o,i){var a=p(e),s=p(t),u=a?Qr:Kr(e),s=s?Qr:Kr(t),c=(u=u==$r?Jr:u)==Jr,l=(s=s==$r?Jr:s)==Jr;if((s=u==s)&&le(e)){if(!le(t))return!1;c=!(a=!0)}if(s&&!c)return i=i||new mr,a||ge(e)?Tr(e,t,n,r,o,i):kr(e,t,u,n,r,o,i);if(!(1&n)){a=c&&eo.call(e,"__wrapped__"),u=l&&eo.call(t,"__wrapped__");if(a||u)return o(a?e.value():e,u?t.value():t,n,r,i=i||new mr)}return!!s&&(i=i||new mr,Ur(e,t,n,r,o,i))};var no=function e(t,n,r,o,i){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:to(t,n,r,o,e,i))};var ro=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=n[o])[0],c=e[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var f,d=new mr;if(!(void 0===(f=r?r(c,l,u,e,t,d):f)?no(l,c,3,r,d):f))return!1}}return!0};var oo=function(e){return e==e&&!m(e)};var io=function(e){for(var t=Ee(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,oo(o)]}return t};var ao=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}};var so=function(t){var n=io(t);return 1==n.length&&n[0][2]?ao(n[0][0],n[0][1]):function(e){return e===t||ro(e,t,n)}},uo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,co=/^\w*$/;var lo=function(e,t){if(p(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Oe(e))||(co.test(e)||!uo.test(e)||null!=t&&e in Object(t))};function fo(r,o){if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");function i(){var e=arguments,t=o?o.apply(this,e):e[0],n=i.cache;return n.has(t)?n.get(t):(e=r.apply(this,e),i.cache=n.set(t,e)||n,e)}return i.cache=new(fo.Cache||_r),i}fo.Cache=_r;var ho=fo;var po=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_o=/\\(\\)?/g,go=function(e){var t=(e=ho(e,function(e){return 500===t.size&&t.clear(),e})).cache;return e}(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(po,function(e,t,n,r){o.push(n?r.replace(_o,"$1"):t||e)}),o}),l=e?e.prototype:void 0,vo=l?l.toString:void 0;var mo=function e(t){if("string"==typeof t)return t;if(p(t))return Xt(t,e)+"";if(Oe(t))return vo?vo.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var yo=function(e){return null==e?"":mo(e)};var bo=function(e,t){return p(e)?e:lo(e,t)?[e]:go(yo(e))};var wo=function(e){if("string"==typeof e||Oe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var xo=function(e,t){for(var n=0,r=(t=bo(t,e)).length;null!=e&&n<r;)e=e[wo(t[n++])];return n&&n==r?e:void 0};var C=function(e,t,n){return void 0===(e=null==e?void 0:xo(e,t))?n:e};function Co(e,t){return null!=e&&t in Object(e)}var To=function(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=wo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&he(o)&&de(a,o)&&(p(e)||ue(e))};var Eo=function(e,t){return null!=e&&To(e,t,Co)};var Ao=function(n,r){return lo(n)&&oo(r)?ao(wo(n),r):function(e){var t=C(e,n);return void 0===t&&t===r?Eo(e,n):no(r,t,3)}};var So=function(t){return function(e){return null==e?void 0:e[t]}};var Mo=function(t){return function(e){return xo(e,t)}};var ko=function(e){return lo(e)?So(wo(e)):Mo(e)};var T=function(e){return"function"==typeof e?e:null==e?Se:"object"==typeof e?p(e)?Ao(e[0],e[1]):so(e):ko(e)};var Oo=function(e,t,n){var r=p(e)?Rn:Un;return n&&jn(e,t,n)&&(t=void 0),r(e,T(t))},Io=Object.prototype.hasOwnProperty;var Bo=function(e){if(null==e)return!0;if(s(e)&&(p(e)||"string"==typeof e||"function"==typeof e.splice||le(e)||ge(e)||ue(e)))return!e.length;var t,n=Kr(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(be(e))return!Ce(e).length;for(t in e)if(Io.call(e,t))return!1;return!0};var Lo=function(e,r){var o=-1,i=s(e)?Array(e.length):[];return Ae(e,function(e,t,n){i[++o]=r(e,t,n)}),i};var jo=function(e,t){return(p(e)?Xt:Lo)(e,T(t))};function Do(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function No(e,r,o,i,t){return t(e,function(e,t,n){o=i?(i=!1,e):r(o,e,t,n)}),o}var Po=function(e,t,n){var r=p(e)?Do:No,o=arguments.length<3;return r(e,T(t),n,o,Ae)};var Ro=function(){var e=arguments,t=yo(e[0]);return e.length<3?t:t.replace(e[1],e[2])};var Uo=function(e,t,n){for(var r=-1,o=e.length,i=((n=o<n?o:n)<0&&(n+=o),o=n<(t=t<0?o<-t?0:o+t:t)?0:n-t>>>0,t>>>=0,Array(o));++r<o;)i[r]=e[r+t];return i};var Ho=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&r<=n?e:Uo(e,t,n)},Fo=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var zo=function(e){return Fo.test(e)};function Vo(e){return a(e)&&"[object RegExp]"==ie(e)}var h=n&&n.isRegExp,Wo=h?_e(h):Vo;var Go=function(e){return e.split("")},g="\\ud800-\\udfff",v="["+g+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",l="\\ud83c[\\udffb-\\udfff]",h="[^"+g+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",qo="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Yo="[\\ufe0e\\ufe0f]?",Yo=Yo+Xo+("(?:\\u200d(?:"+[h,g,qo].join("|")+")"+Yo+Xo+")*"),Xo="(?:"+[h+y+"?",y,g,qo,v].join("|")+")",Zo=RegExp(l+"(?="+l+")|"+Xo+Yo,"g");var Ko=function(e){return e.match(Zo)||[]};var $o=function(e){return(zo(e)?Ko:Go)(e)};var Qo=function(e,t,n){return n&&"number"!=typeof n&&jn(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!Wo(t))&&!(t=mo(t))&&zo(e)?Ho($o(e),0,n):e.split(t,n):[]};var Jo=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=t<=e?e:t)),e};var ei=function(e,t,n){return e=yo(e),n=null==n?0:Jo(Re(n),0,e.length),t=mo(t),e.slice(n,n+t.length)==t};var ti=function(e){return yo(e).toUpperCase()};var ni=function(e,t){for(var n=e.length;n--&&-1<Gt(t,e[n],0););return n};var ri=function(e,t){for(var n=-1,r=e.length;++n<r&&-1<Gt(t,e[n],0););return n},oi=/^\s+|\s+$/g;function ii(e,t){var n,r={};return(e=ai(Ro(e,/((,?\s?)({{[.a-z\_]+}})(,?\s?))/g,function(e,t,n,r,o){var i=ui(r,"");return(i=!i&&si[r]&&_(si[r])?_(si[r]).name:i)?""+n+i+o:n&&o?$t(""+n+o,",")?", ":" ":""})))&&(r.text=ti(e.charAt(0))+e.slice(1)),t.length&&(n=m(t[0]),r.keyboard={inline:jo(t,function(e){return n?e:{text:e}})}),(e||t.length)&&(r.type="text"),r}var ai=function(e,t,n){return(e=yo(e))&&(n||void 0===t)?e.replace(oi,""):e&&(t=mo(t))?(n=$o(e),e=$o(t),t=ri(n,e),e=ni(n,e)+1,Ho(n,t,e).join("")):e},si={"{{contact.name}}":"AMO_LIVECHAT_CONTACT","{{lead.responsible}}":"AMO_LIVECHAT_LEAD_RESPONSIBLE"},ui=function(e,t){void 0===e&&(e=""),void 0===t&&(t=null);var n,r=_("AMO_LIVECHAT_GREETING_BOT_PARAMS");return ei(e,"{{bot_params.")?(n=Ro(e,/^{+([^{}]+)}+$/,"$1"),C(r,Qo(n,".")[1])):null===t?e:t},ci=function(e){return Oo(e,function(e){var t=ui(e.term1),n=ui(e.term2);if(void 0===t||void 0===n)return!1;switch(e.operation){case"!=":return t!==n;case"contains":return $t(t,n);default:return t===n}})},li=function(n,r){return Po(r[n].question,function(e,t){if(Bo(e))switch(t.handler){case"conditions":ci(t.params.conditions)&&C(t,"params.result.0.params.step")&&f(e,li(t.params.result[0].params.step,r));break;case"goto":f(e,li(t.params.step,r));break;default:f(e,t,{step:n})}return e},{})};function fi(){var e=_("AMO_LIVECHAT_GREETING_BOT")||{},t=_("AMO_LIVECHAT_GREETING_BUTTONS")||[],n=_("AMO_LIVECHAT_GREETING")||"";if(Bo(e))return ii(n,t);n=li(0,e);return Bo(n)?n:f(ii(n.params.value,Zt(n.params.buttons)||[]),{step:parseInt(n.step,10)})}var di={avatar:"styles_avatar__3Qxhp",avatar_img:"styles_avatar_img__3Ccvc"};function hi(e){var t,n=e.url,r=e.name,e=(void 0===r&&(r=""),e.className);return b("div",{className:x(((t={})[di.avatar]=!0,t[e]=!bn(e),t)),title:r},b("div",{className:di.avatar_img,style:{backgroundImage:"url("+n+")"}}))}c("\n.styles_avatar__3Qxhp {\n width: 40px;\n height: 40px;\n background-color: #fff;\n padding: 2px;\n border-radius: 30px;\n box-shadow: 1px 6px 13px rgba(0, 0, 0, 0.2), 0px 2px 5px rgba(0, 0, 0, 0.1);\n}\n.styles_avatar_img__3Ccvc {\n border-radius: 30px;\n width: 100%;\n height: 100%;\n background-size: cover;\n}");function pi(e){return b("svg",Object.assign({},{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 41.999 41.999"},e),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36.068 20.176l-29-20C6.761-0.035 6.363-0.057 6.035 0.114C5.706 0.287 5.5 0.627 5.5 0.999v40 c0 0.372 0.206 0.713 0.535 0.886c0.146 0.076 0.306 0.114 0.465 0.114c0.199 0 0.397-0.06 0.568-0.177l29-20 c0.271-0.187 0.432-0.494 0.432-0.823S36.338 20.363 36.068 20.176z"}))}function _i(e){d({method:"modal",payload:e})}function gi(e){var t=e.message,n=e.fixedHeight,e=t.type,r=t.media_url,o=t.photo,i=t.video;switch(e){case"picture":return b("div",{onClick:function(){return _i(t)},className:mi,style:{height:n}},b("img",{src:o&&o.thumbnail,alt:"Preview",className:yi}));case"video":return b("div",{onClick:function(){return _i(t)},className:mi,style:{height:n}},b("img",{src:i&&i.thumbnail,alt:"Preview",className:yi}),b("div",{className:bi},b(pi,{className:wi})));case"document":return b("div",{className:xi},b("span",{className:Ci,role:"img","aria-label":"Сlip icon"},"📎"),b("a",{href:r,className:Ti},function(e,t,n,r){if(null===e)return"";var o=e.length;return n=~~n,r=r||"…",0===(t=~~t)&&0===n||o<=t||o<=n||o<=t+n?e:0===n?e.slice(0,t)+r:e.slice(0,t)+r+e.slice(o-n)}(r,13,9,"...")));default:return null}}function vi(e){var t,n,r=e.message,e=e.manager,o=_("AMO_LIVECHAT_BUTTON_HEIGHT"),i=_("AMO_LIVECHAT_ORIENTATION"),a=Math.ceil(o/2),s=(n=null,Ct=5,Bt(function(){return{current:n}},[])),u=(o=Ot("50%"))[0],c=o[1],o=yn()&&r.author&&!r.author.is_bot?r.author:e,e=(It(function(){var e=s.current;e&&e.offsetHeight&&d({method:"bubble:autosize",payload:{height:e.offsetHeight+20,width:219}})}),It(function(){var e=s.current,t=e&&e.querySelector("."+Oi),t=36<(t&&t.offsetHeight);!t&&"horizontal"!==i||c(a+"px"),t||"vertical"!==i||d({method:"bubble:centrify",payload:{bubbleHeight:e.offsetHeight}}),vn(function(){e.style.opacity=1})},[i,a]),_("AMO_LIVECHAT_POSITION")),l=i,f=$t(Sn,r.type);return b("div",{id:"bubble",className:x(((t={})[Ei]=!0,t[e]=!0,t[l]=!0,t)),onClick:function(){return d({method:"bubble:click"})},ref:s,style:{maxWidth:199,width:f?199:null,opacity:0}},o.avatar&&b(hi,{url:o.avatar,name:o.name,className:Si}),b("div",{className:ki},!o.isAccount&&o.name&&b("div",{className:Mi},o.name),r.text&&b("div",{className:Oi},r.text),f&&b(gi,{fixedHeight:100,message:r})),b("div",{style:{"--offset":u},className:x(((e={})[Ai]=!0,e[Ii]="50%"===u,e))}))}var mi="styles_preview_wrapper__295MF",yi="styles_preview__3tyQ9",bi="styles_play_button__2bC8L",wi="styles_play_button_icon__3kWzA",xi="styles_document_wrapper__32gcX",Ci="styles_document_clip__3q7LW",Ti="styles_document__2Q0Aq",Ei=(c(".styles_preview_wrapper__295MF {\n position: relative;\n cursor: pointer;\n height: 25vh;\n min-width: 50px;\n min-height: 50px;\n margin: 2px 0;\n\n border-radius: 3px;\n overflow: hidden;\n}\n\n.styles_preview__3tyQ9 {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n\n.styles_play_button__2bC8L {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.4);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.styles_play_button_icon__3kWzA {\n height: 30px;\n fill: white;\n}\n\n.styles_document_wrapper__32gcX {\n display: flex;\n align-items: center;\n}\n\n.styles_document_clip__3q7LW {\n display: inline-flex;\n align-items: center;\n font-size: 11px;\n margin-right: 3px;\n}\n\n.styles_document__2Q0Aq {\n display: flex;\n align-items: center;\n color: #347BFD;\n overflow: hidden;\n}\n\n/* Если под сообщением */\ndiv + .styles_document_wrapper__32gcX,\ndiv + .styles_preview_wrapper__295MF {\n margin-top: 4px;\n}\n\ndiv + .styles_document_wrapper__32gcX {\n background: rgba(143, 154, 157, .2);\n border-radius: 3px;\n padding: 4px 7px;\n}"),gi.defaultProps={message:{},fixedHeight:null},"styles_bubble__2CIsB"),Ai="styles_arrow__3RGf6",Si="styles_avatar__Qj8R1",Mi="styles_author__2VLZI",ki="styles_message_wrapper__1QYsF",Oi="styles_message__3dlCI",Ii="styles_arrow--center__1SFX5",Bi=(c(".styles_bubble__2CIsB {\n display: flex;\n position: absolute;\n min-width: 45px;\n padding: 10px;\n z-index: 5;\n background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);\n border-radius: 10px;\n box-sizing: border-box;\n box-shadow: 1px 5px 8px 2px rgba(0, 0, 0, 0.2);\n cursor: pointer;\n}\n.styles_bubble__2CIsB.bottom-right {\n right: 10px;\n bottom: 15px;\n margin-left: 7px;\n}\n.styles_bubble__2CIsB.page-center,\n.styles_bubble__2CIsB.bottom-left {\n left: 10px;\n bottom: 15px;\n margin-right: 7px;\n}\n.styles_bubble__2CIsB.top-left {\n left: 10px;\n top: 7px;\n margin-right: 7px;\n}\n.styles_bubble__2CIsB.top-right {\n right: 10px;\n top: 7px;\n margin-left: 7px;\n}\n\n.styles_arrow__3RGf6 {\n content: '';\n position: absolute;\n z-index: 2;\n top: 100%;\n border: 7px solid;\n border-color: #f5f5f5 transparent transparent transparent;\n}\n\n.styles_avatar__Qj8R1 {\n flex-shrink: 0;\n width: 28px;\n height: 28px;\n margin: 1px 6px 0 0;\n padding: 1px;\n}\n\n.styles_author__2VLZI {\n font-size: 11px;\n line-height: 16px;\n color: #8f9a9d;\n}\n\n.styles_message_wrapper__1QYsF {\n width: 100%;\n overflow: hidden;\n}\n\n.styles_message__3dlCI {\n color: #2e3640;\n font-size: 14px;\n line-height: 18px;\n overflow: hidden;\n word-break: break-word;\n max-height: 142px;\n}\n\n.styles_bubble__2CIsB.bottom-right .styles_arrow__3RGf6 {\n right: var(--offset);\n transform: translateX(calc(50% - 1px));\n}\n\n.styles_bubble__2CIsB.bottom-left .styles_arrow__3RGf6 {\n left: var(--offset);\n transform: translateX(calc(-50% - 1px));\n}\n\n.styles_bubble__2CIsB.top-left .styles_arrow__3RGf6 {\n top: -13px;\n left: var(--offset);\n transform: translateX(calc(-50% - 1px));\n border-color: transparent transparent #ffffff transparent;\n}\n\n.styles_bubble__2CIsB.top-right .styles_arrow__3RGf6 {\n top: -13px;\n right: var(--offset);\n transform: translateX(calc(50% - 1px));\n border-color: transparent transparent #ffffff transparent;\n}\n\n.styles_bubble__2CIsB.top-right.vertical .styles_arrow__3RGf6,\n.styles_bubble__2CIsB.bottom-right.vertical .styles_arrow__3RGf6 {\n right: -13px;\n border-color: transparent transparent transparent #ffffff;\n}\n\n.styles_bubble__2CIsB.top-left.vertical .styles_arrow__3RGf6,\n.styles_bubble__2CIsB.bottom-left.vertical .styles_arrow__3RGf6 {\n left: -13px;\n border-color: transparent #ffffff transparent transparent;\n right: unset;\n}\n\n.styles_bubble__2CIsB.top-left.vertical .styles_arrow__3RGf6,\n.styles_bubble__2CIsB.top-right.vertical .styles_arrow__3RGf6 {\n top: var(--offset);\n transform: translateY(calc(50% - 4px));\n}\n\n.styles_bubble__2CIsB.bottom-left.vertical .styles_arrow__3RGf6,\n.styles_bubble__2CIsB.bottom-right.vertical .styles_arrow__3RGf6 {\n top: unset;\n bottom: var(--offset);\n transform: translateY(50%);\n}\n\n.styles_bubble__2CIsB.top-left.vertical .styles_arrow--center__1SFX5,\n.styles_bubble__2CIsB.top-right.vertical .styles_arrow--center__1SFX5 {\n transform: translateY(calc(50% - 13px));\n}\n"),wt(["messages","manager","badge","lastReadTimestamp","welcomeMessageShouldBeBubbled"])(function(e){var t=e.messages,n=e.manager,r=e.badge,o=e.lastReadTimestamp,e=e.welcomeMessageShouldBeBubbled,t=Ft(t),o=(t&&(t.is_out||t.created_at<=o||!r)&&(t=null),e&&!t),i=o?fi():t;return It(function(){i&&d({method:"badge",count:mn()?r:1})},[o,r,i]),i?b(vi,{message:i,manager:n}):(d({method:"bubble:hide"}),null)}));function Li(e){return b("svg",Object.assign({},{width:"15",height:"16",viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg"},e),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.49998 9.63673L1.97906 15.1577C1.52604 15.6107 0.791253 15.6127 0.339281 15.1607C-0.115843 14.7056 -0.111341 13.9746 0.342318 13.5209L5.86324 8L0.342318 2.47906C-0.110696 2.02604 -0.112692 1.29124 0.339281 0.839272C0.794404 0.384148 1.5254 0.388668 1.97906 0.842327L7.49998 6.36326L13.0209 0.842327C13.474 0.389313 14.2087 0.387299 14.6607 0.839272C15.1158 1.2944 15.1113 2.0254 14.6577 2.47906L9.13672 8L14.6577 13.5209C15.1107 13.974 15.1127 14.7088 14.6607 15.1607C14.2056 15.6159 13.4746 15.6113 13.0209 15.1577L7.49998 9.63673Z"}))}function ji(){return _("AMO_LIVECHAT_HEADER_COLOR")||""}function Di(e){var t=e.canDefaultCloseButtonBeVisible,n=e.closeButtonText,e=e.bgColor;return n?b("span",{className:Pi.close_button_text,onClick:function(){return d("click_button")}},n):b($e,null,t&&b("span",{className:x(((n={})[Pi.close]=!0,n[Pi.close_light]=!Ui(e),n)),onClick:function(){return d("click_button")}},b(Li,null)))}function Ni(e){var t=e.canDefaultCloseButtonBeVisible,n=e.manager,e=e.theme,r=C(e,"header.background","")||ji(),o=C(e,"header.color",""),i=C(e,"header.close_button_text",""),a=C(e,"header.height",""),s=C(e,"header.padding",""),e=C(e,"header.name_font","");return b("div",{className:Pi.header,style:{height:a,padding:s,color:o,backgroundColor:r}},n.avatar&&b(hi,{url:n.avatar,name:n.name,className:Pi.avatar}),b("span",{className:x(((a={})[Pi.name]=!0,a[Pi.name_light]=!Ui(r),a[Pi.name_no_avatar]=!n.avatar,a)),style:{font:e}},n.name),b(Di,{bgColor:r,closeButtonText:i,canDefaultCloseButtonBeVisible:t}))}var Pi={header:"styles_header__1ezfF",avatar:"styles_avatar__2g0Zm",name:"styles_name__2vlvO",name_light:"styles_name_light__3Eqin",name_no_avatar:"styles_name_no_avatar__3OT7x",close:"styles_close__PBWDp",close_button_text:"styles_close_button_text__2CXMi",close_light:"styles_close_light__2mkQg"},Ri=(c(".styles_header__1ezfF {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0 14px;\n width: 100%;\n height: 56px;\n background: linear-gradient(285.77deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 62.06%), #EE6560;\n color: #fff;\n box-shadow: 1px 6px 13px rgba(0, 0, 0, 0.1), 0px 2px 5px rgba(0, 0, 0, 0.05);\n z-index: 2;\n}\n\n.styles_avatar__2g0Zm {\n margin-right: 10px;\n}\n\n.styles_name__2vlvO {\n font-weight: 500;\n font-size: 16px;\n line-height: 16px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.styles_name_light__3Eqin {\n color: #313942;\n}\n.styles_name_no_avatar__3OT7x {\n margin-left: 12px;\n}\n\n.styles_close__PBWDp {\n display: flex;\n margin-left: auto;\n padding: 5px;\n margin: -5px -5px -5px auto;\n fill: #fff;\n}\n\n.styles_close_button_text__2CXMi {\n margin: 0 12px 0 auto;\n font-weight: 400;\n font-size: 14px;\n line-height: 18px;\n cursor: pointer;\n}\n\n.styles_close_light__2mkQg {\n fill: #313942;\n}\n"),function(e){return[(e=-1<e.lastIndexOf("#")?e.replace(/#/,"0x"):"0x"+e)>>16,(65280&e)>>8,255&e]}),Ui=function(e){if("transparent"===e)return!1;e=Ri(e);return(299*e[0]+587*e[1]+114*e[2])/255e3<.6},Hi=wt(["device","manager"])(function(e){var t=e.device,n=e.manager,r=e.theme,e=e.canDefaultCloseButtonBeVisible;return b(Ni,{manager:n,theme:r,canDefaultCloseButtonBeVisible:e||"mobile"===t})}),Fi=K(function(e){function t(e){if(!e)throw new Error("missing options");if(!e.handler)throw new Error("missing handler parameter");this.scrollElement=e.scrollElement||window,this.conditions=e.conditions||{},this.handler=e.handler,this.values={},this.tracked={},this.success=!1,this.throttleVal=e.throttle||100,this.processing=!1,this.stopped=!1,this._parse(),"pageYOffset"in this.scrollElement?(this._addBottom(),this._addTop()):(this._addBottomEl(),this._addTopEl(),this._addScrollLeft()),this._addWidth(),this._onScroll()}t.prototype.addCondition=function(e,t){this.conditions[e]=t,this._parse()},t.prototype.removeCondition=function(e){delete this.conditions[e],this._parse()},t.prototype.addTracker=function(e,t){this.tracked[e]={cb:t,name:e}},t.prototype._addBottom=function(){this.addTracker("bottom",function(e){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-(e.pageYOffset+e.innerHeight)})},t.prototype._addTop=function(){this.addTracker("top",function(e){return e.pageYOffset})},t.prototype._addBottomEl=function(){this.addTracker("bottom",function(e){return Math.max(e.scrollHeight,e.offsetHeight)-(e.scrollTop+e.offsetHeight)})},t.prototype._addTopEl=function(){this.addTracker("top",function(e){return e.scrollTop})},t.prototype._addScrollLeft=function(){this.addTracker("scrollLeft",function(e){return e.scrollLeft})},t.prototype._addWidth=function(){this.addTracker("width",function(e){return e.innerWidth})},t.prototype._parse=function(){for(var e in this._parsed={},this._wantedTrackers=[],this._parsedMax={},this._parsedMin={},this.conditions)if(this.conditions.hasOwnProperty(e))switch(e.substr(0,4)){case"min-":this._wantedTrackers.push(e.substr(4,e.length)),this._parsedMin[e.substr(4,e.length)]=this.conditions[e];break;case"max-":this._wantedTrackers.push(e.substr(4,e.length)),this._parsedMax[e.substr(4,e.length)]=this.conditions[e];break;default:this._wantedTrackers.push(e),this._parsed[e]=this.conditions[e]}},t.prototype._check=function(){var e,t,n=[];for(e in this.values)this._parsed.hasOwnProperty(e)&&n.push(this._parsed[e]==this.values[e]),this._parsedMin.hasOwnProperty(e)&&n.push(this._parsedMin[e]<=this.values[e]),this._parsedMax.hasOwnProperty(e)&&n.push(this._parsedMax[e]>=this.values[e]);n.length&&-1==n.indexOf(!1)&&(this.processing=!0,t=this._done.bind(this),window.requestAnimationFrame(this.handler.bind(this,this.values,t)))},t.prototype._done=function(){this.processing=!1},t.prototype._onScroll=function(){this._onScrollHandler=this._throttledHandler(),this.scrollElement.addEventListener("scroll",this._onScrollHandler,!1)},t.prototype._throttledHandler=function(){var n=this;return this.throttle(function(e){if(n._wantedTrackers.length&&!n.processing){for(var t=0;t<n._wantedTrackers.length;t++)n.tracked[n._wantedTrackers[t]]&&(n.values[n._wantedTrackers[t]]=n.tracked[n._wantedTrackers[t]].cb(n.scrollElement||window));window.requestAnimationFrame(n._check.bind(n))}},this.throttleVal)},t.prototype.stop=function(){this.stopped||(this.scrollElement.removeEventListener("scroll",this._onScrollHandler,!1),this.stopped=!0)},t.prototype.resume=function(){this.stopped&&this._onScroll(),this.stopped=!1},t.prototype.throttle=function(n,r){var o,i=!0;return function(){var e=this,t=arguments;if(i)return n.apply(e,t),void(i=!1);o||(o=!0,setTimeout(function(){n.apply(e,t),o=!1},r))}},e.exports&&(e.exports=t)});var zi=function(t){return function(e){return null==t?void 0:t[e]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),Vi=/[&<>"']/g,Wi=RegExp(Vi.source);var Gi=function(e){return(e=yo(e))&&Wi.test(e)?e.replace(Vi,zi):e};var qi=function(e,t){return no(e,t)};function E(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function A(e){if(null===e||!0===e||!1===e)return NaN;e=Number(e);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var Xi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Yi(t){return function(e){e=e||{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var h={date:Yi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Yi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Yi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ki(o){return function(e,t){var n,t=t||{},r=(t="formatting"===(t.context?String(t.context):"standalone")&&o.formattingValues?(r=o.defaultFormattingWidth||o.defaultWidth,n=t.width?String(t.width):r,o.formattingValues[n]||o.formattingValues[r]):(n=o.defaultWidth,r=t.width?String(t.width):o.defaultWidth,o.values[r]||o.values[n]),o.argumentCallback?o.argumentCallback(e):e);return t[r]}}function $i(o){return function(e,t){var n=String(e),e=t||{},t=e.width,r=t&&o.matchPatterns[t]||o.matchPatterns[o.defaultMatchWidth],r=n.match(r);if(!r)return null;r=r[0],t=t&&o.parsePatterns[t]||o.parsePatterns[o.defaultParseWidth],t="[object Array]"===Object.prototype.toString.call(t)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(t,function(e){return e.test(n)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(t,function(e){return e.test(n)});return t=o.valueCallback?o.valueCallback(t):t,{value:t=e.valueCallback?e.valueCallback(t):t,rest:n.slice(r.length)}}}var Qi,Ji={code:"en-US",formatDistance:function(e,t,n){return n=n||{},e="string"==typeof Xi[e]?Xi[e]:1===t?Xi[e].one:Xi[e].other.replace("{{count}}",t),n.addSuffix?0<n.comparison?"in "+e:e+" ago":e},formatLong:h,formatRelative:function(e,t,n,r){return Zi[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);if(20<(e=n%100)||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ki({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ki({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Ki({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ki({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ki({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Qi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var e=String(e),t=t||{},n=e.match(Qi.matchPattern);if(!n)return null;var n=n[0],r=e.match(Qi.parsePattern);if(!r)return null;r=Qi.valueCallback?Qi.valueCallback(r[0]):r[0];return{value:r=t.valueCallback?t.valueCallback(r):r,rest:e.slice(n.length)}}),era:$i({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:$i({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:$i({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$i({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$i({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ea(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return e=E(e).getTime(),t=A(t),new Date(e+t)}(e,-A(t))}function S(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ta=function(e,t){e=e.getUTCFullYear(),e=0<e?e:1-e;return S("yy"===t?e%100:e,t.length)},na=function(e,t){e=e.getUTCMonth();return"M"===t?String(e+1):S(e+1,2)},ra=function(e,t){return S(e.getUTCDate(),t.length)},oa=function(e,t){return S(e.getUTCHours()%12||12,t.length)},ia=function(e,t){return S(e.getUTCHours(),t.length)},aa=function(e,t){return S(e.getUTCMinutes(),t.length)},sa=function(e,t){return S(e.getUTCSeconds(),t.length)},ua=function(e,t){var n=t.length,e=e.getUTCMilliseconds();return S(Math.floor(e*Math.pow(10,n-3)),t.length)};function ca(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=E(e),t=e.getUTCDay(),t=(t<1?7:0)+t-1;return e.setUTCDate(e.getUTCDate()-t),e.setUTCHours(0,0,0,0),e}function la(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=E(e),t=e.getUTCFullYear(),n=new Date(0),n=(n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0),ca(n)),r=new Date(0),r=(r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),ca(r));return e.getTime()>=n.getTime()?t+1:e.getTime()>=r.getTime()?t:t-1}function fa(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");e=E(e),e=ca(e).getTime()-function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=la(e),t=new Date(0);return t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0),ca(t)}(e).getTime();return Math.round(e/6048e5)+1}function da(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=t||{},n=t.locale,n=n&&n.options&&n.options.weekStartsOn,n=null==n?0:A(n),n=null==t.weekStartsOn?n:A(t.weekStartsOn);if(!(0<=n&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");t=E(e),e=t.getUTCDay(),e=(e<n?7:0)+e-n;return t.setUTCDate(t.getUTCDate()-e),t.setUTCHours(0,0,0,0),t}function ha(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=E(e,t),n=e.getUTCFullYear(),r=t||{},o=r.locale,o=o&&o.options&&o.options.firstWeekContainsDate,o=null==o?1:A(o),o=null==r.firstWeekContainsDate?o:A(r.firstWeekContainsDate);if(!(1<=o&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var r=new Date(0),r=(r.setUTCFullYear(n+1,0,o),r.setUTCHours(0,0,0,0),da(r,t)),i=new Date(0),o=(i.setUTCFullYear(n,0,o),i.setUTCHours(0,0,0,0),da(i,t));return e.getTime()>=r.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function pa(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");e=E(e),e=da(e,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=null==(n=(n=(r=t||{}).locale)&&n.options&&n.options.firstWeekContainsDate)?1:A(n),n=null==r.firstWeekContainsDate?n:A(r.firstWeekContainsDate),r=ha(e,t),e=new Date(0);return e.setUTCFullYear(r,0,n),e.setUTCHours(0,0,0,0),da(e,t)}(e,t).getTime();return Math.round(e/6048e5)+1}var _a="midnight",ga="noon",va="morning",ma="afternoon",ya="evening",ba="night",wa={G:function(e,t,n){var r=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r;return"yo"===t?(r=e.getUTCFullYear(),n.ordinalNumber(0<r?r:1-r,{unit:"year"})):ta(e,t)},Y:function(e,t,n,r){e=ha(e,r),r=0<e?e:1-e;return"YY"===t?S(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):S(r,t.length)},R:function(e,t){return S(la(e),t.length)},u:function(e,t){return S(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return na(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){e=pa(e,r);return"wo"===t?n.ordinalNumber(e,{unit:"week"}):S(e,t.length)},I:function(e,t,n){e=fa(e);return"Io"===t?n.ordinalNumber(e,{unit:"week"}):S(e,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ra(e,t)},D:function(e,t,n){e=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=E(e),t=e.getTime(),e=(e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0),e.getTime());return Math.floor((t-e)/864e5)+1}(e);return"Do"===t?n.ordinalNumber(e,{unit:"dayOfYear"}):S(e,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return S(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return S(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return S(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var e=e.getUTCHours(),r=12===e?ga:0===e?_a:1<=e/12?"pm":"am";switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var e=e.getUTCHours(),r=17<=e?ya:12<=e?ma:4<=e?va:ba;switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){var r;return"ho"===t?(r=e.getUTCHours()%12,n.ordinalNumber(r=0===r?12:r,{unit:"hour"})):oa(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ia(e,t)},K:function(e,t,n){e=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(e,{unit:"hour"}):S(e,t.length)},k:function(e,t,n){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?n.ordinalNumber(e,{unit:"hour"}):S(e,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):aa(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):sa(e,t)},S:function(e,t){return ua(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Ca(o);case"XXXX":case"XX":return Ta(o);default:return Ta(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ca(o);case"xxxx":case"xx":return Ta(o);default:return Ta(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xa(o,":");default:return"GMT"+Ta(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xa(o,":");default:return"GMT"+Ta(o,":")}},t:function(e,t,n,r){r=r._originalDate||e;return S(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,r){return S((r._originalDate||e).getTime(),t.length)}};function xa(e,t){var n=0<e?"-":"+",e=Math.abs(e),r=Math.floor(e/60),e=e%60;if(0==e)return n+String(r);t=t||"";return n+String(r)+t+S(e,2)}function Ca(e,t){return e%60==0?(0<e?"-":"+")+S(Math.abs(e)/60,2):Ta(e,t)}function Ta(e,t){var t=t||"",n=0<e?"-":"+",e=Math.abs(e);return n+S(Math.floor(e/60),2)+t+S(e%60,2)}function Ea(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Aa(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Sa={p:Aa,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1];if(!(r=r[2]))return Ea(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Ea(o,t)).replace("{{time}}",Aa(r,t))}},Ma=["D","DD"],ka=["YY","YYYY"];function Oa(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var Ia=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ba=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,La=/^'([^]*?)'?$/,ja=/''/g,Da=/[a-zA-Z]/;function Na(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var t=String(t),r=n||{},o=r.locale||Ji,n=o.options&&o.options.firstWeekContainsDate,n=null==n?1:A(n),n=null==r.firstWeekContainsDate?n:A(r.firstWeekContainsDate);if(!(1<=n&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var i=o.options&&o.options.weekStartsOn,i=null==i?0:A(i),i=null==r.weekStartsOn?i:A(r.weekStartsOn);if(!(0<=i&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");e=E(e);if(!function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return e=E(e),!isNaN(e)}(e))throw new RangeError("Invalid time value");a=e,a=new Date(a.getTime()),s=Math.ceil(a.getTimezoneOffset()),a.setSeconds(0,0);var a,s,u=ea(e,6e4*s+a.getTime()%6e4),c={firstWeekContainsDate:n,weekStartsOn:i,locale:o,_originalDate:e};return t.match(Ba).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Sa[t])(e,o.formatLong,c):e}).join("").match(Ia).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return e.match(La)[1].replace(ja,"'");var n=wa[t];if(n)return r.useAdditionalWeekYearTokens||-1===ka.indexOf(e)||Oa(e),r.useAdditionalDayOfYearTokens||-1===Ma.indexOf(e)||Oa(e),n(u,e,o.localize,c);if(t.match(Da))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}function Pa(e){return b("svg",Object.assign({},{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px"},e),b("path",{d:"M 5 3 C 3.9069372 3 3 3.9069372 3 5 L 3 19 C 3 20.093063 3.9069372 21 5 21 L 19 21 C 20.093063 21 21 20.093063 21 19 L 21 12 L 19 12 L 19 19 L 5 19 L 5 5 L 12 5 L 12 3 L 5 3 z M 14 3 L 14 5 L 17.585938 5 L 8.2929688 14.292969 L 9.7070312 15.707031 L 19 6.4140625 L 19 10 L 21 10 L 21 3 L 14 3 z"}))}var Ra=ke,k={setDevice:function(e,t){return{device:450<t?"desktop":"mobile"}},setSelectedConversationInfo:function(e,t){return{badge:t.badge,name:t.name,selectedConversationInfo:{id:t.id,is_closed:t.is_closed}}},setIsSteadyEnabled:function(e,t){return{isSteadyEnabled:t}},setChat:function(e,t){return{badge:t.badge,chatId:t.id,name:t.name}},setConversations:function(e,t){return{conversations:t}},setIsSocketInited:function(e){return{isSocketInited:!0}},setIsMessagesFetched:function(e){return{isMessagesFetched:!0}},setIsMultiDialogsEnabled:function(e,t){return{isMultiDialogsEnabled:t}},toggleChat:function(e,t){return{isBubbleVisible:!1,welcomeMessageShouldBeBubbled:!1,isOpened:t}},updateBadge:function(e,t){return d({method:"badge",count:t}),d({method:"bubble"}),{badge:t}},toggleBubble:function(e,t){return{isBubbleVisible:t}},updateManager:function(){var e=_("AMO_LIVECHAT_LEAD_RESPONSIBLE"),t=_("AMO_LIVECHAT_USE_RESP_AVATAR"),n=_("AMO_LIVECHAT_USE_NAME");return C(e,"name")?{manager:f({isAccount:!1},e,t?{}:{avatar:_("AMO_LIVECHAT_DEFAULT_AVATAR")},n?{}:{use_name:_("AMO_LIVECHAT_USE_NAME")})}:{manager:{avatar:_("AMO_LIVECHAT_DEFAULT_AVATAR"),isAccount:!0,name:_("AMO_LIVECHAT_TITLE"),use_name:_("AMO_LIVECHAT_USE_NAME")}}}};function Ua(e,r){var o=[];return Ae(e,function(e,t,n){r(e,t,n)&&o.push(e)}),o}var Ha=function(e,t){return(p(e)?Br:Ua)(e,T(t))};var y=function(i){return function(e,t,n){var r,o=Object(e),t=(s(e)||(r=T(t),e=Ee(e),t=function(e){return r(o[e],e,o)}),i(e,t,n));return-1<t?o[r?e[t]:t]:void 0}},Fa=Math.max;var za=y(function(e,t,n){var r=null==e?0:e.length;return r?((n=null==n?0:Re(n))<0&&(n=Fa(r+n,0)),zt(e,T(t),n)):-1});var Va=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i,a,s=e[r],u=t(s);null!=u&&(void 0===i?u==u&&!Oe(u):n(u,i))&&(i=u,a=s)}return a};function Wa(e,t){return t<e}var Ga=function(e,t){return e&&e.length?Va(e,T(t),Wa):void 0};function qa(e,t){return e<t}var Xa=function(e,t){return e&&e.length?Va(e,T(t),qa):void 0},Ya=e?e.isConcatSpreadable:void 0;function Za(e){return p(e)||ue(e)||!!(Ya&&e&&e[Ya])}var Ka=function e(t,n,r,o,i){var a=-1,s=t.length;for(r=r||Za,i=i||[];++a<s;){var u=t[a];0<n&&r(u)?1<n?e(u,n-1,r,o,i):Or(i,u):o||(i[i.length]=u)}return i};var $a=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var Qa=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Oe(e),a=void 0!==t,s=null===t,u=t==t,c=Oe(t);if(!s&&!c&&!i&&t<e||i&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!u)return-1}return 0};var Ja=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=Qa(o[r],i[r]);if(u)return s<=r?u:u*("desc"==n[r]?-1:1)}return e.index-t.index};var es=function(e,r,n){var o=-1,e=(r=Xt(r.length?r:[Se],_e(T)),Lo(e,function(t,e,n){return{criteria:Xt(r,function(e){return e(t)}),index:++o,value:t}}));return $a(e,function(e,t){return Ja(e,t,n)})},ts=gn(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&jn(e,t[0],t[1])?t=[]:2<n&&jn(t[0],t[1],t[2])&&(t=[t[0]]),es(e,Ka(t,1),[])});function ns(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function rs(e,r,o,i){return Ae(e,function(e,t,n){r(i,e,o(e),n)}),i}function os(){return new Promise(function(e){var n=new XMLHttpRequest;n.onload=function(){var t={};if(200===n.status)try{t=JSON.parse(n.response)}catch(e){t={}}e(t)},n.onerror=function(){return e({})},n.open("GET","/humans/visitor"),n.send()})}function is(o){return new Promise(function(n){var e=_("AMO_LIVECHAT_USER_PROFILE").name;if(e)return window.AMO_LIVECHAT_GSO_NAME=e,window.AMO_LIVECHAT_CONTACT={name:e},n();if(!o.visitor_uid)return n();var r=new XMLHttpRequest,e=_("AMO_LIVECHAT_BUTTON_ID"),t=_("AMO_LIVECHAT_BUTTON_HASH");window.AMO_LIVECHAT_VISITOR_UID=o.visitor_uid,r.onload=function(){if(200===r.status)try{var e=JSON.parse(r.response),t=C(e,"properties.5.0.value","");(window.AMO_LIVECHAT_GSO_NAME=t)&&(window.AMO_LIVECHAT_CONTACT={name:t})}catch(e){window.AMO_LIVECHAT_GSO_NAME=""}n()},r.onerror=function(){return n()},r.open("GET","/humans?visitor_uid="+o.visitor_uid+"&id="+e+"&hash="+t+"&fingerprint="+_("AMO_LIVECHAT_FINGERPRINT")),r.send()})}var g=function(o,i){return function(e,t){var n=p(e)?ns:rs,r=i?i():{};return n(e,o,T(t),r)}},as=Object.prototype.hasOwnProperty,ss=g(function(e,t,n){as.call(e,n)?e[n].push(t):kn(e,n,[t])}),us=self.crypto||self.msCrypto,cs=function(e){e=e||21;for(var t="",n=us.getRandomValues(new Uint8Array(e));e--;)t+="Uint8ArdomValuesObj012345679BCDEFGHIJKLMNPQRSTWXYZ_cfghkpqvwxyz-"[63&n[e]];return t},ls=K(function(e){
|
||
/*
|
||
* Fingerprintjs2 2.1.0 - Modern & flexible browser fingerprint library v2
|
||
* https://github.com/Valve/fingerprintjs2
|
||
* Copyright (c) 2015 Valentin Vasilyev (valentin.vasilyev@outlook.com)
|
||
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
|
||
*
|
||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
* ARE DISCLAIMED. IN NO EVENT SHALL VALENTIN VASILYEV BE LIABLE FOR ANY
|
||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/
|
||
var t,n;t=M,n=function(){function f(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function d(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]}function h(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function p(e){return e=g(e,[0,e[0]>>>1]),e=_(e,[4283543511,3981806797]),e=g(e,[0,e[0]>>>1]),e=_(e,[3301882366,444984403]),e=g(e,[0,e[0]>>>1])}function s(e,t){for(var n=(e=e||"").length%16,r=e.length-n,o=[0,t=t||0],i=[0,t],a=[0,0],s=[0,0],u=[2277735313,289559509],c=[1291169091,658871167],l=0;l<r;l+=16)a=[255&e.charCodeAt(l+4)|(255&e.charCodeAt(l+5))<<8|(255&e.charCodeAt(l+6))<<16|(255&e.charCodeAt(l+7))<<24,255&e.charCodeAt(l)|(255&e.charCodeAt(l+1))<<8|(255&e.charCodeAt(l+2))<<16|(255&e.charCodeAt(l+3))<<24],s=[255&e.charCodeAt(l+12)|(255&e.charCodeAt(l+13))<<8|(255&e.charCodeAt(l+14))<<16|(255&e.charCodeAt(l+15))<<24,255&e.charCodeAt(l+8)|(255&e.charCodeAt(l+9))<<8|(255&e.charCodeAt(l+10))<<16|(255&e.charCodeAt(l+11))<<24],a=_(a,u),a=d(a,31),a=_(a,c),o=g(o,a),o=d(o,27),o=f(o,i),o=f(_(o,[0,5]),[0,1390208809]),s=_(s,c),s=d(s,33),s=_(s,u),i=g(i,s),i=d(i,31),i=f(i,o),i=f(_(i,[0,5]),[0,944331445]);switch(a=[0,0],s=[0,0],n){case 15:s=g(s,h([0,e.charCodeAt(l+14)],48));case 14:s=g(s,h([0,e.charCodeAt(l+13)],40));case 13:s=g(s,h([0,e.charCodeAt(l+12)],32));case 12:s=g(s,h([0,e.charCodeAt(l+11)],24));case 11:s=g(s,h([0,e.charCodeAt(l+10)],16));case 10:s=g(s,h([0,e.charCodeAt(l+9)],8));case 9:s=g(s,[0,e.charCodeAt(l+8)]),s=_(s,c),s=d(s,33),s=_(s,u),i=g(i,s);case 8:a=g(a,h([0,e.charCodeAt(l+7)],56));case 7:a=g(a,h([0,e.charCodeAt(l+6)],48));case 6:a=g(a,h([0,e.charCodeAt(l+5)],40));case 5:a=g(a,h([0,e.charCodeAt(l+4)],32));case 4:a=g(a,h([0,e.charCodeAt(l+3)],24));case 3:a=g(a,h([0,e.charCodeAt(l+2)],16));case 2:a=g(a,h([0,e.charCodeAt(l+1)],8));case 1:a=g(a,[0,e.charCodeAt(l)]),a=_(a,u),a=d(a,31),a=_(a,c),o=g(o,a)}return o=g(o,[0,e.length]),i=g(i,[0,e.length]),o=f(o,i),i=f(i,o),o=p(o),i=p(i),o=f(o,i),i=f(i,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function n(){var e;if(a())return e=m(),!!window.WebGLRenderingContext&&!!e}function r(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}var _=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},g=function(e,t){return[e[0]^t[0],e[1]^t[1]]},e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},v=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;n<r;n++)t(e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)},u=function(e,r){var o=[];return null==e?o:Array.prototype.map&&e.map===Array.prototype.map?e.map(r):(v(e,function(e,t,n){o.push(r(e,t,n))}),o)},o=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,r=navigator.plugins.length;n<r;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return i(e)&&(t=t.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),u(t,function(e){var t=u(e,function(e){return[e.type,e.suffixes]});return[e.name,e.description,t]})},i=function(e){for(var t=!1,n=0,r=e.plugins.sortPluginsFor.length;n<r;n++){var o=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(o)){t=!0;break}}return t},a=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},c=function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)},m=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t=t||null},t=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){if(navigator.hardwareConcurrency)return navigator.hardwareConcurrency;return e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];if(e.screen.detectScreenOrientation)t.sort().reverse();return t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];if(e.screen.detectScreenOrientation)t.sort().reverse();return t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(t){try{return!!window.localStorage}catch(e){return t.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e((e=t,navigator.cpuClass||e.NOT_AVAILABLE))}},{key:"platform",getData:function(e,t){e(function(e){if(navigator.platform)return navigator.platform;else return e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){if(navigator.doNotTrack)return navigator.doNotTrack;else if(navigator.msDoNotTrack)return navigator.msDoNotTrack;else if(window.doNotTrack)return window.doNotTrack;else return e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){!function(){if(navigator.appName==="Microsoft Internet Explorer")return true;else if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent))return true;return false}()?e(o(t)):t.plugins.excludeIE?e(t.EXCLUDED):e(function(t){var e=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var n=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];e=u(n,function(e){try{new window.ActiveXObject(e);return e}catch(e){return t.ERROR}})}else e.push(t.NOT_AVAILABLE);if(navigator.plugins)e=e.concat(o(t));return e}(t))}},{key:"canvas",getData:function(e,t){a()?e(function(e){var t=[],n=document.createElement("canvas"),r=(n.width=2e3,n.height=200,n.style.display="inline",n.getContext("2d"));if(r.rect(0,0,10,10),r.rect(2,2,6,6),t.push("canvas winding:"+(r.isPointInPath(5,5,"evenodd")===false?"yes":"no")),r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",e.dontUseFakeFontInCanvas)r.font="11pt Arial";else r.font="11pt no-real-font-123";if(r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,Math.PI*2,true),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,Math.PI*2,true),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,Math.PI*2,true),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,Math.PI*2,true),r.arc(75,75,25,0,Math.PI*2,true),r.fill("evenodd"),n.toDataURL)t.push("canvas fp:"+n.toDataURL());return t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){n()?e(function(){var i,e=function(e){i.clearColor(0,0,0,1);i.enable(i.DEPTH_TEST);i.depthFunc(i.LEQUAL);i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT);return"["+e[0]+", "+e[1]+"]"},t=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);if(n===0)n=2;return n}else return null},i=m();if(!i)return null;var a=[],n="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",r="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",o=i.createBuffer(),s=(i.bindBuffer(i.ARRAY_BUFFER,o),new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])),u=(i.bufferData(i.ARRAY_BUFFER,s,i.STATIC_DRAW),o.itemSize=3,o.numItems=3,i.createProgram()),c=i.createShader(i.VERTEX_SHADER),l=(i.shaderSource(c,n),i.compileShader(c),i.createShader(i.FRAGMENT_SHADER));i.shaderSource(l,r),i.compileShader(l),i.attachShader(u,c),i.attachShader(u,l),i.linkProgram(u),i.useProgram(u),u.vertexPosAttrib=i.getAttribLocation(u,"attrVertex"),u.offsetUniform=i.getUniformLocation(u,"uniformOffset"),i.enableVertexAttribArray(u.vertexPosArray),i.vertexAttribPointer(u.vertexPosAttrib,o.itemSize,i.FLOAT,!1,0,0),i.uniform2f(u.offsetUniform,1,1),i.drawArrays(i.TRIANGLE_STRIP,0,o.numItems);try{a.push(i.canvas.toDataURL())}catch(e){}a.push("extensions:"+(i.getSupportedExtensions()||[]).join(";")),a.push("webgl aliased line width range:"+e(i.getParameter(i.ALIASED_LINE_WIDTH_RANGE))),a.push("webgl aliased point size range:"+e(i.getParameter(i.ALIASED_POINT_SIZE_RANGE))),a.push("webgl alpha bits:"+i.getParameter(i.ALPHA_BITS)),a.push("webgl antialiasing:"+(i.getContextAttributes().antialias?"yes":"no")),a.push("webgl blue bits:"+i.getParameter(i.BLUE_BITS)),a.push("webgl depth bits:"+i.getParameter(i.DEPTH_BITS)),a.push("webgl green bits:"+i.getParameter(i.GREEN_BITS)),a.push("webgl max anisotropy:"+t(i)),a.push("webgl max combined texture image units:"+i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),a.push("webgl max cube map texture size:"+i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE)),a.push("webgl max fragment uniform vectors:"+i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS)),a.push("webgl max render buffer size:"+i.getParameter(i.MAX_RENDERBUFFER_SIZE)),a.push("webgl max texture image units:"+i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS)),a.push("webgl max texture size:"+i.getParameter(i.MAX_TEXTURE_SIZE)),a.push("webgl max varying vectors:"+i.getParameter(i.MAX_VARYING_VECTORS)),a.push("webgl max vertex attribs:"+i.getParameter(i.MAX_VERTEX_ATTRIBS)),a.push("webgl max vertex texture image units:"+i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),a.push("webgl max vertex uniform vectors:"+i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS)),a.push("webgl max viewport dims:"+e(i.getParameter(i.MAX_VIEWPORT_DIMS))),a.push("webgl red bits:"+i.getParameter(i.RED_BITS)),a.push("webgl renderer:"+i.getParameter(i.RENDERER)),a.push("webgl shading language version:"+i.getParameter(i.SHADING_LANGUAGE_VERSION)),a.push("webgl stencil bits:"+i.getParameter(i.STENCIL_BITS)),a.push("webgl vendor:"+i.getParameter(i.VENDOR)),a.push("webgl version:"+i.getParameter(i.VERSION));try{var f=i.getExtension("WEBGL_debug_renderer_info");if(f){a.push("webgl unmasked vendor:"+i.getParameter(f.UNMASKED_VENDOR_WEBGL));a.push("webgl unmasked renderer:"+i.getParameter(f.UNMASKED_RENDERER_WEBGL))}}catch(e){}return i.getShaderPrecisionFormat?(v(["FLOAT","INT"],function(o){v(["VERTEX","FRAGMENT"],function(r){v(["HIGH","MEDIUM","LOW"],function(n){v(["precision","rangeMin","rangeMax"],function(e){var t=i.getShaderPrecisionFormat(i[r+"_SHADER"],i[n+"_"+o])[e],e=("precision"!==e&&(e="precision "+e),["webgl ",r.toLowerCase()," shader ",n.toLowerCase()," ",o.toLowerCase()," ",e,":",t].join(""));a.push(e)})})})}),a):a}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){n()?e(function(){try{var e=m();var t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div"),t=(e.innerHTML=" ",e.className="adsbox",false);try{document.body.appendChild(e);t=document.getElementsByClassName("adsbox")[0].offsetHeight===0;document.body.removeChild(e)}catch(e){t=false}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(typeof navigator.languages!=="undefined")try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2))return true}catch(e){return true}return false}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e=navigator.userAgent.toLowerCase(),t=navigator.oscpu,n=navigator.platform.toLowerCase(),r,o;if(e.indexOf("windows phone")>=0)r="Windows Phone";else if(e.indexOf("win")>=0)r="Windows";else if(e.indexOf("android")>=0)r="Android";else if(e.indexOf("linux")>=0||e.indexOf("cros")>=0)r="Linux";else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0)r="iOS";else if(e.indexOf("mac")>=0)r="Mac";else r="Other";if(("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&r!=="Windows Phone"&&r!=="Android"&&r!=="iOS"&&r!=="Other")return true;if(typeof t!=="undefined"){t=t.toLowerCase();if(t.indexOf("win")>=0&&r!=="Windows"&&r!=="Windows Phone")return true;else if(t.indexOf("linux")>=0&&r!=="Linux"&&r!=="Android")return true;else if(t.indexOf("mac")>=0&&r!=="Mac"&&r!=="iOS")return true;else if((t.indexOf("win")===-1&&t.indexOf("linux")===-1&&t.indexOf("mac")===-1)!==(r==="Other"))return true}if(n.indexOf("win")>=0&&r!=="Windows"&&r!=="Windows Phone")return true;else if((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&r!=="Linux"&&r!=="Android")return true;else if((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&r!=="Mac"&&r!=="iOS")return true;else{var i=n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0;if(i!==(r==="Other"))return true}return typeof navigator.plugins==="undefined"&&r!=="Windows"&&r!=="Windows Phone"}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e=navigator.userAgent.toLowerCase(),t=navigator.productSub,n;if(e.indexOf("firefox")>=0)n="Firefox";else if(e.indexOf("opera")>=0||e.indexOf("opr")>=0)n="Opera";else if(e.indexOf("chrome")>=0)n="Chrome";else if(e.indexOf("safari")>=0)n="Safari";else if(e.indexOf("trident")>=0)n="Internet Explorer";else n="Other";if((n==="Chrome"||n==="Safari"||n==="Opera")&&t!=="20030107")return true;var r=eval.toString().length,o;if(r===37&&n!=="Safari"&&n!=="Firefox"&&n!=="Other")return true;else if(r===39&&n!=="Internet Explorer"&&n!=="Other")return true;else if(r===33&&n!=="Chrome"&&n!=="Opera"&&n!=="Other")return true;try{throw"a"}catch(e){try{e.toSource();o=true}catch(e){o=false}}return o&&n!=="Firefox"&&n!=="Other"}())}},{key:"touchSupport",getData:function(e){e(function(){var e=0,t,n;if(typeof navigator.maxTouchPoints!=="undefined")e=navigator.maxTouchPoints;else if(typeof navigator.msMaxTouchPoints!=="undefined")e=navigator.msMaxTouchPoints;try{document.createEvent("TouchEvent");t=true}catch(e){t=false}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var c=["monospace","sans-serif","serif"],l=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"],n=(t.fonts.extendedJsFonts&&(l=l.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),l=(l=l.concat(t.fonts.userDefinedFonts)).filter(function(e,t){return l.indexOf(e)===t}),"mmmmmmmmmmlli"),r="72px",t=document.getElementsByTagName("body")[0],o=document.createElement("div"),f=document.createElement("div"),i={},a={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize=r,e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML=n,e},s=function(){for(var e=[],t=0,n=c.length;t<n;t++){var r=d();r.style.fontFamily=c[t],o.appendChild(r),e.push(r)}return e}();t.appendChild(o);for(var u=0,h=c.length;u<h;u++)i[c[u]]=s[u].offsetWidth,a[c[u]]=s[u].offsetHeight;for(var p=function(){for(var e,t,n={},r=0,o=l.length;r<o;r++){for(var i=[],a=0,s=c.length;a<s;a++){u=l[r],e=c[a],t=void 0,(t=d()).style.fontFamily="'"+u+"',"+e;var u=t;f.appendChild(u),i.push(u)}n[l[r]]=i}return n}(),_=(t.appendChild(f),[]),g=0,v=l.length;g<v;g++)!function(e){for(var t=!1,n=0;n<c.length;n++)if(t=e[n].offsetWidth!==i[c[n]]||e[n].offsetHeight!==a[c[n]])return t;return t}(p[l[g]])||_.push(l[g]);t.removeChild(f),t.removeChild(o),e(_)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return void 0===window.swfobject?t("swf object not loaded"):window.swfobject.hasFlashPlayerVersion("9.0.0")?e.fonts.swfPath?(n=function(e){t(e)},e=e,r="___fp_swf_loaded",window[r]=function(e){n(e)},o=e.fonts.swfContainerId,c(),void window.swfobject.embedSWF(e.fonts.swfPath,o,"1","1","9.0.0",!1,{onReady:r},{allowScriptAccess:"always",menu:"false"},{})):t("missing options.fonts.swfPath"):t("flash not installed");var n,r,o},pauseBefore:!0},{key:"audio",getData:function(n,e){var t=e.audio;if(t.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return n(e.EXCLUDED);var r=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==r)return n(e.NOT_AVAILABLE);var o=new r(1,44100,44100),i=o.createOscillator(),a=(i.type="triangle",i.frequency.setValueAtTime(1e4,o.currentTime),o.createDynamicsCompressor()),s=(v([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],o.currentTime)}),i.connect(a),a.connect(o.destination),i.start(0),o.startRendering(),setTimeout(function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),o.oncomplete=function(){},o=null,n("audioTimeout")},t.timeout));o.oncomplete=function(e){var t;try{clearTimeout(s),t=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(e,t){return e+Math.abs(t)},0).toString(),i.disconnect(),a.disconnect()}catch(e){return void n(e)}n(t)}}},{key:"enumerateDevices",getData:function(t,e){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(e){t(e.map(function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label}))}).catch(function(e){t(e)})}}];return r.get=function(n,r){!function(e,t){if(null==t)return;var n,r;for(r in t)null==(n=t[r])||Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n)}(n=r?n||{}:(r=n,{}),e),n.components=n.extraComponents.concat(t);function o(e){if((a+=1)>=n.components.length)r(i.data);else{var t=n.components[a];if(n.excludes[t.key])o(!1);else{if(!e&&t.pauseBefore)return--a,setTimeout(function(){o(!0)},1);try{t.getData(function(e){i.addPreprocessedComponent(t.key,e),o(!1)},n)}catch(e){i.addPreprocessedComponent(t.key,String(e)),o(!1)}}}}var i={data:[],addPreprocessedComponent:function(e,t){"function"==typeof n.preprocessor&&(t=n.preprocessor(e,t)),i.data.push({key:e,value:t})}},a=-1;o(!1)},r.getPromise=function(n){return new Promise(function(e,t){r.get(n,e)})},r.getV18=function(i,a){return null==a&&(a=i,i={}),r.get(i,function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.value===(i.NOT_AVAILABLE||"not available")?t.push({key:r.key,value:"unknown"}):"plugins"===r.key?t.push({key:"plugins",value:u(r.value,function(e){var t=u(e[2],function(e){return e.join?e.join("~"):e}).join(",");return[e[0],e[1],t].join("::")})}):-1!==["canvas","webgl"].indexOf(r.key)?t.push({key:r.key,value:r.value.join("~")}):-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(r.key)?r.value&&t.push({key:r.key,value:1}):r.value?t.push(r.value.join?{key:r.key,value:r.value.join(";")}:r):t.push({key:r.key,value:r.value})}var o=s(u(t,function(e){return e.value}).join("~~~"),31);a(o,t)})},r.x64hash128=s,r.VERSION="2.1.0",r},e.exports?e.exports=n():t.exports?t.exports=n():t.Fingerprint2=n()}),fs={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{userDefinedFonts:[],extendedJsFonts:!0},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},ds=function(){return new Promise(function(t){var e=_("AMO_LIVECHAT_BUTTON_ID"),n=_("AMO_LIVECHAT_BUTTON_HASH"),r=_("AMO_LIVECHAT_VISITOR_UID"),o=_("AMO_LIVECHAT_UUID"),i=_("AMO_LIVECHAT_FINGERPRINT");if(!(e&&n&&r&&o&&i))return t();var a=new XMLHttpRequest;a.onload=function(){if(200===a.status)try{var e=JSON.parse(a.response);e.full_name&&(window.AMO_LIVECHAT_LEAD_RESPONSIBLE={avatar:e.avatar,name:e.full_name})}catch(e){console.error(e)}t()},a.onerror=function(){return t()},a.open("GET","/feedback_button/manager/?visitor_uid="+r+"&id="+e+"&hash="+n+"&profile_id="+o+"&fingerprint="+i),a.send()})};function hs(e){var t=e.url,n=e.userUUID,r=e.welcomeMessage,o=e.welcomeMessageStep,i=e.visitorUid,a=e.userName,s=e.onInit,u=e.onResponse,c=e.onUpdate,e=e.onAddConversation;this.url=t,this.userUUID=n,this.userName=a,this.welcomeMessage=r,this.welcomeMessageStep=o,this.visitorUid=i,this.onInit=s,this.onResponse=u,this.onUpdate=c,this.onAddConversation=e,this.connect()}function ps(e){var t;e&&(t=ws[e.uid])&&(clearTimeout(t.timeout),t.resolve({request:t.request,response:e}))}var _s,gs,vs=0,ms=[],ys=!1,bs=(hs.prototype.connect=function(){var o=this;this.socket&&(this.socket=null),this.socket=new WebSocket(this.url),this.opened=!1,this.inited=!1,this.socket.onopen=function(){ys||(vs=0),ys=!1,o.opened=!0,o.init()},this.socket.onclose=function(e){1e3===e.code&&e.wasClean||(vs=vs<8?vs+1:1,setTimeout(function(){return o.connect()},vs*(vs-1)*1e3))},this.socket.onmessage=function(e){try{var t,n,r=JSON.parse(e.data);if(r)switch(r.method){case"init":o.inited=!0,o.isMultiDialogsEnabled=C(r,"payload.multi_dialogs",!1),o.isMultiDialogsEnabled&&(t=C(r,"payload.chat.conversations",null)||[],n="",1===t.length&&(n=t[0].id),d({method:"conversations:received",payload:t,selected:n})),o.onInit(r),(ms||ms.length)&&(ke(ms,function(e){return o.send(e)}),ms=[]);break;case"update":o.onUpdate(r);break;case"open_conversation":o.onAddConversation(r),o.onResponse(r);break;case"close_conversation_req":break;default:o.onResponse(r)}}catch(e){throw new Error(e)}},this.socket.onerror=function(e){ys=!0}},hs.prototype.send=function(e){var t=this.opened&&this.inited;switch(e.method){case"init":t=!0;break;case"message":t=this.isMultiDialogsEnabled?t&&e.params.conversation_id||"open_conversation"===e.method:t&&e.params.chat_id}t?this.socket.send(JSON.stringify(e)):ms.push(e)},hs.prototype.init=function(){var e=Object.assign({},{user:this.userUUID,name:this.userName,welcome_message:this.welcomeMessage},_("AMO_LIVECHAT_USER_PROFILE"));this.visitorUid&&(e.utm="VisitorUid_"+_("AMO_LIVECHAT_SESSION_UID")),e.bot_context={step:this.welcomeMessageStep},this.send({uid:cs(),method:"init",params:e})},1e4),ws={},xs=function(n){return new Promise(function(e,t){ws[n.uid]||(f(n,{uid:cs()}),ws[n.uid]={request:n,resolve:e,reject:t}),_s&&gs&&(ws[n.uid].timeout=setTimeout(t,bs),_s.send(n))})},Cs=function(e){var t=e.uuid,n=e.onInit,r=e.onUpdate,e=e.onAddConversation,o=fi();_s=new hs({url:_("AMO_LIVECHAT_SOCKET_URL")+"?v2=1",userUUID:t,userName:_("AMO_LIVECHAT_GSO_NAME"),welcomeMessage:C(o,"text",""),welcomeMessageStep:C(o,"step"),visitorUid:_("AMO_LIVECHAT_VISITOR_UID"),onInit:function(e){return t=n,gs=C(e=e,"payload.multi_dialogs",null)?{}:C(e,"payload.chat.id",null),Bo(ws)||ke(ws,function(e){e.timeout||($t(Ee(e.request.params),"chat_id")&&!C(e,"request.params.chat_id",null)&&gs&&(e.request.params.chat_id=gs),xs(e.request))}),void t(e);var t},onResponse:ps,onUpdate:r,onAddConversation:e})};function Ts(e,t){void 0===t&&(t={});var e=e.getState(),n=e.chatId,r=e.selectedConversationInfo,r=(r=void 0===r?{}:r).id;return e.isMultiDialogsEnabled?Object.assign({},t,{conversation_id:r}):Object.assign({},t,{chat_id:n})}var Es=function(){},As=function(a){return{addConversation:function(e){return xs({uid:cs(),method:"open_conversation",params:{}})},setSelectorOpenState:function(e,t){a.setState({selectorOpenState:t})},onConversationClose:function(e,t){var n=a.getState(),r=n.selectedConversationInfo,n=n.conversations,o=t.id,i=r.id===o,t=n.filter(function(e){return e.id!==o||(i&&a.action(k.setSelectedConversationInfo)(Object.assign({},e,{is_closed:!0})),!1)});a.action(k.setConversations)(t),i||a.action(O(a).clearMessages)(),d({method:"conversations:update",payload:t})},closeConversation:function(e,t){return xs({uid:cs(),method:"close_conversation_req",params:{conversation_id:t}})},selectConversation:function(e,t){e=e.conversations.find(function(e){return e.id===t});a.action(k.setIsSteadyEnabled)(!1),a.action(k.setSelectedConversationInfo)(e),a.action(O(a).clearMessages)(),a.action(O(a).setPastMessagesLoaded)(!1),a.action(O(a).setNewMessagesLoaded)(!1),Promise.all([a.action(O(a).getPastMessages)(),a.action(O(a).getNewMessages)()]).finally(function(){a.action(k.setIsSteadyEnabled)(!0)})},updateLastMessage:function(e,t,n){var e=e.conversations,r=[],o=[],e=(e.forEach(function(e){e.id!==n?o.push(e):r.push(Object.assign({},e,{last_message:t||!1}))}),r.concat(o));a.action(k.setConversations)(e),d({method:"conversations:update",payload:e})}}};function Ss(e){var t=e.messages,n=e.conversationId,r=e.isMultiDialogsEnabled,o=e.conversations;return t.filter(function(e){return r?e.conversation_id===n&&n||!n&&!o.length&&e.id===Mn:e.conversation_id===n})}function Ms(e,t,n){var r;return"gte"===n?r=Ga(e,function(e){return e.id&&e.id!==Mn&&e.created_at})||{}:"lte"===n&&(r=Xa(e,function(e){return e.id&&e.id!==Mn&&e.created_at})),r||"lte"===n?xs({method:"history",params:Object.assign({},t,((e={})[n]=r&&r.created_at&&parseInt(r.created_at,10)||0,e))}):Promise.resolve()}function ks(e,t){return e=Ha(e,function(e){return!za(t,{id:e.id})}),ts(e,"created_at")}function Os(e){var t=e.button,n=e.sendMessage,r=t.text;return b("div",{className:I.button_wrapper},b("button",{type:"button",className:I.button,onClick:function(){return n(r)}},b("div",{className:I.button_text},r)))}function Is(e){var t=(e=e.button).url,e=e.text;return b("div",{className:I.button_wrapper},b("a",{href:t,className:I.button,target:"_blank",rel:"noopener noreferrer"},b(Pa,{className:I.button_icon}),b("div",{className:I.button_text},e)))}function Bs(e){var t=e.keyboard,n=e.isLastMessage,r=e.sendMessage,o=function(e){e=e[0];return m(e)?e.url?"url":"inline":null}(e=t.inline);return!(!o||"inline"===o&&!n)&&b("div",{className:I.keyboard},b("div",{className:x(I.buttons,I[o+"_buttons"])},jo(e,function(e,t){switch(o){case"inline":return b(Os,{key:t,button:e,sendMessage:r});case"url":return b(Is,{key:t,button:e});default:throw new Error(o+" is an unknown button type.")}})))}var Ls,js=function(e,t,n){e=e.messages;return{messages:jo(e,function(e){return e.id===t?f({},e,n):e})}},Ds=function(e){var t=e.messages,n=e.conversations,r=e.conversationId;if(!e.isMultiDialogsEnabled)return t.filter(function(e){return e.conversation_id===r}).slice(-20);var o=ss(t,"conversation_id"),e=n.reduce(function(e,t){var t=t.id,n=o[t];return n&&(n=n.slice(-(t===r?20:1)),e.push.apply(e,n)),e},[]);return e.length||(n=za(t,{id:Mn}))&&e.unshift(n),e},O=function(l){return{sendMessage:function(e,t){var n=l.getState(),r=n.selectedConversationInfo,r=(r=void 0===r?{}:r).id,n=n.isMultiDialogsEnabled;return(Ls=Ls||!n||r?Promise.resolve():l.action(As(l).addConversation)()).then(function(){return Ls=null,l.action(O(l)._sendMessage)(t)})},_sendMessage:function(e,t){var o=cs(),n=l.getState(),r=n.messages,i=n.selectedConversationInfo,i=(i=void 0===i?{}:i).id,a=n.isMultiDialogsEnabled,n=Ts(l,{id:o,text:t,is_out:!0,created_at:Date.now(),status:wn});return a&&l.action(As(l).updateLastMessage)(n,i),l.setState({messages:r.concat([n])}),xs({uid:o,method:"message",params:Ts(l,{message:{type:"text",text:t}})}).then(function(e){var t=l.getState(),n=t.messages,r=t.selectedConversationInfo,r=(r=void 0===r?{}:r).id,t=t.conversations,r=Ss({messages:n,conversationId:r,isMultiDialogsEnabled:a,conversations:t}),t=za(n,function(e){return e.id===o});if(!t)return{};n=Object.assign({},C(e,"response.payload.message",{}),{status:xn});return l.action(js)(t.id,n),1===Ha(r,function(e){return e.is_out}).length&&ds().then(function(){return l.action(k.updateManager)()}),l.action(O(l).sendWelcomeMessage)(),{}},function(){return l.action(js)(o,f({},{status:Tn}))})},readLastMessage:function(e){var t=e.badge,n=e.messages,r=e.lastReadTimestamp,e=e.lastReadMessageId,o=Date.now(),i=Ft(n),n=i&&!i.is_out&&i.id!==e;return!t||o<=r||!n?{}:xs({method:"read",params:Ts(l,{timestamp:o})}).then(function(e){return l.action(k.updateBadge)(e.response.payload.badge),{lastReadMessageId:i.id,lastReadTimestamp:o}})},getNewMessages:function(e){var t=e.messages,n=e.newMessagesLoaded,r=e.selectedConversationInfo,o=(r=void 0===r?{}:r).id,i=e.isMultiDialogsEnabled,r=e.conversations;if(n)return Promise.resolve({});e=Ss({messages:t,conversationId:o,isMultiDialogsEnabled:i,conversations:r}),n=Ts(l,{});return Ms(e,n,"gte").then(function(e){var t=l.getState(),n=t.messages,r=t.selectedConversationInfo,r=(r=void 0===r?{}:r).id,t=t.conversations;if(r!==o)return{};r=ks(C(e,"response.payload.messages",[]),Ss({messages:n,conversationId:o,isMultiDialogsEnabled:i,currentConversations:t}));return r.length?{newMessageDelimiterId:r[0].id,messages:n.concat(r)}:{newMessagesLoaded:!0}})},getPastMessages:function(e){var t=e.selectedConversationInfo,r=(t=void 0===t?{}:t).id,t=e.messages,n=e.pastMessagesLoaded,o=e.isMultiDialogsEnabled,e=e.conversations;if(n)return Promise.resolve({});n=Ss({messages:t,conversationId:r,isMultiDialogsEnabled:o,conversations:e}),t=Ts(l,{});return Ms(n,t,"lte").then(function(e){var t=l.getState(),n=t.messages,t=t.selectedConversationInfo,t=(t=void 0===t?{}:t).id,e=ks(C(e,"response.payload.messages",[]),n);return t!==r?{}:e.length?{messages:e.concat(n)}:{pastMessagesLoaded:!0}})},unsetNewMessageDelimiter:function(){return{newMessageDelimiterId:null}},setNewMessagesLoaded:function(e,t){return{newMessagesLoaded:t}},setPastMessagesLoaded:function(e,t){return{pastMessagesLoaded:t}},clearMessages:function(){var e=l.getState(),t=e.messages,n=e.selectedConversationInfo,n=(n=void 0===n?{}:n).id,r=e.conversations,e=e.isMultiDialogsEnabled;return{messages:Ds({conversations:r,conversationId:n,messages:t,isMultiDialogsEnabled:e})}},tryToAddWelcomeMessage:function(e){var t=l.getState(),n=t.messages,r=t.isSocketInited,o=t.isMessagesFetched,i=t.selectedConversationInfo,i=(i=void 0===i?{}:i).id,a=t.isMultiDialogsEnabled,t=t.conversations,s=fi();if(Bo(s))return{welcomeMessageShouldBeBubbled:!1};function u(){l.action(k.updateBadge)(l.getState().badge||1),d({method:"bubble"})}if(!r||!a&&!o)return u(),{shouldTryToAddWelcomeMessageAgain:!0,welcomeMessageShouldBeBubbled:!0};function c(){l.setState({messages:n.concat([Object.assign({},s,{id:Mn,is_out:!1,created_at:Date.now()})])})}r=Ss({messages:n,conversationId:i,isMultiDialogsEnabled:a,conversations:t});return a?t.length||r.length||c():r.length||c(),u(),{shouldTryToAddWelcomeMessageAgain:!1,welcomeMessageShouldBeBubbled:!0}},showWelcomeMessage:function(){},sendWelcomeMessage:function(e){e=e.messages,e=za(e,{id:Mn});return e?xs({method:"welcome_message",params:Ts(l,{message:e})}).then(function(e){var t=C(e,"response.payload.message");if(!t)return{};var e=l.getState(),n=e.messages,e=e.badge;return l.action(k.updateBadge)(e||1),{welcomeMessageShouldBeBubbled:!1,messages:za(n,{id:t.id})?n:jo(n,function(e){return e.id===Mn?t:e})}}):Promise.resolve({})}}},qo=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t){return Po(e,function(n,e){return Ra(Te(e)?e(t):e,function(e,t){n[t]=e}),n},{})}}(O,k,As),I={keyboard:"styles_keyboard__3U_fp",buttons:"styles_buttons__xo34L",button_wrapper:"styles_button_wrapper__1tSwl",button:"styles_button__3deB8",button_text:"styles_button_text__1ZIj5",button_icon:"styles_button_icon__2Rj9h",url_buttons:"styles_url_buttons__IqHel"},Ns=(c(".styles_keyboard__3U_fp {\n width: 100%;\n padding: 6px 22px 1px 1px;\n}\n\n.styles_buttons__xo34L {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.styles_button_wrapper__1tSwl {\n margin-left: 0;\n margin-right: auto;\n max-width: 100%;\n}\n.styles_button_wrapper__1tSwl:not(:last-child) {\n margin-bottom: 4px;\n}\n\n.styles_button__3deB8 {\n outline: none;\n cursor: pointer;\n border-radius: 10px;\n padding: 6px 10px 6px 9px;\n margin: 0;\n border: 1px solid rgba(60, 108, 249, 0.5);\n background: #e8eafd;\n max-width: 100%;\n}\n.styles_button__3deB8:hover,\n.styles_button__3deB8:focus {\n background: linear-gradient(90deg, #425ff5 1.6%, #3082fe 124.66%), #f3f3f3;\n}\n.styles_button__3deB8:hover .styles_button_text__1ZIj5,\n.styles_button__3deB8:focus .styles_button_text__1ZIj5 {\n color: #ffffff;\n}\n.styles_button__3deB8:hover .styles_button_icon__2Rj9h,\n.styles_button__3deB8:focus .styles_button_icon__2Rj9h {\n fill: #ffffff;\n}\n\n.styles_button_text__1ZIj5 {\n color: #3c6cf9;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: 14px;\n line-height: 14px;\n letter-spacing: -0.2px;\n max-width: 100%;\n}\n.styles_button_icon__2Rj9h {\n height: 16px;\n min-width: 16px;\n max-width: 16px;\n margin: -1px 3px -1px -2px;\n fill: #3c6cf9;\n}\n\n.styles_url_buttons__IqHel .styles_button_wrapper__1tSwl {\n margin-left: 0;\n margin-right: auto;\n}\n.styles_url_buttons__IqHel .styles_button__3deB8 {\n display: flex;\n align-items: center;\n justify-content: center;\n\n text-decoration: none;\n}\n"),wt([],qo)(function(e){var t=e.keyboard,n=e.sendMessage,e=e.isLastMessage;return b(Bs,{keyboard:t,sendMessage:n,isLastMessage:e})}));var Ps=function(e,t,n){(void 0===n||On(e[t],n))&&(void 0!==n||t in e)||kn(e,t,n)},Rs=K(function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?o.Buffer:void 0,r=n?n.allocUnsafe:void 0;e.exports=function(e,t){return t?e.slice():(t=e.length,t=r?r(t):new e.constructor(t),e.copy(t),t)}});var Us=function(e){var t=new e.constructor(e.byteLength);return new Er(t).set(new Er(e)),t};var Hs=function(e,t){return t=t?Us(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.length)};var Fs=function(e,t){var n=-1,r=e.length;for(t=t||Array(r);++n<r;)t[n]=e[n];return t},zs=Object.create;function Vs(){}var Ws=function(e){if(!m(e))return{};if(zs)return zs(e);Vs.prototype=e;e=new Vs;return Vs.prototype=void 0,e},Gs=t(Object.getPrototypeOf,Object);var qs=function(e){return"function"!=typeof e.constructor||be(e)?{}:Ws(Gs(e))};var Xs=function(e){return a(e)&&s(e)},v=Function.prototype,l=Object.prototype,Ys=v.toString,Zs=l.hasOwnProperty,Ks=Ys.call(Object);var $s=function(e){return!(!a(e)||"[object Object]"!=ie(e))&&(null===(e=Gs(e))||"function"==typeof(e=Zs.call(e,"constructor")&&e.constructor)&&e instanceof e&&Ys.call(e)==Ks)};var Qs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Js=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eu=Object.prototype.hasOwnProperty;var tu=function(e){if(!m(e))return Js(e);var t,n=be(e),r=[];for(t in e)("constructor"!=t||!n&&eu.call(e,t))&&r.push(t);return r};var nu=function(e){return s(e)?me(e,!0):tu(e)};var ru=function(e){return Ln(e,nu(e))};var ou=function(e,t,n,r,o,i,a){var s,u,c,l=Qs(e,n),f=Qs(t,n),d=a.get(f);d||((t=void 0===(d=i?i(l,f,n+"",e,t,a):void 0))&&(u=!(s=p(f))&&le(f),c=!s&&!u&&ge(f),d=f,s||u||c?d=p(l)?l:Xs(l)?Fs(l):u?Rs(f,!(t=!1)):c?Hs(f,!(t=!1)):[]:$s(f)||ue(f)?ue(d=l)?d=ru(l):m(l)&&!Te(l)||(d=qs(f)):t=!1),t&&(a.set(f,d),o(d,f,r,i,a),a.delete(f))),Ps(e,n,d)};function iu(){e=cu,t=gt.context[e.__c],(n=kt(_t++,9)).__c=e;var e,t,n,r=t?(null==n.__&&(n.__=!0,t.sub(gt)),t.props.value):e.__;return Bt(function(){return su({},uu,r)})}var au=function r(o,i,a,s,u){o!==i&&Y(i,function(e,t){var n;u=u||new mr,m(e)?ou(o,i,t,a,r,s,u):(n=s?s(Qs(o,t),e,t+"",o,i,u):void 0,Ps(o,t,n=void 0===n?e:n))},nu)},su=u(function(e,t,n){au(e,t,n)}),uu={time_format:24,font_family:"",system_color:"",system_font:"",background:"",background_image:"",messages_scroller:{padding:""},header:{height:"",height_with_selector:"",background:"",color:""},message:{outgoing_background:"",outgoing_color:"",incoming_background:"",incoming_color:"",border_radius:"",background_mask:!0,font:"",padding:"",margin:""},compose:{height:29,button_background:""}},cu=pt(uu),lu=cu.Provider;var fu=function(e,t){return e&&Ln(t,Ee(t),e)};var du=function(e,t){return e&&Ln(t,nu(t),e)};var hu=function(e,t){return Ln(e,Nr(e),t)},pu=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Or(t,Nr(e)),e=Gs(e);return t}:Lr;var _u=function(e,t){return Ln(e,pu(e),t)};var gu=function(e){return Ir(e,nu,pu)},vu=Object.prototype.hasOwnProperty;var mu=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vu.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var yu=function(e,t){return t=t?Us(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength)},bu=/\w*$/;var wu=function(e){var t=new e.constructor(e.source,bu.exec(e));return t.lastIndex=e.lastIndex,t},Xo=e?e.prototype:void 0,xu=Xo?Xo.valueOf:void 0;var Cu=function(e){return xu?Object(xu.call(e)):{}};var Tu=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Us(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return yu(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Hs(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return wu(e);case"[object Set]":return new r;case"[object Symbol]":return Cu(e)}};function Eu(e){return a(e)&&"[object Map]"==Kr(e)}var Yo=n&&n.isMap,Au=Yo?_e(Yo):Eu;function Su(e){return a(e)&&"[object Set]"==Kr(e)}var h=n&&n.isSet,Mu=h?_e(h):Su,ku="[object Arguments]",Ou="[object Function]",Iu="[object Object]",B={};B[ku]=B["[object Array]"]=B["[object ArrayBuffer]"]=B["[object DataView]"]=B["[object Boolean]"]=B["[object Date]"]=B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Map]"]=B["[object Number]"]=B[Iu]=B["[object RegExp]"]=B["[object Set]"]=B["[object String]"]=B["[object Symbol]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B["[object Error]"]=B[Ou]=B["[object WeakMap]"]=!1;var Bu=function n(r,o,i,e,t,a){var s,u=1&o,c=2&o,l=4&o;if(void 0!==(s=i?t?i(r,e,t,a):i(r):s))return s;if(!m(r))return r;e=p(r);if(e){if(s=mu(r),!u)return Fs(r,s)}else{var f=Kr(r),d=f==Ou||"[object GeneratorFunction]"==f;if(le(r))return Rs(r,u);if(f==Iu||f==ku||d&&!t){if(s=c||d?{}:qs(r),!u)return c?_u(r,du(s,r)):hu(r,fu(s,r))}else{if(!B[f])return t?r:{};s=Tu(r,f,u)}}d=(a=a||new mr).get(r);if(d)return d;a.set(r,s),Mu(r)?r.forEach(function(e){s.add(n(e,o,i,e,r,a))}):Au(r)&&r.forEach(function(e,t){s.set(t,n(e,o,i,t,r,a))});var t=l?c?gu:Pr:c?keysIn:Ee,h=e?void 0:t(r);return X(h||r,function(e,t){h&&(e=r[t=e]),Bn(s,t,n(e,o,i,t,r,a))}),s};var Lu=function(e,t){return t.length<2?e:xo(e,Uo(t,0,-1))};var ju=function(e,t){return t=bo(t,e),null==(e=Lu(e,t))||delete e[wo(Ft(t))]};function Du(e){return $s(e)?void 0:e}function Nu(e){return(null==e?0:e.length)?Ka(e,1):[]}var Pu=function(e){return _n(tn(e,void 0,Nu),e+"")}(function(t,e){var n={};if(null==t)return n;for(var r=!1,o=(e=Xt(e,function(e){return e=bo(e,t),r=r||1<e.length,e}),Ln(t,gu(t),n),r&&(n=Bu(n,7,Du)),e.length);o--;)ju(n,e[o]);return n}),Ru={compose_placeholder:"Написать сообщение...",delivery_status_sending:"Отправляется",delivery_status_sent:"Отправлено",delivery_status_read:"Прочитано",delivery_status_error:"Ошибка",powered_by:"Работает на",new_messages:"Новые сообщения",Conversation:"Беседа","New conversation":"Новая беседа","Close conversation":"Завершить беседу"},Uu={compose_placeholder:"Write a message...",delivery_status_sending:"Sending",delivery_status_sent:"Sent",delivery_status_read:"Read",delivery_status_error:"Error",powered_by:"Powered by",new_messages:"New messages",Conversation:"Conversation","New conversation":"New conversation","Close conversation":"Close conversation"},Hu={compose_placeholder:"Escribir un mensaje...",delivery_status_sending:"Envío",delivery_status_sent:"Enviado",delivery_status_read:"Leer",delivery_status_error:"Error",powered_by:"Desarrollado por",new_messages:"Mensajes nuevos",Conversation:"Conversación","New conversation":"Nueva conversación","Close conversation":"Conversación privada"},Fu={compose_placeholder:"Escreva uma mensagem ...",delivery_status_sending:"Enviando",delivery_status_sent:"Enviado",delivery_status_read:"Ler",delivery_status_error:"Erro",powered_by:"Distribuído por",new_messages:"Novas mensagens",Conversation:"Conversa","New conversation":"Nova conversação","Close conversation":"Fechar conversa"},zu=function(){return(_("AMO_LIVECHAT_USER_LOCALE")||{}).extends||_("AMO_LIVECHAT_LOCALE")},Vu=function(){var e=_("AMO_LIVECHAT_USER_LOCALE")||{};return{date:e.date_format||"",time:e.time_format||""}};function L(e){var t=_("AMO_LIVECHAT_USER_LOCALE"),n={};switch(zu()){case"ru":n=Ru;break;case"es":n=Hu;break;case"pt":n=Fu;break;default:n=Uu}return(n=m(t)&&!Bo(t)?f({},n,Pu(t,["extends","date_format","time_format"])):n)[e]||e}function Wu(e){return e=e.author,b("div",{className:j.author},b(hi,{url:e.avatar,name:e.name,className:j.author_avatar}),b("div",{className:j.author_name},e.name))}function Gu(e){void 0===(y=e.prevMessage)&&(y={});var t,n=e.curMessage,r=e.isLastMessage,e=e.newMessageDelimiterId,o=iu(),i=C(o,"message",{}),a=n.id,s=n.is_out,u=n.delivery_status,c=n.text,l=n.created_at,f=n.keyboard,d=n.type,h=n.author,p=(l=l,g=!Bo(g=y)&&new Date(g.created_at),l=new Date(l),p=new Date,p=l.getFullYear()===p.getFullYear()&&l.getDate()===p.getDate(),_=Vu(),v=_.date||"dd.MM",m=_.time||"HH:mm",g&&p&&g.getHours()===l.getHours()?"":(p||(!_.date&&g&&g.getFullYear()!==l.getFullYear()&&(v+=".yyyy"),m=v+" "+m),Na(l,m))),_=a&&e===a,g=$t(Sn,d),v=!s&&f,l=!qi(y.author,h),m=h&&!h.is_bot&&h.avatar&&h.name&&l&&yn(),e=s?i.outgoing_background:i.incoming_background,a=s?i.outgoing_color:i.incoming_color,d=i.border_radius,y=i.font,l=i.padding,i=i.background_mask;return b("div",{className:x(((t={})[j.message_wrapper]=!0,t[j.message_wrapper_outgoing]=s,t[j.message_wrapper_date]=p,t[j.message_wrapper_date_delimiter]=_,t))},_&&b("div",{className:j.delimiter},L("new_messages")),p&&b("div",{className:j.date,style:{font:o.system_font,color:o.system_color}},p),m&&b(Wu,{author:h}),b("div",{className:x(((t={})[j.message]=!0,t[j.message_outgoing]=s,t[j.message_stretched]=g,t[j.message_stretched]=g,t[j.message_without_mask]=!i,t)),style:{background:e?"none":"",backgroundColor:e,color:a,borderRadius:d,padding:l}},c&&b("div",{className:j.text,style:{font:y},dangerouslySetInnerHTML:{__html:(_=Gi(c),Ro(_||"",qu,function(e){return"<a href="+e+' target="_blank" rel="noreferer noopener">'+e+"</a>"}))}}),g&&b(gi,{message:n}),v&&b(Ns,{keyboard:f,isLastMessage:r})),s&&r&&b("div",{className:j.delivery_status,style:{position:o.system_font?"static":void 0,font:o.system_font,color:o.system_color}},function(e){switch(e){case wn:return L("delivery_status_sending");case xn:return L("delivery_status_sent");case Cn:return L("delivery_status_read");case Tn:return L("delivery_status_error");default:return null}}(u)))}var j={message_wrapper:"styles_message_wrapper__3GZur",message_wrapper_outgoing:"styles_message_wrapper_outgoing__7UtSi",message_wrapper_date_delimiter:"styles_message_wrapper_date_delimiter__1vXc8",message_wrapper_date:"styles_message_wrapper_date__3tHj4",delimiter:"styles_delimiter__Zza9w",date:"styles_date__1m0j8",message:"styles_message__2NxOH",message_stretched:"styles_message_stretched__2YPcD",message_outgoing:"styles_message_outgoing__3Iu4e",message_without_mask:"styles_message_without_mask__3KQWm",author_name:"styles_author_name__2kJQG",text:"styles_text__2dASC",delivery_status:"styles_delivery_status__2Ckp_",author:"styles_author__2oSsP",author_avatar:"styles_author_avatar__1YnoQ"},qu=(c("\n.styles_message_wrapper__3GZur {\n position: relative;\n display: flex;\n flex-direction: column;\n padding-top: 4px;\n}\n.styles_message_wrapper_outgoing__7UtSi {\n padding-top: 3px; /* Из-за отсутствия тени, отступ кажется больше */\n}\n.styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) + .styles_message_wrapper_outgoing__7UtSi,\n.styles_message_wrapper_outgoing__7UtSi + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) {\n padding-top: 12px;\n}\n.styles_message_wrapper_date_delimiter__1vXc8,\n.styles_message_wrapper_date__3tHj4 {\n padding-top: 10px !important;\n}\n\n.styles_delimiter__Zza9w {\n display: flex;\n align-items: center;\n justify-content: center;\n\n white-space: nowrap;\n margin: 0 -13px 9px;\n padding: 0 14px;\n font-size: 12px;\n line-height: 16px;\n color: #B1B8BA;\n}\n.styles_delimiter__Zza9w::before {\n margin-right: 14px;\n}\n.styles_delimiter__Zza9w::after {\n margin-left: 14px;\n}\n.styles_delimiter__Zza9w::before,\n.styles_delimiter__Zza9w::after {\n content: '';\n width: 100%;\n height: 2px;\n background: #B1B8BA;\n opacity: 0.3;\n margin-top: 1px;\n}\n.styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) .styles_delimiter__Zza9w {\n margin-top: 3px;\n}\n\n.styles_date__1m0j8 {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n line-height: 12px;\n color: #B1B8BA;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n margin-bottom: 8px;\n}\n\n.styles_message__2NxOH {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n padding: 10px 11px;\n background: #FDFBFB;\n border-radius: 10px;\n font-size: 14px;\n line-height: 18px;\n max-width: 65%;\n}\n.styles_message__2NxOH:after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 10px;\n background: rgba(0, 0, 0, 0.12);\n left: 0;\n bottom: -1px;\n z-index: -1;\n}\n.styles_message_stretched__2YPcD {\n width: 65%;\n}\n.styles_message__2NxOH:not(.styles_message_outgoing__3Iu4e) {\n margin-right: auto;\n} \n.styles_message_outgoing__3Iu4e {\n margin-left: auto;\n background: linear-gradient(90deg, #425FF5 1.6%, #3082FE 124.66%), #F3F3F3;\n color: #fff;\n}\n.styles_message_outgoing__3Iu4e:after {\n background: none;\n}\n\n.styles_message_without_mask__3KQWm:after {\n content: unset;\n}\n\n.styles_author_name__2kJQG {\n color: #8F9A9D;\n}\n\n.styles_text__2dASC {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n line-height: 18px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n.styles_text__2dASC a {\n color: #313942;\n}\n.styles_message_outgoing__3Iu4e .styles_text__2dASC a {\n color: #fff;\n}\n\n.styles_delivery_status__2Ckp_ {\n position: absolute;\n right: 0;\n bottom: -15px;\n display: flex;\n justify-content: flex-end;\n font-size: 12px;\n line-height: 12px;\n color: #B1B8BA;\n padding-top: 3px;\n}\n\n.styles_author__2oSsP {\n display: flex;\n align-items: center;\n margin: 8px 0 4px 4px;\n}\n.styles_message_wrapper_outgoing__7UtSi + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) .styles_author__2oSsP {\n margin-top: 0;\n}\n.styles_author_avatar__1YnoQ {\n height: 24px;\n width: 24px;\n overflow: hidden;\n -o-object-fit: cover;\n object-fit: cover;\n border-radius: 50%;\n}\n.styles_author_name__2kJQG {\n margin-left: 5px;\n margin-top: 6px;\n color: #B1B8BA;\n font-size: 12px;\n line-height: 14px;\n}\n"),/(?:https?:)?\/\/(?:[\w-]+\.)+[\w#-./@~]*(?:\?(?:[\w!#$%&,-.;=]+)?)?/gi),Xu=wt(["newMessageDelimiterId"])(function(e){return b(Gu,e)}),Yu="styles_messages__MlKbB",Zu="styles_messages_border__D4TM2",Ku="styles_messages_custom_bg__37cwb",$u="styles_messages_custom_bg_image__3gibe",Qu="styles_messages_inner__3riuD",Ju="styles_copyright__2ueu9",ec=(c('\n.styles_messages__MlKbB {\n height: 100%;\n width: 100%;\n overflow-y: scroll;\n overflow-x: hidden;\n}\n.styles_messages__MlKbB:before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n background-color: #F1F2F8;\n background-image: url(\'/src/svg/background-mask.svg\');\n background-repeat: repeat;\n}\n.styles_messages__MlKbB::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.styles_messages_border__D4TM2:before {\n content: "";\n border: 1px solid #CDCED2;\n border-top: 0;\n border-bottom-right-radius: 13px;\n border-bottom-left-radius: 13px;\n}\n.styles_messages_custom_bg__37cwb:before {\n background-image: none;\n background-color: inherit;\n border-color: transparent;\n}\n\n.styles_messages_custom_bg_image__3gibe:before {\n background-image: inherit;\n background-color: inherit;\n border-color: transparent;\n}\n\n.styles_messages_inner__3riuD {\n position: relative;\n z-index: 1;\n min-height: 100%;\n padding: 0 14px 116px;\n}\n\n.styles_copyright__2ueu9 {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n bottom: 26px;\n left: 0;\n width: 100%;\n z-index: 0;\n color: #B1B8BA;\n font-size: 12px;\n line-height: 14px;\n white-space: pre;\n}\n.styles_copyright__2ueu9 a {\n text-decoration: none;\n color: #3C6CF9\n}'),function(t){function e(e){t.call(this,e),this.state={width:"100%"},this.lastDiff=0,this.restoreScrollTop=this.restoreScrollTop.bind(this),this.checkIsStickToBottom=this.checkIsStickToBottom.bind(this),this.updateWidth=this.updateWidth.bind(this)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.componentDidMount=function(){this.messages&&(this.messages.scrollTop=this.messages.scrollHeight,this.updateWidth()),this.initSteady(),window.addEventListener("resize",this.updateWidth)},e.prototype.getSnapshotBeforeUpdate=function(){this.scrollHeight=this.messages.scrollHeight,this.maxScrollTop=this.scrollHeight-this.messages.offsetHeight,this.scrollTop=this.messages.scrollTop},e.prototype.componentDidUpdate=function(e){var t=this,e=e.isSteadyEnabled,n=this.props,r=n.readLastMessage,o=n.composeHeight,i=n.isSteadyEnabled;r(),this.lastDiff=this.messages.scrollHeight-this.scrollHeight-o,this.checkIsStickToBottom()&&(this.messages.scrollTop=this.messages.scrollHeight),e!==i&&(i?setTimeout(function(){t.toggleSteady(i)}):this.toggleSteady(i))},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.updateWidth),this.toggleSteady(!1)},e.prototype.updateWidth=function(){var e;this.messages&&(e=this.messages.offsetWidth-this.messages.clientWidth,this.setState({width:window.innerWidth+e}))},e.prototype.initSteady=function(){var n=this;this.steadyTop=new Fi({scrollElement:this.messages,conditions:{top:0},handler:function(e,t){n.props.getPastMessages().then(function(){n.restoreScrollTop("up"),t()})}}),this.steadyBottom=new Fi({scrollElement:this.messages,conditions:{bottom:0},handler:function(e,t){n.props.unsetNewMessageDelimiter(),n.props.getNewMessages().then(function(){n.restoreScrollTop(),t()})}})},e.prototype.toggleSteady=function(e){e?this.resumeSteady():this.stopSteady()},e.prototype.stopSteady=function(){this.steadyTop.stop(),this.steadyBottom.stop()},e.prototype.resumeSteady=function(){this.steadyTop.resume(),this.steadyBottom.resume()},e.prototype.restoreScrollTop=function(e){0<this.lastDiff&&!this.checkIsStickToBottom()&&(e="up"===e?this.lastDiff:-this.lastDiff,this.messages.scrollTop=this.messages.scrollTop+e,this.lastDiff=0)},e.prototype.checkIsStickToBottom=function(){return this.scrollTop+10>this.maxScrollTop},e.prototype.render=function(){var t=this,e=this.props,n=e.messages,r=e.theme,o=e.isMobile,i=e.selectorOpenState,a=e.conversations,s=e.selectedConversationInfo,s=s=void 0===s?{}:s,u=s.id,s=s.is_closed,e=e.isMultiDialogsEnabled,c=this.state.width,l="widget"===_("AMO_LIVECHAT_MODE"),f=Math.max(C(r,"compose.height",0),29),f=29<f?f-16:"",d=i!==En,i=i===An,h=Ss({messages:n,conversationId:u,isMultiDialogsEnabled:e,conversations:a});return b("div",{ref:function(e){t.messages=e},className:x(((n={})[Yu]=!0,n[Zu]=l&&!o,n[Ku]=Boolean(r.background)&&!r.background_image,n[$u]=r.background_image,n)),style:{width:c,marginBottom:d&&!o||s?0:38,overflow:d&&!o?"hidden":void 0,backgroundColor:r.background,backgroundImage:r.background_image},onClick:function(){return document.activeElement.blur()}},b("div",{className:Qu,style:{padding:r.messages_scroller.padding}},!i&&jo(h,function(e,t){return b(Xu,{prevMessage:h[t-1],curMessage:e,isLastMessage:h.length===t+1})}),_("AMO_LIVECHAT_IS_COPYRIGHT_VISIBLE")&&b("span",{className:Ju,style:{color:r.system_color,bottom:f}},L("powered_by")," ",b("a",{href:function(){switch(zu()){case"pt":return Ut()+"/br/";case"es":return Ut()+"/es/";default:return Ut()}}(),target:"_blank",rel:"noopener noreferrer"},_("AMO_BRAND_NAME")))))},e}(Qe)),tc=wt(["messages","device","selectorOpenState","selectedConversationInfo","isSteadyEnabled","isMultiDialogsEnabled","conversations"],qo)(function(e){var t=e.messages,n=e.device,r=e.composeHeight,o=e.selectorOpenState,i=e.getNewMessages,a=e.getPastMessages,s=e.readLastMessage,u=e.theme,c=e.unsetNewMessageDelimiter,l=e.selectedConversationInfo,f=e.isSteadyEnabled,d=e.isMultiDialogsEnabled,e=e.conversations;return b(ec,{composeHeight:r,messages:t,isMobile:"mobile"===n,selectorOpenState:o,getNewMessages:i,getPastMessages:a,readLastMessage:s,theme:u,selectedConversationInfo:l,unsetNewMessageDelimiter:c,isSteadyEnabled:f,isMultiDialogsEnabled:d,conversations:e})}),nc=K(function(e,t){var l="function"==typeof Map?new Map:function(){var n=[],r=[];return{has:function(e){return-1<n.indexOf(e)},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){e=n.indexOf(e);-1<e&&(n.splice(e,1),r.splice(e,1))}}}(),f=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){f=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function n(r){var n,o,i,e,a,t;function s(e){var t=r.style.width;r.style.width="0px",r.offsetWidth,r.style.width=t,r.style.overflowY=e}function u(){var e,t;0!==r.scrollHeight&&(e=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(r),t=document.documentElement&&document.documentElement.scrollTop,r.style.height="",r.style.height=r.scrollHeight+n+"px",o=r.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t))}function c(){u();var e=Math.round(parseFloat(r.style.height)),t=window.getComputedStyle(r,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):r.offsetHeight;if(n<e?"hidden"===t.overflowY&&(s("scroll"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight):"hidden"!==t.overflowY&&(s("hidden"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight),i!==n){i=n;e=f("autosize:resized");try{r.dispatchEvent(e)}catch(e){}}}r&&r.nodeName&&"TEXTAREA"===r.nodeName&&!l.has(r)&&(i=o=n=null,e=function(){r.clientWidth!==o&&c()},a=function(t){window.removeEventListener("resize",e,!1),r.removeEventListener("input",c,!1),r.removeEventListener("keyup",c,!1),r.removeEventListener("autosize:destroy",a,!1),r.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach(function(e){r.style[e]=t[e]}),l.delete(r)}.bind(r,{height:r.style.height,resize:r.style.resize,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap}),r.addEventListener("autosize:destroy",a,!1),"onpropertychange"in r&&"oninput"in r&&r.addEventListener("keyup",c,!1),window.addEventListener("resize",e,!1),r.addEventListener("input",c,!1),r.addEventListener("autosize:update",c,!1),r.style.overflowX="hidden",r.style.wordWrap="break-word",l.set(r,{destroy:a,update:c}),"vertical"===(t=window.getComputedStyle(r,null)).resize?r.style.resize="none":"both"===t.resize&&(r.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c())}function r(e){e=l.get(e);e&&e.destroy()}function o(e){e=l.get(e);e&&e.update()}var i=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((i=function(e){return e}).destroy=function(e){return e},i.update=function(e){return e}):((i=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],n),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},i.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e}),t.default=i,e.exports=t.default});function rc(e){return b("svg",Object.assign({},{width:"44",height:"44",viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},e),b("path",{d:"M22 44C34.1503 44 44 34.1503 44 22C44 9.84974 34.1503 0 22 0C9.84974 0 0 9.84974 0 22C0 34.1503 9.84974 44 22 44Z"}),b("path",{d:"M12.4018 33.2906L14.3762 24.7405C14.4541 24.3767 14.7658 24.0908 15.1555 24.0389L26.1964 22.8954C26.5081 22.8694 26.5081 22.4016 26.1964 22.3497L15.1555 21.2842C14.7658 21.2582 14.4541 20.9723 14.3762 20.6085L12.4018 12.0844C12.2199 11.3568 12.9993 10.7591 13.6747 11.0969L35.2629 21.9079C35.9124 22.2457 35.9124 23.1813 35.2629 23.5191L13.6747 34.2781C12.9993 34.6159 12.2199 34.0182 12.4018 33.2906Z",fill:"white"}))}function oc(e){return b("svg",Object.assign({},{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.50012 17.5L8.5 17.4015V17.5C6.81886 17.5 5.17547 17.0015 3.77766 16.0675C2.37984 15.1335 1.29037 13.806 0.647028 12.2528C0.00368292 10.6996 -0.164645 8.99057 0.163329 7.34173C0.491303 5.6929 1.30085 4.17834 2.4896 2.9896C3.67834 1.80085 5.1929 0.991303 6.84173 0.663329C8.49057 0.335355 10.1996 0.503683 11.7528 1.14703C13.306 1.79037 14.6335 2.87984 15.5675 4.27766C16.5015 5.67547 17 7.31886 17 9V9.00012C16.9972 11.2536 16.1008 13.4139 14.5074 15.0074C12.9139 16.6008 10.7536 17.4972 8.50012 17.5ZM4.4637 2.95926C5.65842 2.16097 7.06302 1.73488 8.49989 1.73486C10.4261 1.73703 12.2728 2.50317 13.6348 3.8652C14.9968 5.22723 15.763 7.07391 15.7651 9.00011C15.7651 10.437 15.339 11.8416 14.5407 13.0363C13.7424 14.231 12.6078 15.1622 11.2803 15.7121C9.95272 16.262 8.49194 16.4059 7.08264 16.1255C5.67334 15.8452 4.37882 15.1533 3.36277 14.1372C2.34672 13.1212 1.65478 11.8267 1.37446 10.4174C1.09413 9.00806 1.238 7.54728 1.78788 6.21975C2.33777 4.89222 3.26896 3.75756 4.4637 2.95926ZM11.4799 5.53601C10.811 5.53601 10.1636 5.74474 9.62482 6.12619C9.33097 6.33424 9.3444 6.74175 9.58235 6.9797C9.82628 7.22362 10.2052 7.206 10.4776 7.04543C10.779 6.86769 11.125 6.77168 11.4809 6.77168C11.8368 6.77168 12.1828 6.86769 12.4842 7.04543C12.7565 7.20596 13.1355 7.22331 13.379 6.97908C13.6161 6.74131 13.6292 6.33478 13.3361 6.12707C12.7971 5.74506 12.1492 5.53601 11.4799 5.53601ZM5.53022 5.52368C4.86085 5.52368 4.21298 5.73273 3.67394 6.11474C3.38084 6.32245 3.39394 6.72898 3.63104 6.96675C3.87459 7.21098 4.25354 7.19364 4.52584 7.0331C4.82732 6.85536 5.17332 6.75935 5.52918 6.75935C5.88504 6.75935 6.23104 6.85536 6.53252 7.0331C6.80488 7.19367 7.18381 7.21129 7.42774 6.96737C7.66568 6.72942 7.67912 6.32191 7.38526 6.11387C6.84647 5.73241 6.19908 5.52368 5.53022 5.52368ZM5.47531 10.1618C5.24833 9.92205 4.86798 9.85669 4.59188 10.0638C4.32271 10.2657 4.25784 10.6572 4.49237 10.9164C4.93884 11.4099 5.47353 11.8179 6.07047 12.1187C6.824 12.4984 7.65586 12.6967 8.49965 12.6977H8.50019C9.34116 12.6942 10.1697 12.4947 10.9202 12.1151C11.5141 11.8147 12.0462 11.4079 12.4907 10.9164C12.7252 10.6572 12.6603 10.2657 12.3911 10.0638C12.115 9.85671 11.7346 9.92207 11.5076 10.1618C11.1793 10.5086 10.7927 10.7971 10.3642 11.0135C9.78351 11.3069 9.14204 11.4597 8.49148 11.4597C7.84092 11.4597 7.19945 11.3069 6.61876 11.0135C6.19023 10.7971 5.80365 10.5086 5.47531 10.1618Z",fill:"#B1B8BA"}))}var ic="styles_emoji__3Tyxi",ac=(c("\n.styles_emoji__3Tyxi {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 30px;\n height: 30px;\n font-size: 20px;\n cursor: pointer;\n padding-left: 3px;\n padding-top: 4px;\n outline: none;\n\n transition: background .5s;\n}\n\n.styles_emoji__3Tyxi:hover {\n background: rgba(148, 165, 178, 0.65);\n}"),function(e){function t(){e.call(this),this.addEmoji=this.addEmoji.bind(this)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.addEmoji=function(e){this.props.onEmojiAdd(e,this.props.emoji)},t.prototype.render=function(){return 2<this.props.emoji.length?null:b("span",{role:"button",tabIndex:-1,onKeyDown:function(){},onClick:this.addEmoji,className:ic},this.props.emoji)},t}(Qe)),sc=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤔","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","🤓","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","😬","😰","😱","😳","😵","😡","😠","😇","🤠","🤡","🤥","😷","🤒","🤕","🤢","🤧","😈","👿","👹","👺","💀","👻","👽","👾","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🙈","🙉","🙊","👦","👦🏻","👦🏼","👦🏽","👦🏾","👦🏿","👧","👧🏻","👧🏼","👧🏽","👧🏾","👧🏿","👨","👨🏻","👨🏼","👨🏽","👨🏾","👨🏿","👩","👩🏻","👩🏼","👩🏽","👩🏾","👩🏿","👴","👴🏻","👴🏼","👴🏽","👴🏾","👴🏿","👵","👵🏻","👵🏼","👵🏽","👵🏾","👵🏿","👶","👶🏻","👶🏼","👶🏽","👶🏾","👶🏿","👼","👼🏻","👼🏼","👼🏽","👼🏾","👼🏿","👮","👮🏻","👮🏼","👮🏽","👮🏾","👮🏿","🕵","🕵🏻","🕵🏼","🕵🏽","🕵🏾","🕵🏿","💂","💂🏻","💂🏼","💂🏽","💂🏾","💂🏿","👷","👷🏻","👷🏼","👷🏽","👷🏾","👷🏿","👳","👳🏻","👳🏼","👳🏽","👳🏾","👳🏿","👱","👱🏻","👱🏼","👱🏽","👱🏾","👱🏿","🎅","🎅🏻","🎅🏼","🎅🏽","🎅🏾","🎅🏿","🤶","🤶🏻","🤶🏼","🤶🏽","🤶🏾","🤶🏿","👸","👸🏻","👸🏼","👸🏽","👸🏾","👸🏿","🤴","🤴🏻","🤴🏼","🤴🏽","🤴🏾","🤴🏿","👰","👰🏻","👰🏼","👰🏽","👰🏾","👰🏿","🤵","🤵🏻","🤵🏼","🤵🏽","🤵🏾","🤵🏿","🤰","🤰🏻","🤰🏼","🤰🏽","🤰🏾","🤰🏿","👲","👲🏻","👲🏼","👲🏽","👲🏾","👲🏿","🙍","🙍🏻","🙍🏼","🙍🏽","🙍🏾","🙍🏿","🙎","🙎🏻","🙎🏼","🙎🏽","🙎🏾","🙎🏿","🙅","🙅🏻","🙅🏼","🙅🏽","🙅🏾","🙅🏿","🙆","🙆🏻","🙆🏼","🙆🏽","🙆🏾","🙆🏿","💁","💁🏻","💁🏼","💁🏽","💁🏾","💁🏿","🙋","🙋🏻","🙋🏼","🙋🏽","🙋🏾","🙋🏿","🙇","🙇🏻","🙇🏼","🙇🏽","🙇🏾","🙇🏿","🤦","🤦🏻","🤦🏼","🤦🏽","🤦🏾","🤦🏿","🤷","🤷🏻","🤷🏼","🤷🏽","🤷🏾","🤷🏿","💆","💆🏻","💆🏼","💆🏽","💆🏾","💆🏿","💇","💇🏻","💇🏼","💇🏽","💇🏾","💇🏿","🚶","🚶🏻","🚶🏼","🚶🏽","🚶🏾","🚶🏿","🏃","🏃🏻","🏃🏼","🏃🏽","🏃🏾","🏃🏿","💃","💃🏻","💃🏼","💃🏽","💃🏾","💃🏿","🕺","🕺🏻","🕺🏼","🕺🏽","🕺🏾","🕺🏿","👯","🕴","🗣","👤","👥","🤺","🏇","⛷","🏂","🏌","🏄","🏄🏻","🏄🏼","🏄🏽","🏄🏾","🏄🏿","🚣","🚣🏻","🚣🏼","🚣🏽","🚣🏾","🚣🏿","🏊","🏊🏻","🏊🏼","🏊🏽","🏊🏾","🏊🏿","⛹","⛹🏻","⛹🏼","⛹🏽","⛹🏾","⛹🏿","🏋","🏋🏻","🏋🏼","🏋🏽","🏋🏾","🏋🏿","🚴","🚴🏻","🚴🏼","🚴🏽","🚴🏾","🚴🏿","🚵","🚵🏻","🚵🏼","🚵🏽","🚵🏾","🚵🏿","🏎","🏍","🤸","🤸🏻","🤸🏼","🤸🏽","🤸🏾","🤸🏿","🤼","🤼🏻","🤼🏼","🤼🏽","🤼🏾","🤼🏿","🤽","🤽🏻","🤽🏼","🤽🏽","🤽🏾","🤽🏿","🤾","🤾🏻","🤾🏼","🤾🏽","🤾🏾","🤾🏿","🤹","🤹🏻","🤹🏼","🤹🏽","🤹🏾","🤹🏿","👫","👬","👭","💏","👩❤️💋👨","👨❤️💋👨","👩❤️💋👩","💑","👩❤️👨","👨❤️👨","👩❤️👩","👪","👨👩👦","👨👩👧","👨👩👧👦","👨👩👦👦","👨👩👧👧","👨👨👦","👨👨👧","👨👨👧👦","👨👨👦👦","👨👨👧👧","👩👩👦","👩👩👧","👩👩👧👦","👩👩👦👦","👩👩👧👧","🏻","🏼","🏽","🏾","🏿","💪","💪🏻","💪🏼","💪🏽","💪🏾","💪🏿","🤳","🤳🏻","🤳🏼","🤳🏽","🤳🏾","🤳🏿","👈","👈🏻","👈🏼","👈🏽","👈🏾","👈🏿","👉","👉🏻","👉🏼","👉🏽","👉🏾","👉🏿","☝","☝🏻","☝🏼","☝🏽","☝🏾","☝🏿","👆","👆🏻","👆🏼","👆🏽","👆🏾","👆🏿","🖕","🖕🏻","🖕🏼","🖕🏽","🖕🏾","🖕🏿","👇","👇🏻","👇🏼","👇🏽","👇🏾","👇🏿","✌","✌🏻","✌🏼","✌🏽","✌🏾","✌🏿","🤞","🤞🏻","🤞🏼","🤞🏽","🤞🏾","🤞🏿","🖖","🖖🏻","🖖🏼","🖖🏽","🖖🏾","🖖🏿","🤘","🤘🏻","🤘🏼","🤘🏽","🤘🏾","🤘🏿","🤙","🤙🏻","🤙🏼","🤙🏽","🤙🏾","🤙🏿","🖐","🖐🏻","🖐🏼","🖐🏽","🖐🏾","🖐🏿","✋","✋🏻","✋🏼","✋🏽","✋🏾","✋🏿","👌","👌🏻","👌🏼","👌🏽","👌🏾","👌🏿","👍","👍🏻","👍🏼","👍🏽","👍🏾","👍🏿","👎","👎🏻","👎🏼","👎🏽","👎🏾","👎🏿","✊","✊🏻","✊🏼","✊🏽","✊🏾","✊🏿","👊","👊🏻","👊🏼","👊🏽","👊🏾","👊🏿","🤛","🤛🏻","🤛🏼","🤛🏽","🤛🏾","🤛🏿","🤜","🤜🏻","🤜🏼","🤜🏽","🤜🏾","🤜🏿","🤚","🤚🏻","🤚🏼","🤚🏽","🤚🏾","🤚🏿","👋","👋🏻","👋🏼","👋🏽","👋🏾","👋🏿","👏","👏🏻","👏🏼","👏🏽","👏🏾","👏🏿","✍","✍🏻","✍🏼","✍🏽","✍🏾","✍🏿","👐","👐🏻","👐🏼","👐🏽","👐🏾","👐🏿","🙌","🙌🏻","🙌🏼","🙌🏽","🙌🏾","🙌🏿","🙏","🙏🏻","🙏🏼","🙏🏽","🙏🏾","🙏🏿","🤝","🤝🏻","🤝🏼","🤝🏽","🤝🏾","🤝🏿","💅","💅🏻","💅🏼","💅🏽","💅🏾","💅🏿","👂","👂🏻","👂🏼","👂🏽","👂🏾","👂🏿","👃","👃🏻","👃🏼","👃🏽","👃🏾","👃🏿","👣","👀","👁","👁🗨","👅","👄","💋","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","🖤","💝","💞","💟","❣","💌","💤","💢","💣","💥","💦","💨","💫","💬","🗨","🗯","💭","🕳","👓","🕶","👔","👕","👖","👗","👘","👙","👚","👛","👜","👝","🛍","🎒","👞","👟","👠","👡","👢","👑","👒","🎩","🎓","⛑","📿","💄","💍","💎","🐵","🐒","🦍","🐶","🐕","🐩","🐺","🦊","🐱","🐈","🦁","🐯","🐅","🐆","🐴","🐎","🦌","🦄","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🦏","🐭","🐁","🐀","🐹","🐰","🐇","🐿","🦇","🐻","🐨","🐼","🐾","🦃","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🕊","🦅","🦆","🦉","🐸","🐊","🐢","🦎","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🦈","🐙","🐚","🦀","🦐","🦑","🦋","🐌","🐛","🐜","🐝","🐞","🕷","🕸","🦂","💐","🌸","💮","🏵","🌹","🥀","🌺","🌻","🌼","🌷","🌱","🌲","🌳","🌴","🌵","🌾","🌿","☘","🍀","🍁","🍂","🍃","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🥝","🍅","🥑","🍆","🥔","🥕","🌽","🌶","🥒","🍄","🥜","🌰","🍞","🥐","🥖","🥞","🧀","🍖","🍗","🥓","🍔","🍟","🍕","🌭","🌮","🌯","🥙","🥚","🍳","🥘","🍲","🥗","🍿","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🍡","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🍫","🍬","🍭","🍮","🍯","🍼","🥛","☕","🍵","🍶","🍾","🍷","🍸","🍹","🍺","🍻","🥂","🥃","🍽","🍴","🥄","🔪","🏺","🌍","🌎","🌏","🌐","🗺","🗾","🏔","⛰","🌋","🗻","🏕","🏖","🏜","🏝","🏞","🏟","🏛","🏗","🏘","🏙","🏚","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","🏩","🏪","🏫","🏬","🏭","🏯","🏰","💒","🗼","🗽","⛪","🕌","🕍","⛩","🕋","⛲","⛺","🌁","🌃","🌄","🌅","🌆","🌇","🌉","🌌","🎠","🎡","🎢","💈","🎪","🎭","🖼","🎨","🎰","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚝","🚞","🚋","🚌","🚍","🚎","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🚲","🛴","🛵","🚏","🛣","🛤","⛽","🚨","🚥","🚦","🚧","🛑","⛵","🛶","🚤","🛳","⛴","🛥","🚢","🛩","🛫","🛬","💺","🚁","🚟","🚠","🚡","🚀","🛰","🛎","🚪","🛌","🛏","🛋","🚽","🚿","🛀","🛀🏻","🛀🏼","🛀🏽","🛀🏾","🛀🏿","🛁","⌛","⏳","⌚","⏰","⏱","⏲","🕰","🕛","🕧","🕐","🕜","🕑","🕝","🕒","🕞","🕓","🕟","🕔","🕠","🕕","🕡","🕖","🕢","🕗","🕣","🕘","🕤","🕙","🕥","🕚","🕦","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","🌡","🌝","🌞","⭐","🌟","🌠","☁","⛅","⛈","🌤","🌥","🌦","🌧","🌨","🌩","🌪","🌫","🌬","🌀","🌈","🌂","☂","☔","⛱","⛄","🔥","💧","🌊","🎃","🎄","🎆","🎇","✨","🎈","🎉","🎊","🎋","🎍","🎎","🎏","🎐","🎑","🎀","🎁","🎗","🎟","🎫","🎖","🏆","🏅","🥇","🥈","🥉","⚽","⚾","🏀","🏐","🏈","🏉","🎾","🎱","🎳","🏏","🏑","🏒","🏓","🏸","🥊","🥋","🥅","🎯","⛳","⛸","🎣","🎽","🎿","🎮","🕹","🎲","🃏","🀄","🎴","🔇","🔈","🔉","🔊","📢","📣","📯","🔔","🔕","🎼","🎵","🎶","🎙","🎚","🎛","🎤","🎧","📻","🎷","🎸","🎹","🎺","🎻","🥁","📱","📲","📞","📟","📠","🔋","🔌","💻","🖥","🖨","⌨","🖱","🖲","💽","💾","💿","📀","🎥","🎞","📽","🎬","📺","📷","📸","📹","📼","🔍","🔎","🔬","🔭","📡","🕯","💡","🔦","🏮","📔","📕","📖","📗","📘","📙","📚","📓","📒","📃","📜","📄","📰","🗞","📑","🔖","🏷","💰","💴","💵","💶","💷","💸","💳","💹","📧","📨","📩","📤","📥","📦","📫","📪","📬","📭","📮","🗳","🖋","🖊","🖌","🖍","📝","💼","📁","📂","🗂","📅","📆","🗒","🗓","📇","📈","📉","📊","📋","📌","📍","📎","🖇","📏","📐","🗃","🗄","🗑","🔒","🔓","🔏","🔐","🔑","🗝","🔨","⛏","🛠","🗡","🔫","🏹","🛡","🔧","🔩","🗜","🔗","⛓","💉","💊","🚬","⚰","⚱","🗿","🛢","🔮","🛒","🏧","🚮","🚰","🚹","🚺","🚻","🚼","🚾","🛂","🛃","🛄","🛅","🚸","⛔","🚫","🚳","🚭","🚯","🚱","🚷","📵","🔞","🔃","🔄","🛐","🕉","🕎","🔯","⛎","🔀","🔁","🔂","▶","⏩","⏭","⏯","◀","⏪","⏮","🔼","⏫","🔽","⏬","⏸","⏹","⏺","⏏","🎦","🔅","🔆","📶","📳","📴","📛","🔰","🔱","⭕","✅","❌","❎","❓","❔","❕","❗","#️⃣","*️⃣","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","💯","🔠","🔡","🔢","🔣","🔤","🅰","🆎","🅱","🆑","🆒","🆓","ℹ","🆔","🆕","🆖","🆗","🅿","🆘","🆙","🆚","🈁","🈶","🈯","🉐","🈹","🈚","🈲","🉑","🈸","🈴","🈳","🈺","🈵","⬛","⬜","🔶","🔷","🔸","🔹","🔺","🔻","💠","🔘","🔲","🔳","⚪","⚫","🔴","🔵","🏁","🚩","🎌","🏴","🏳","🇦🇨","🇦🇩","🇦🇪","🇦🇫","🇦🇬","🇦🇮","🇦🇱","🇦🇲","🇦🇴","🇦🇶","🇦🇷","🇦🇸","🇦🇹","🇦🇺","🇦🇼","🇦🇽","🇦🇿","🇧🇦","🇧🇧","🇧🇩","🇧🇪","🇧🇫","🇧🇬","🇧🇭","🇧🇮","🇧🇯","🇧🇱","🇧🇲","🇧🇳","🇧🇴","🇧🇶","🇧🇷","🇧🇸","🇧🇹","🇧🇻","🇧🇼","🇧🇾","🇧🇿","🇨🇦","🇨🇨","🇨🇩","🇨🇫","🇨🇬","🇨🇭","🇨🇮","🇨🇰","🇨🇱","🇨🇲","🇨🇳","🇨🇴","🇨🇵","🇨🇷","🇨🇺","🇨🇻","🇨🇼","🇨🇽","🇨🇾","🇨🇿","🇩🇪","🇩🇬","🇩🇯","🇩🇰","🇩🇲","🇩🇴","🇩🇿","🇪🇦","🇪🇨","🇪🇪","🇪🇬","🇪🇭","🇪🇷","🇪🇸","🇪🇹","🇪🇺","🇫🇮","🇫🇯","🇫🇰","🇫🇲","🇫🇴","🇫🇷","🇬🇦","🇬🇧","🇬🇩","🇬🇪","🇬🇫","🇬🇬","🇬🇭","🇬🇮","🇬🇱","🇬🇲","🇬🇳","🇬🇵","🇬🇶","🇬🇷","🇬🇸","🇬🇹","🇬🇺","🇬🇼","🇬🇾","🇭🇰","🇭🇲","🇭🇳","🇭🇷","🇭🇹","🇭🇺","🇮🇨","🇮🇩","🇮🇪","🇮🇱","🇮🇲","🇮🇳","🇮🇴","🇮🇶","🇮🇷","🇮🇸","🇮🇹","🇯🇪","🇯🇲","🇯🇴","🇯🇵","🇰🇪","🇰🇬","🇰🇭","🇰🇮","🇰🇲","🇰🇳","🇰🇵","🇰🇷","🇰🇼","🇰🇾","🇰🇿","🇱🇦","🇱🇧","🇱🇨","🇱🇮","🇱🇰","🇱🇷","🇱🇸","🇱🇹","🇱🇺","🇱🇻","🇱🇾","🇲🇦","🇲🇨","🇲🇩","🇲🇪","🇲🇫","🇲🇬","🇲🇭","🇲🇰","🇲🇱","🇲🇲","🇲🇳","🇲🇴","🇲🇵","🇲🇶","🇲🇷","🇲🇸","🇲🇹","🇲🇺","🇲🇻","🇲🇼","🇲🇽","🇲🇾","🇲🇿","🇳🇦","🇳🇨","🇳🇪","🇳🇫","🇳🇬","🇳🇮","🇳🇱","🇳🇴","🇳🇵","🇳🇷","🇳🇺","🇳🇿","🇴🇲","🇵🇦","🇵🇪","🇵🇫","🇵🇬","🇵🇭","🇵🇰","🇵🇱","🇵🇲","🇵🇳","🇵🇷","🇵🇸","🇵🇹","🇵🇼","🇵🇾","🇶🇦","🇷🇪","🇷🇴","🇷🇸","🇷🇺","🇷🇼","🇸🇦","🇸🇧","🇸🇨","🇸🇩","🇸🇪","🇸🇬","🇸🇭","🇸🇮","🇸🇯","🇸🇰","🇸🇱","🇸🇲","🇸🇳","🇸🇴","🇸🇷","🇸🇸","🇸🇹","🇸🇻","🇸🇽","🇸🇾","🇸🇿","🇹🇦","🇹🇨","🇹🇩","🇹🇫","🇹🇬","🇹🇭","🇹🇯","🇹🇰","🇹🇱","🇹🇲","🇹🇳","🇹🇴","🇹🇷","🇹🇹","🇹🇻","🇹🇼","🇹🇿","🇺🇦","🇺🇬","🇺🇲","🇺🇸","🇺🇾","🇺🇿","🇻🇦","🇻🇨","🇻🇪","🇻🇬","🇻🇮","🇻🇳","🇻🇺","🇼🇫","🇼🇸","🇽🇰","🇾🇪","🇾🇹","🇿🇦","🇿🇲","🇿🇼"],uc="styles_container__13z5N",cc="styles_scroller__Cde5z",lc=(c('.styles_container__13z5N {\n width: 189px;\n height: 200px;\n overflow-x: hidden;\n overflow-y: auto;\n\n background: #FCFCFC;\n border-radius: 6px;\n border: 1px solid #d7e4e9;\n box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);\n\n position: absolute !important;\n left: -149px;\n top: -211px;\n}\n\n.styles_scroller__Cde5z {\n display: flex;\n\n justify-content: space-around;\n align-items: space-around;\n}\n\n.styles_container__13z5N:after {\n content: "" !important;\n position: absolute !important;\n width: 0 !important;\n height: 0 !important;\n margin-left: -0.5em !important;\n bottom: -12px !important;\n left: 261px !important;\n box-sizing: border-box !important;\n \n border: 6px solid black !important;\n border-color: transparent transparent #fff #fff !important;\n border-bottom-left-radius: 4px !important;\n \n transform-origin: 0 0 !important;\n transform: rotate(-45deg) !important;\n \n box-shadow: -3px 3px 3px 0 rgba(0, 0, 0, 0.25) !important;\n}'),function(t){function e(e){t.call(this,e),this.state={groupedEmojis:this.groupEmojis()},this.addEmoji=this.addEmoji.bind(this),this.rowRender=this.rowRender.bind(this)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.componentDidMount=function(){this.props.visible&&window.addEventListener("click",this.props.close)},e.prototype.componentDidUpdate=function(){var e=this;this.props.visible?setTimeout(function(){window.addEventListener("click",e.props.close)},0):window.removeEventListener("click",this.props.close)},e.prototype.componentWillUnmount=function(){window.removeEventListener("click",this.props.close)},e.prototype.addEmoji=function(e,t){this.props.onEmojiAdd(t)},e.prototype.groupEmojis=function(){for(var e=[],t=sc.filter(function(e){return e.length<=2}),n=0;n<t.length;n+=6)e[n/6]=t.slice(n,n+6);return e},e.prototype.rowRender=function(e){var t=this,n=this.state.groupedEmojis;return b("div",{className:cc},n[e.index].map(function(e){return b(ac,{onEmojiAdd:t.addEmoji,emoji:e})}))},e.prototype.render=function(){var n=this,e=this.state.groupedEmojis;return this.props.visible?b("div",{className:uc},e.map(function(e,t){return n.rowRender({index:t})})):null},e}(Qe)),D={compose_wrapper:"styles_compose_wrapper__2awbC",compose:"styles_compose__24NLo",textarea:"styles_textarea__gluDA",button:"styles_button__1mvfr",button_hidden:"styles_button_hidden__BQA9L",button_icon:"styles_button_icon__saQOE",emoji_picker_container:"styles_emoji_picker_container__3CCl6",smile_icon:"styles_smile_icon__Dwqv0",disabled:"styles_disabled__BmEhL"},fc=(c('\n.styles_compose_wrapper__2awbC {\n display: flex;\n flex-shrink: 0;\n\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n\n margin: auto 14px 14px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.styles_compose_wrapper__2awbC:before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: -14px;\n height: 36px;\n z-index: -1;\n}\n\n.styles_compose__24NLo {\n display: flex;\n position: relative;\n flex-grow: 1;\n min-height: 42px;\n background: #FFFFFF;\n border: 1px solid #CDCED2;\n box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);\n border-radius: 21px;\n}\n\n.styles_textarea__gluDA {\n outline: none;\n width: 100%;\n border: 0;\n background: none;\n resize: none;\n font-size: 14px;\n line-height: 18px;\n height: 29px;\n min-height: 29px;\n max-height: 170px;\n padding: 13px 39px 13px 18px;\n border-radius: 21px;\n}\n.styles_textarea__gluDA::-moz-placeholder {\n color: #B1B8BA;\n}\n.styles_textarea__gluDA:-ms-input-placeholder {\n color: #B1B8BA;\n}\n.textarea::-moz-placeholder {\n color: #B1B8BA;\n}\n.textarea:-ms-input-placeholder {\n color: #B1B8BA;\n}\n.styles_textarea__gluDA::placeholder {\n color: #B1B8BA;\n}\n.styles_textarea__gluDA::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n\n.styles_button__1mvfr {\n display: flex;\n flex-shrink: 0;\n cursor: pointer;\n margin: auto 0 0 8px;\n}\n.styles_button_hidden__BQA9L {\n display: none;\n}\n.styles_button__1mvfr:active {\n transform: translateY(1px);\n}\n.styles_button_icon__saQOE {\n fill: #007AFF;\n}\n\n.styles_emoji_picker_container__3CCl6 {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n flex-shrink: 0;\n align-items: flex-start;\n justify-content: center;\n width: 39px;\n height: 42px;\n border-radius: 21px;\n}\n.styles_smile_icon__Dwqv0 {\n cursor: pointer;\n padding: 11px 14px 8px 8px;\n width: 100%;\n height: 38px;\n}\n.styles_disabled__BmEhL {\n display: none;\n}'),K(function(A,S){!function(){var Fi,zi="Expected a function",ma="__lodash_hash_undefined__",ya="__lodash_placeholder__",Vi=9007199254740991,ba=NaN,Wi=4294967295,wa=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Gi="[object Arguments]",xa="[object Array]",qi="[object Boolean]",Xi="[object Date]",Ca="[object Error]",Ta="[object Function]",Ea="[object GeneratorFunction]",Yi="[object Map]",Zi="[object Number]",Ki="[object Object]",Aa="[object Promise]",$i="[object RegExp]",Qi="[object Set]",Ji="[object String]",Sa="[object Symbol]",ea="[object WeakMap]",ta="[object ArrayBuffer]",na="[object DataView]",Ma="[object Float32Array]",ka="[object Float64Array]",Oa="[object Int8Array]",Ia="[object Int16Array]",Ba="[object Int32Array]",La="[object Uint8Array]",ja="[object Uint8ClampedArray]",Da="[object Uint16Array]",Na="[object Uint32Array]",Pa=/\b__p \+= '';/g,Ra=/\b(__p \+=) '' \+/g,Ua=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ha=/&(?:amp|lt|gt|quot|#39);/g,Fa=/[&<>"']/g,za=RegExp(Ha.source),Va=RegExp(Fa.source),Wa=/<%-([\s\S]+?)%>/g,Ga=/<%([\s\S]+?)%>/g,qa=/<%=([\s\S]+?)%>/g,Xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ya=/^\w*$/,Za=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ka=/[\\^$.*+?()[\]{}|]/g,$a=RegExp(Ka.source),Qa=/^\s+|\s+$/g,Ja=/^\s+/,es=/\s+$/,ts=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ns=/\{\n\/\* \[wrapped with (.+)\] \*/,rs=/,? & /,os=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,is=/\\(\\)?/g,as=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ss=/\w*$/,us=/^[-+]0x[0-9a-f]+$/i,cs=/^0b[01]+$/i,ls=/^\[object .+?Constructor\]$/,fs=/^0o[0-7]+$/i,ds=/^(?:0|[1-9]\d*)$/,hs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ps=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,i="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",s="\\u2700-\\u27bf",e="a-z\\xdf-\\xf6\\xf8-\\xff",t="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+i+"]",l="["+c+"]",f="["+a+"]",d="["+s+"]",h="["+e+"]",c="[^"+i+c+"\\d+"+s+e+t+"]",s="\\ud83c[\\udffb-\\udfff]",e="[^"+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",t="["+t+"]",_="(?:"+h+"|"+c+")",c="(?:"+t+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:"+f+"|"+s+")"+"?",y="["+u+"]?",y=y+m+("(?:\\u200d(?:"+[e,p,r].join("|")+")"+y+m+")*"),m="(?:"+[d,p,r].join("|")+")"+y,d="(?:"+[e+f+"?",f,p,r,n].join("|")+")",gs=RegExp("['’]","g"),vs=RegExp(f,"g"),b=RegExp(s+"(?="+s+")|"+d+y,"g"),ms=RegExp([t+"?"+h+"+"+g+"(?="+[l,t,"$"].join("|")+")",c+"+"+v+"(?="+[l,t+_,"$"].join("|")+")",t+"?"+_+"+"+g,t+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",m].join("|"),"g"),w=RegExp("[\\u200d"+i+a+u+"]"),ys=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ws=-1,ra={},oa=(ra[Ma]=ra[ka]=ra[Oa]=ra[Ia]=ra[Ba]=ra[La]=ra[ja]=ra[Da]=ra[Na]=!0,ra[Gi]=ra[xa]=ra[ta]=ra[qi]=ra[na]=ra[Xi]=ra[Ca]=ra[Ta]=ra[Yi]=ra[Zi]=ra[Ki]=ra[$i]=ra[Qi]=ra[Ji]=ra[ea]=!1,{}),x=(oa[Gi]=oa[xa]=oa[ta]=oa[na]=oa[qi]=oa[Xi]=oa[Ma]=oa[ka]=oa[Oa]=oa[Ia]=oa[Ba]=oa[Yi]=oa[Zi]=oa[Ki]=oa[$i]=oa[Qi]=oa[Ji]=oa[Sa]=oa[La]=oa[ja]=oa[Da]=oa[Na]=!0,oa[Ca]=oa[Ta]=oa[ea]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),xs=parseFloat,Cs=parseInt,e="object"==typeof M&&M&&M.Object===Object&&M,p="object"==typeof self&&self&&self.Object===Object&&self,ia=e||p||Function("return this")(),r=S&&!S.nodeType&&S,o=r&&A&&!A.nodeType&&A,Ts=o&&o.exports===r,C=Ts&&e.process,n=function(){try{var e=o&&o.require&&o.require("util").types;return e?e:C&&C.binding&&C.binding("util")}catch(e){}}(),Es=n&&n.isArrayBuffer,As=n&&n.isDate,Ss=n&&n.isMap,Ms=n&&n.isRegExp,ks=n&&n.isSet,Os=n&&n.isTypedArray;function aa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Is(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function sa(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Bs(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ls(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ua(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function js(e,t){return!!(null==e?0:e.length)&&-1<fa(e,t,0)}function Ds(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function ca(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function la(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Ns(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ps(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Rs(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var T=Ws("length");function Us(e,r,t){var o;return t(e,function(e,t,n){if(r(e,t,n))return o=t,!1}),o}function Hs(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function fa(e,t,n){if(t!=t)return Hs(e,zs,n);for(var r=e,o=t,i=n-1,a=r.length;++i<a;)if(r[i]===o)return i;return-1}function Fs(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zs(e){return e!=e}function Vs(e,t){var n=null==e?0:e.length;return n?qs(e,t)/n:ba}function Ws(t){return function(e){return null==e?Fi:e[t]}}function E(t){return function(e){return null==t?Fi:t[e]}}function Gs(e,r,o,i,t){return t(e,function(e,t,n){o=i?(i=!1,e):r(o,e,t,n)}),o}function qs(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==Fi&&(n=n===Fi?i:n+i)}return n}function Xs(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function da(t){return function(e){return t(e)}}function Ys(t,e){return ca(e,function(e){return t[e]})}function Zs(e,t){return e.has(t)}function Ks(e,t){for(var n=-1,r=e.length;++n<r&&-1<fa(t,e[n],0););return n}function $s(e,t){for(var n=e.length;n--&&-1<fa(t,e[n],0););return n}var Qs=E({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Js=E({"&":"&","<":"<",">":">",'"':""","'":"'"});function eu(e){return"\\"+x[e]}function ha(e){return w.test(e)}function tu(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function nu(t,n){return function(e){return t(n(e))}}function pa(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==ya||(e[n]=ya,i[o++]=n)}return i}function ru(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function _a(e){return(ha(e)?function(e){var t=b.lastIndex=0;for(;b.test(e);)++t;return t}:T)(e)}function ga(e){return ha(e)?e.match(b)||[]:e.split("")}var ou=E({"&":"&","<":"<",">":">",""":'"',"'":"'"});var va=function o(e){var C=(e=null==e?ia:va.defaults(ia.Object(),e,va.pick(ia,bs))).Array,i=e.Date,B=e.Error,L=e.Function,j=e.Math,_=e.Object,D=e.RegExp,z=e.String,m=e.TypeError,V=C.prototype,W=L.prototype,G=_.prototype,q=e["__core-js_shared__"],X=W.toString,N=G.hasOwnProperty,Y=0,Z=(W=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",K=G.toString,$=X.call(_),Q=ia._,J=D("^"+X.call(N).replace(Ka,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=Ts?e.Buffer:Fi,t=e.Symbol,ee=e.Uint8Array,te=W?W.allocUnsafe:Fi,ne=nu(_.getPrototypeOf,_),re=_.create,oe=G.propertyIsEnumerable,ie=V.splice,ae=t?t.isConcatSpreadable:Fi,se=t?t.iterator:Fi,ue=t?t.toStringTag:Fi,ce=function(){try{var e=Qn(_,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=e.clearTimeout!==ia.clearTimeout&&e.clearTimeout,fe=i&&i.now!==ia.Date.now&&i.now,de=e.setTimeout!==ia.setTimeout&&e.setTimeout,he=j.ceil,pe=j.floor,_e=_.getOwnPropertySymbols,W=W?W.isBuffer:Fi,ge=e.isFinite,ve=V.join,me=nu(_.keys,_),y=j.max,T=j.min,ye=i.now,be=e.parseInt,we=j.random,xe=V.reverse,i=Qn(e,"DataView"),Ce=Qn(e,"Map"),Te=Qn(e,"Promise"),Ee=Qn(e,"Set"),e=Qn(e,"WeakMap"),Ae=Qn(_,"create"),Se=e&&new e,Me={},ke=Cr(i),Oe=Cr(Ce),Ie=Cr(Te),Be=Cr(Ee),Le=Cr(e),t=t?t.prototype:Fi,je=t?t.valueOf:Fi,De=t?t.toString:Fi;function p(e){if(F(e)&&!H(e)&&!(e instanceof v)){if(e instanceof g)return e;if(N.call(e,"__wrapped__"))return Tr(e)}return new g(e)}var Ne=function(e){if(!x(e))return{};if(re)return re(e);Pe.prototype=e;e=new Pe;return Pe.prototype=Fi,e};function Pe(){}function Re(){}function g(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Fi}function v(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wi,this.__views__=[]}function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ze(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fe;++t<n;)this.add(e[t])}function P(e){e=this.__data__=new He(e);this.size=e.size}function Ve(e,t){var n,r=H(e),o=!r&&mo(e),i=!r&&!o&&bo(e),a=!r&&!o&&!i&&Io(e),s=r||o||i||a,u=s?Xs(e.length,z):[],c=u.length;for(n in e)!t&&!N.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||or(n,c))||u.push(n);return u}function We(e){var t=e.length;return t?e[Rt(0,t-1)]:Fi}function Ge(e,t){return yr(E(e),et(t,0,e.length))}function qe(e){return yr(E(e))}function Xe(e,t,n){(n===Fi||U(e[t],n))&&(n!==Fi||t in e)||Qe(e,t,n)}function Ye(e,t,n){var r=e[t];N.call(e,t)&&U(r,n)&&(n!==Fi||t in e)||Qe(e,t,n)}function Ze(e,t){for(var n=e.length;n--;)if(U(e[n][0],t))return n;return-1}function Ke(e,r,o,i){return ot(e,function(e,t,n){r(i,e,o(e),n)}),i}function $e(e,t){return e&&gn(t,k(t),e)}function Qe(e,t,n){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Je(e,t){for(var n=-1,r=t.length,o=C(r),i=null==e;++n<r;)o[n]=i?Fi:Go(e,t[n]);return o}function et(e,t,n){return e==e&&(n!==Fi&&(e=e<=n?e:n),t!==Fi&&(e=t<=e?e:t)),e}function b(n,r,o,e,t,i){var a,s=1&r,u=2&r,c=4&r;if((a=o?t?o(n,e,t,i):o(n):a)!==Fi)return a;if(!x(n))return n;var l,e=H(n);if(e){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&N.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(n),!s)return E(n,a)}else{var f=R(n),d=f==Ta||f==Ea;if(bo(n))return ln(n,s);if(f==Ki||f==Gi||d&&!t){if(a=u||d?{}:nr(n),!s)return u?(h=d=n,h=(l=a)&&gn(h,O(h),l),gn(d,er(d),h)):(d=$e(a,l=n),gn(l,Jn(l),d))}else{if(!oa[f])return t?n:{};a=function(e,t,n){var r=e.constructor;switch(t){case ta:return fn(e);case qi:case Xi:return new r(+e);case na:return function(e,t){t=t?fn(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,n);case Ma:case ka:case Oa:case Ia:case Ba:case La:case ja:case Da:case Na:return dn(e,n);case Yi:return new r;case Zi:case Ji:return new r(e);case $i:return function(e){var t=new e.constructor(e.source,ss.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Qi:return new r;case Sa:return function(e){return je?_(je.call(e)):{}}(e)}}(n,f,s)}}var h=(i=i||new P).get(n);if(h)return h;i.set(n,a),ko(n)?n.forEach(function(e){a.add(b(e,r,o,e,n,i))}):Eo(n)&&n.forEach(function(e,t){a.set(t,b(e,r,o,t,n,i))});var p=e?Fi:(c?u?qn:Gn:u?O:k)(n);return sa(p||n,function(e,t){p&&(e=n[t=e]),Ye(a,t,b(e,r,o,t,n,i))}),a}function tt(e,t,n){var r=n.length;if(null==e)return!r;for(e=_(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===Fi&&!(o in e)||!i(a))return!1}return!0}function nt(e,t,n){if("function"!=typeof e)throw new m(zi);return _r(function(){e.apply(Fi,n)},t)}function rt(e,t,n,r){var o=-1,i=js,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=ca(t,da(n))),r?(i=Ds,a=!1):200<=t.length&&(i=Zs,a=!1,t=new ze(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l),l=r||0!==l?l:0;if(a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}p.templateSettings={escape:Wa,evaluate:Ga,interpolate:qa,variable:"",imports:{_:p}},(p.prototype=Re.prototype).constructor=p,(g.prototype=Ne(Re.prototype)).constructor=g,(v.prototype=Ne(Re.prototype)).constructor=v,Ue.prototype.clear=function(){this.__data__=Ae?Ae(null):{},this.size=0},Ue.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Ue.prototype.get=function(e){var t,n=this.__data__;return Ae?(t=n[e])===ma?Fi:t:N.call(n,e)?n[e]:Fi},Ue.prototype.has=function(e){var t=this.__data__;return Ae?t[e]!==Fi:N.call(t,e)},Ue.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ae&&t===Fi?ma:t,this},He.prototype.clear=function(){this.__data__=[],this.size=0},He.prototype.delete=function(e){var t=this.__data__;return!((e=Ze(t,e))<0)&&(e==t.length-1?t.pop():ie.call(t,e,1),--this.size,!0)},He.prototype.get=function(e){var t=this.__data__;return(e=Ze(t,e))<0?Fi:t[e][1]},He.prototype.has=function(e){return-1<Ze(this.__data__,e)},He.prototype.set=function(e,t){var n=this.__data__,r=Ze(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(Ce||He),string:new Ue}},Fe.prototype.delete=function(e){return e=Kn(this,e).delete(e),this.size-=e?1:0,e},Fe.prototype.get=function(e){return Kn(this,e).get(e)},Fe.prototype.has=function(e){return Kn(this,e).has(e)},Fe.prototype.set=function(e,t){var n=Kn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ze.prototype.add=ze.prototype.push=function(e){return this.__data__.set(e,ma),this},ze.prototype.has=function(e){return this.__data__.has(e)},P.prototype.clear=function(){this.__data__=new He,this.size=0},P.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},P.prototype.get=function(e){return this.__data__.get(e)},P.prototype.has=function(e){return this.__data__.has(e)},P.prototype.set=function(e,t){var n=this.__data__;if(n instanceof He){var r=n.__data__;if(!Ce||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fe(r)}return n.set(e,t),this.size=n.size,this};var ot=yn(ft),it=yn(dt,!0);function at(e,r){var o=!0;return ot(e,function(e,t,n){return o=!!r(e,t,n)}),o}function st(e,t,n){for(var r=-1,o=e.length;++r<o;){var i,a,s=e[r],u=t(s);null!=u&&(i===Fi?u==u&&!A(u):n(u,i))&&(i=u,a=s)}return a}function ut(e,r){var o=[];return ot(e,function(e,t,n){r(e,t,n)&&o.push(e)}),o}function u(e,t,n,r,o){var i=-1,a=e.length;for(n=n||rr,o=o||[];++i<a;){var s=e[i];0<t&&n(s)?1<t?u(s,t-1,n,r,o):la(o,s):r||(o[o.length]=s)}return o}var ct=bn(),lt=bn(!0);function ft(e,t){return e&&ct(e,t,k)}function dt(e,t){return e&<(e,t,k)}function ht(t,e){return ua(e,function(e){return xo(t[e])})}function pt(e,t){for(var n=0,r=(t=an(t,e)).length;null!=e&&n<r;)e=e[xr(t[n++])];return n&&n==r?e:Fi}function _t(e,t,n){t=t(e);return H(e)?t:la(t,n(e))}function n(e){{if(null==e)return e===Fi?"[object Undefined]":"[object Null]";if(ue&&ue in _(e)){var t=e,n=N.call(t,ue),r=t[ue];try{t[ue]=Fi;var o=!0}catch(e){}var i=K.call(t);return o&&(n?t[ue]=r:delete t[ue]),i}return K.call(e)}}function gt(e,t){return t<e}function vt(e,t){return null!=e&&N.call(e,t)}function mt(e,t){return null!=e&&t in _(e)}function yt(e,t,n){for(var r=n?Ds:js,o=e[0].length,i=e.length,a=i,s=C(i),u=1/0,c=[];a--;){var l=e[a];a&&t&&(l=ca(l,da(t))),u=T(l.length,u),s[a]=!n&&(t||120<=o&&120<=l.length)?new ze(a&&l):Fi}var l=e[0],f=-1,d=s[0];e:for(;++f<o&&c.length<u;){var h=l[f],p=t?t(h):h,h=n||0!==h?h:0;if(!(d?Zs(d,p):r(c,p,n))){for(a=i;--a;){var _=s[a];if(!(_?Zs(_,p):r(e[a],p,n)))continue e}d&&d.push(p),c.push(h)}}return c}function bt(e,t,n){t=null==(e=dr(e,t=an(t,e)))?e:e[xr(r(t))];return null==t?Fi:aa(t,e,n)}function wt(e){return F(e)&&n(e)==Gi}function xt(e,t,n,r,o){{if(e===t)return!0;if(null==e||null==t||!F(e)&&!F(t))return e!=e&&t!=t;var i=xt,a=H(e),s=H(t),u=a?xa:R(e),s=s?xa:R(t),c=(u=u==Gi?Ki:u)==Ki,l=(s=s==Gi?Ki:s)==Ki,s;if((s=u==s)&&bo(e)){if(!bo(t))return!1;c=!(a=!0)}if(s&&!c){o=o||new P;if(a||Io(e))return Vn(e,t,n,r,i,o);else{var f=e;var d=t;var h=u;var p=n;var _=r;var g=i;var v=o;switch(h){case na:if(f.byteLength!=d.byteLength||f.byteOffset!=d.byteOffset)return!1;f=f.buffer,d=d.buffer;case ta:return f.byteLength==d.byteLength&&g(new ee(f),new ee(d))?!0:!1;case qi:case Xi:case Zi:return U(+f,+d);case Ca:return f.name==d.name&&f.message==d.message;case $i:case Ji:return f==d+"";case Yi:var m=tu;case Qi:var y=1&p;if(m=m||ru,f.size!=d.size&&!y)return!1;y=v.get(f);if(y)return y==d;p|=2,v.set(f,d);y=Vn(m(f),m(d),p,_,g,v);return v.delete(f),y;case Sa:if(je)return je.call(f)==je.call(d)}return!1;return}}if(!(1&n)){var a=c&&N.call(e,"__wrapped__"),u=l&&N.call(t,"__wrapped__");if(a||u)return c=a?e.value():e,l=u?t.value():t,o=o||new P,i(c,l,n,r,o)}if(s){o=o||new P;var b=e,w=t,x=n,C=r,T=i,E=o,A=1&x,S=Gn(b),M=S.length,a=Gn(w).length;if(M!=a&&!A)return!1;for(var k=M;k--;){var O=S[k];if(!(A?O in w:N.call(w,O)))return!1}if((a=E.get(b))&&E.get(w))return a==w;for(var I=!0,B=(E.set(b,w),E.set(w,b),A);++k<M;){O=S[k];var L,j=b[O],D=w[O];if(!((L=C?A?C(D,j,O,w,b,E):C(j,D,O,b,w,E):L)===Fi?j===D||T(j,D,x,C,E):L)){I=!1;break}B=B||"constructor"==O}return I&&!B&&(a=b.constructor,u=w.constructor,a!=u&&"constructor"in b&&"constructor"in w&&!("function"==typeof a&&a instanceof a&&"function"==typeof u&&u instanceof u)&&(I=!1)),E.delete(b),E.delete(w),I}return!1}}function Ct(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=_(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=n[o])[0],c=e[u],l=s[1];if(a&&s[2]){if(c===Fi&&!(u in e))return!1}else{var f,d=new P;if(!((f=r?r(c,l,u,e,t,d):f)===Fi?xt(l,c,3,r,d):f))return!1}}return!0}function Tt(e){return!(!x(e)||(t=e,Z&&Z in t))&&(xo(e)?J:ls).test(Cr(e));var t}function Et(e){return"function"==typeof e?e:null==e?I:"object"==typeof e?H(e)?It(e[0],e[1]):Ot(e):Mi(e)}function At(e){if(!ur(e))return me(e);var t,n=[];for(t in _(e))N.call(e,t)&&"constructor"!=t&&n.push(t);return n}function St(e){if(!x(e)){var t=e,n=[];if(null!=t)for(var r in _(t))n.push(r);return n}var o,i=ur(e),a=[];for(o in e)("constructor"!=o||!i&&N.call(e,o))&&a.push(o);return a}function Mt(e,t){return e<t}function kt(e,r){var o=-1,i=l(e)?C(e.length):[];return ot(e,function(e,t,n){i[++o]=r(e,t,n)}),i}function Ot(t){var n=$n(t);return 1==n.length&&n[0][2]?lr(n[0][0],n[0][1]):function(e){return e===t||Ct(e,t,n)}}function It(n,r){return ir(n)&&cr(r)?lr(xr(n),r):function(e){var t=Go(e,n);return t===Fi&&t===r?qo(e,n):xt(r,t,3)}}function Bt(_,g,v,m,y){_!==g&&ct(g,function(e,t){var n,r,o,i,a,s,u,c,l,f,d,h,p;y=y||new P,x(e)?(r=g,i=v,a=Bt,s=m,u=y,d=hr(n=_,o=t),h=hr(r,o),(p=u.get(h))?Xe(n,o,p):(p=s?s(d,h,o+"",n,r,u):Fi,(r=p===Fi)&&(c=H(h),l=!c&&bo(h),f=!c&&!l&&Io(h),p=h,c||l||f?p=H(d)?d:w(d)?E(d):l?ln(h,!(r=!1)):f?dn(h,!(r=!1)):[]:So(h)||mo(h)?mo(p=d)?p=Po(d):x(d)&&!xo(d)||(p=nr(h)):r=!1),r&&(u.set(h,p),a(p,h,i,s,u),u.delete(h)),Xe(n,o,p))):(c=m?m(hr(_,t),e,t+"",_,g,y):Fi,Xe(_,t,c=c===Fi?e:c))},O)}function Lt(e,t){var n=e.length;if(n)return or(t+=t<0?n:0,n)?e[t]:Fi}function jt(e,r,l){var o=-1;r=ca(r.length?r:[I],da(f()));var t=kt(e,function(t,e,n){return{criteria:ca(r,function(e){return e(t)}),index:++o,value:t}}),e=function(e,t){for(var n=l,r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=hn(o[r],i[r]);if(u){if(s<=r)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index},n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Dt(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=pt(e,a);n(s,a)&&zt(i,an(a,e),s)}return i}function Nt(e,t,n,r){var o=r?Fs:fa,i=-1,a=t.length,s=e;for(e===t&&(t=E(t)),n&&(s=ca(e,da(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;-1<(u=o(s,l,u,r));)s!==e&&ie.call(s,u,1),ie.call(e,u,1);return e}function Pt(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o,i=t[n];n!=r&&i===o||(or(o=i)?ie.call(e,i,1):$t(e,i))}}function Rt(e,t){return e+pe(we()*(t-e+1))}function Ut(e,t){var n="";if(!e||t<1||Vi<t)return n;for(;t%2&&(n+=e),(t=pe(t/2))&&(e+=e),t;);return n}function a(e,t){return gr(fr(e,t,I),e+"")}function Ht(e){return We(ri(e))}function Ft(e,t){e=ri(e);return yr(e,et(t,0,e.length))}function zt(e,t,n,r){if(!x(e))return e;for(var o=-1,i=(t=an(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var u,c=xr(t[o]),l=n;o!=a&&(u=s[c],(l=r?r(u,c,s):Fi)===Fi&&(l=x(u)?u:or(t[o+1])?[]:{})),Ye(s,c,l),s=s[c]}return e}var Vt=Se?function(e,t){return Se.set(e,t),e}:I,t=ce?function(e,t){return ce(e,"toString",{configurable:!0,enumerable:!1,value:vi(t),writable:!0})}:I;function Wt(e){return yr(ri(e))}function s(e,t,n){for(var r=-1,o=e.length,i=((n=o<n?o:n)<0&&(n+=o),o=n<(t=t<0?o<-t?0:o+t:t)?0:n-t>>>0,t>>>=0,C(o));++r<o;)i[r]=e[r+t];return i}function Gt(e,r){var o;return ot(e,function(e,t,n){return!(o=r(e,t,n))}),!!o}function qt(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!A(a)&&(n?a<=t:a<t)?r=1+i:o=i}return o}return Xt(e,t,I,n)}function Xt(e,t,n,r){t=n(t);for(var o=0,i=null==e?0:e.length,a=t!=t,s=null===t,u=A(t),c=t===Fi;o<i;){var l=pe((o+i)/2),f=n(e[l]),d=f!==Fi,h=null===f,p=f==f,_=A(f),p=a?r||p:c?p&&(r||d):s?p&&d&&(r||!h):u?p&&d&&!h&&(r||!_):!h&&!_&&(r?f<=t:f<t);p?o=l+1:i=l}return T(i,4294967294)}function Yt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a,s=e[n],u=t?t(s):s;n&&U(u,a)||(a=u,i[o++]=0===s?0:s)}return i}function Zt(e){return"number"==typeof e?e:A(e)?ba:+e}function c(e){if("string"==typeof e)return e;if(H(e))return ca(e,c)+"";if(A(e))return De?De.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Kt(e,t,n){var r=-1,o=js,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ds;else if(200<=i){var c=t?null:Pn(e);if(c)return ru(c);a=!1,o=Zs,u=new ze}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l,l=n||0!==l?l:0;if(a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function $t(e,t){return null==(e=dr(e,t=an(t,e)))||delete e[xr(r(t))]}function Qt(e,t,n,r){return zt(e,t,n(pt(e,t)),r)}function Jt(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?s(e,r?0:i,r?i+1:o):s(e,r?i+1:0,r?o:i)}function en(e,t){var n=e;return Ns(t,function(e,t){return t.func.apply(t.thisArg,la([e],t.args))},n=e instanceof v?e.value():n)}function tn(e,t,n){var r=e.length;if(r<2)return r?Kt(e[0]):[];for(var o=-1,i=C(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=rt(i[o]||a,e[s],t,n));return Kt(u(i,1),t,n)}function nn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:Fi;n(a,e[r],s)}return a}function rn(e){return w(e)?e:[]}function on(e){return"function"==typeof e?e:I}function an(e,t){return H(e)?e:ir(e,t)?[e]:wr(h(e))}var sn=a;function un(e,t,n){var r=e.length;return n=n===Fi?r:n,!t&&r<=n?e:s(e,t,n)}var cn=le||function(e){return ia.clearTimeout(e)};function ln(e,t){if(t)return e.slice();t=e.length,t=te?te(t):new e.constructor(t);return e.copy(t),t}function fn(e){var t=new e.constructor(e.byteLength);return new ee(t).set(new ee(e)),t}function dn(e,t){t=t?fn(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function hn(e,t){if(e!==t){var n=e!==Fi,r=null===e,o=e==e,i=A(e),a=t!==Fi,s=null===t,u=t==t,c=A(t);if(!s&&!c&&!i&&t<e||i&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!u)return-1}return 0}function pn(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,c=y(i-a,0),l=C(u+c),f=!r;++s<u;)l[s]=t[s];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;c--;)l[s++]=e[o++];return l}function _n(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,u=-1,c=t.length,l=y(i-s,0),f=C(l+c),d=!r;++o<l;)f[o]=e[o];for(var h=o;++u<c;)f[h+u]=t[u];for(;++a<s;)(d||o<i)&&(f[h+n[a]]=e[o++]);return f}function E(e,t){var n=-1,r=e.length;for(t=t||C(r);++n<r;)t[n]=e[n];return t}function gn(e,t,n,r){for(var o=!n,i=(n=n||{},-1),a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):Fi;(o?Qe:Ye)(n,s,u=u===Fi?e[s]:u)}return n}function vn(o,i){return function(e,t){var n=H(e)?Is:Ke,r=i?i():{};return n(e,o,f(t,2),r)}}function mn(s){return a(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:Fi,i=2<r?t[2]:Fi,o=3<s.length&&"function"==typeof o?(r--,o):Fi;for(i&&d(t[0],t[1],i)&&(o=r<3?Fi:o,r=1),e=_(e);++n<r;){var a=t[n];a&&s(e,a,n,o)}return e})}function yn(i,a){return function(e,t){if(null==e)return e;if(!l(e))return i(e,t);for(var n=e.length,r=a?n:-1,o=_(e);(a?r--:++r<n)&&!1!==t(o[r],r,o););return e}}function bn(u){return function(e,t,n){for(var r=-1,o=_(e),i=n(e),a=i.length;a--;){var s=i[u?a:++r];if(!1===t(o[s],s,o))break}return e}}function wn(r){return function(e){var t=ha(e=h(e))?ga(e):Fi,n=t?t[0]:e.charAt(0),t=t?un(t,1).join(""):e.slice(1);return n[r]()+t}}function xn(t){return function(e){return Ns(pi(ai(e).replace(gs,"")),t,"")}}function Cn(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Ne(r.prototype),n=r.apply(t,e);return x(n)?n:t}}function Tn(a,s,u){var c=Cn(a);return function e(){for(var t=arguments,n=arguments.length,r=C(n),o=n,i=Zn(e);o--;)r[o]=t[o];i=n<3&&r[0]!==i&&r[n-1]!==i?[]:pa(r,i);return(n-=i.length)<u?Dn(a,s,Sn,e.placeholder,Fi,r,i,Fi,Fi,u-n):aa(this&&this!==ia&&this instanceof e?c:a,this,r)}}function En(i){return function(e,t,n){var r,o=_(e),t=(l(e)||(r=f(t,3),e=k(e),t=function(e){return r(o[e],e,o)}),i(e,t,n));return-1<t?o[r?e[t]:t]:Fi}}function An(u){return Wn(function(o){var i=o.length,e=i,t=g.prototype.thru;for(u&&o.reverse();e--;){var n=o[e];if("function"!=typeof n)throw new m(zi);t&&!s&&"wrapper"==Yn(n)&&(s=new g([],!0))}for(e=s?e:i;++e<i;)var r=Yn(n=o[e]),a="wrapper"==r?Xn(n):Fi,s=a&&ar(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?s[Yn(a[0])].apply(s,a[3]):1==n.length&&ar(n)?s[r]():s.thru(n);return function(){var e=arguments,t=e[0];if(s&&1==e.length&&H(t))return s.plant(t).value();for(var n=0,r=i?o[n].apply(this,e):t;++n<i;)r=o[n].call(this,r);return r}})}function Sn(s,u,c,l,f,d,h,p,_,g){var v=128&u,m=1&u,y=2&u,b=24&u,w=512&u,x=y?Fi:Cn(s);return function e(){for(var t=arguments,n=C(a=arguments.length),r=a;r--;)n[r]=t[r];if(b&&(i=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(n,o=Zn(e))),l&&(n=pn(n,l,f,b)),d&&(n=_n(n,d,h,b)),a-=i,b&&a<g)return i=pa(n,o),Dn(s,u,Sn,e.placeholder,c,n,i,p,_,g-a);var o=m?c:this,i=y?o[s]:s,a=n.length;return p?n=function(e,t){for(var n=e.length,r=T(t.length,n),o=E(e);r--;){var i=t[r];e[r]=or(i,n)?o[i]:Fi}return e}(n,p):w&&1<a&&n.reverse(),v&&_<a&&(n.length=_),(i=this&&this!==ia&&this instanceof e?x||Cn(i):i).apply(o,n)}}function Mn(n,a){return function(e,t){return e=e,r=n,o=a(t),i={},ft(e,function(e,t,n){r(i,o(e),t,n)}),i;var r,o,i}}function kn(r,o){return function(e,t){var n;if(e===Fi&&t===Fi)return o;if(e!==Fi&&(n=e),t!==Fi){if(n===Fi)return t;t="string"==typeof e||"string"==typeof t?(e=c(e),c(t)):(e=Zt(e),Zt(t)),n=r(e,t)}return n}}function On(r){return Wn(function(e){return e=ca(e,da(f())),a(function(t){var n=this;return r(e,function(e){return aa(e,n,t)})})})}function In(e,t){var n=(t=t===Fi?" ":c(t)).length;if(n<2)return n?Ut(t,e):t;n=Ut(t,he(e/_a(t)));return ha(t)?un(ga(n),0,e).join(""):n.slice(0,e)}function Bn(u,e,c,l){var f=1&e,d=Cn(u);return function e(){for(var t=arguments,n=-1,r=arguments.length,o=-1,i=l.length,a=C(i+r),s=this&&this!==ia&&this instanceof e?d:u;++o<i;)a[o]=l[o];for(;r--;)a[o++]=t[++n];return aa(s,f?c:this,a)}}function Ln(c){return function(e,t,n){n&&"number"!=typeof n&&d(e,t,n)&&(t=n=Fi),e=Do(e),t===Fi?(t=e,e=0):t=Do(t),n=n===Fi?e<t?1:-1:Do(n);for(var r=e,o=n,i=c,a=-1,s=y(he((t-r)/(o||1)),0),u=C(s);s--;)u[i?s:++a]=r,r+=o;return u}}function jn(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=M(e),t=M(t)),n(e,t)}}function Dn(e,t,n,r,o,i,a,s,u,c){var l=8&t,o=(4&(t=(t|(l?32:64))&~(l?64:32))||(t&=-4),[e,t,o,l?i:Fi,l?a:Fi,l?Fi:i,l?Fi:a,s,u,c]),i=n.apply(Fi,o);return ar(e)&&pr(i,o),i.placeholder=r,vr(i,e,t)}function Nn(e){var r=j[e];return function(e,t){var n;return e=M(e),(t=null==t?0:T(S(t),292))&&ge(e)?(n=(h(e)+"e").split("e"),+((n=(h(r(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))):r(e)}}var Pn=Ee&&1/ru(new Ee([,-0]))[1]==1/0?function(e){return new Ee(e)}:Ti;function Rn(i){return function(e){var t,n,r,o=R(e);return o==Yi?tu(e):o==Qi?(o=e,t=-1,n=Array(o.size),o.forEach(function(e){n[++t]=[e,e]}),n):ca(i(r=e),function(e){return[e,r[e]]})}}function Un(e,t,n,r,o,i,a,s){var u=2&t;if(!u&&"function"!=typeof e)throw new m(zi);var c,l,f,d,h,p=r?r.length:0,_=(p||(t&=-97,r=o=Fi),a=a===Fi?a:y(S(a),0),s=s===Fi?s:S(s),p-=o?o.length:0,64&t&&(g=r,c=o,r=o=Fi),u?Fi:Xn(e)),g=[e,t,n,r,o,g,c,i,a,s];return _&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return;1&r&&(e[2]=t[2],o|=1&n?0:4);i=t[3];{var s;i&&(s=e[3],e[3]=s?pn(s,i,t[4]):i,e[4]=s?pa(e[3],ya):t[4])}(i=t[5])&&(s=e[5],e[5]=s?_n(s,i,t[6]):i,e[6]=s?pa(e[5],ya):t[6]);(i=t[7])&&(e[7]=i);128&r&&(e[8]=null==e[8]?t[8]:T(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(g,_),e=g[0],t=g[1],n=g[2],r=g[3],o=g[4],!(s=g[9]=g[9]===Fi?u?0:e.length:y(g[9]-p,0))&&24&t&&(t&=-25),c=t&&1!=t?8==t||16==t?Tn(e,t,s):32!=t&&33!=t||o.length?Sn.apply(Fi,g):Bn(e,t,n,r):(f=n,d=1&t,h=Cn(l=e),function e(){return(this&&this!==ia&&this instanceof e?h:l).apply(d?f:this,arguments)}),vr((_?Vt:pr)(c,g),e,t)}function Hn(e,t,n,r){return e===Fi||U(e,G[n])&&!N.call(r,n)?t:e}function Fn(e,t,n,r,o,i){return x(e)&&x(t)&&(i.set(t,e),Bt(e,t,Fi,Fn,i),i.delete(t)),e}function zn(e){return So(e)?Fi:e}function Vn(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&s<u))return!1;u=i.get(e);if(u&&i.get(t))return u==t;var c=-1,l=!0,f=2&n?new ze:Fi;for(i.set(e,t),i.set(t,e);++c<s;){var d,h=e[c],p=t[c];if((d=r?a?r(p,h,c,t,e,i):r(h,p,c,e,t,i):d)!==Fi){if(d)continue;l=!1;break}if(f){if(!Rs(t,function(e,t){return!Zs(f,t)&&(h===e||o(h,e,n,r,i))&&f.push(t)})){l=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){l=!1;break}}return i.delete(e),i.delete(t),l}function Wn(e){return gr(fr(e,Fi,Sr),e+"")}function Gn(e){return _t(e,k,Jn)}function qn(e){return _t(e,O,er)}var Xn=Se?function(e){return Se.get(e)}:Ti;function Yn(e){for(var t=e.name+"",n=Me[t],r=N.call(Me,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Zn(e){return(N.call(p,"placeholder")?p:e).placeholder}function f(){var e=(e=p.iteratee||bi)===bi?Et:e;return arguments.length?e(arguments[0],arguments[1]):e}function Kn(e,t){var n,r,e=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?e["string"==typeof t?"string":"hash"]:e.map}function $n(e){for(var t=k(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,cr(o)]}return t}function Qn(e,t){t=t;e=null==(e=e)?Fi:e[t];return Tt(e)?e:Fi}var Jn=_e?function(t){return null==t?[]:(t=_(t),ua(_e(t),function(e){return oe.call(t,e)}))}:Ii,er=_e?function(e){for(var t=[];e;)la(t,Jn(e)),e=ne(e);return t}:Ii,R=n;function tr(e,t,n){for(var r=-1,o=(t=an(t,e)).length,i=!1;++r<o;){var a=xr(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&To(o)&&or(a,o)&&(H(e)||mo(e))}function nr(e){return"function"!=typeof e.constructor||ur(e)?{}:Ne(ne(e))}function rr(e){return H(e)||mo(e)||!!(ae&&e&&e[ae])}function or(e,t){var n=typeof e;return!!(t=null==t?Vi:t)&&("number"==n||"symbol"!=n&&ds.test(e))&&-1<e&&e%1==0&&e<t}function d(e,t,n){var r;if(x(n))return r=typeof t,("number"==r?l(n)&&or(t,n.length):"string"==r&&t in n)&&U(n[t],e)}function ir(e,t){var n;if(!H(e))return n=typeof e,"number"==n||"symbol"==n||"boolean"==n||null==e||A(e)||(Ya.test(e)||!Xa.test(e)||null!=t&&e in _(t))}function ar(e){var t=Yn(e),n=p[t];if("function"==typeof n&&t in v.prototype){if(e===n)return 1;t=Xn(n);return t&&e===t[0]}}(i&&R(new i(new ArrayBuffer(1)))!=na||Ce&&R(new Ce)!=Yi||Te&&R(Te.resolve())!=Aa||Ee&&R(new Ee)!=Qi||e&&R(new e)!=ea)&&(R=function(e){var t=n(e),e=t==Ki?e.constructor:Fi,e=e?Cr(e):"";if(e)switch(e){case ke:return na;case Oe:return Yi;case Ie:return Aa;case Be:return Qi;case Le:return ea}return t});var sr=q?xo:Bi;function ur(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function cr(e){return e==e&&!x(e)}function lr(t,n){return function(e){return null!=e&&(e[t]===n&&(n!==Fi||t in _(e)))}}function fr(i,a,s){return a=y(a===Fi?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=y(e.length-a,0),r=C(n);++t<n;)r[t]=e[a+t];for(var t=-1,o=C(a+1);++t<a;)o[t]=e[t];return o[a]=s(r),aa(i,this,o)}}function dr(e,t){return t.length<2?e:pt(e,s(t,0,-1))}function hr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var pr=mr(Vt),_r=de||function(e,t){return ia.setTimeout(e,t)},gr=mr(t);function vr(e,t,n){var r,o,t=t+"";return gr(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(1<n?"& ":"")+t[r],t=t.join(2<n?", ":" "),e.replace(ts,"{\n/* [wrapped with "+t+"] */\n")}(t,(r=(e=(e=t).match(ns))?e[1].split(rs):[],o=n,sa(wa,function(e){var t="_."+e[0];o&e[1]&&!js(r,t)&&r.push(t)}),r.sort())))}function mr(n){var r=0,o=0;return function(){var e=ye(),t=16-(e-o);if(o=e,0<t){if(800<=++r)return arguments[0]}else r=0;return n.apply(Fi,arguments)}}function yr(e,t){var n=-1,r=e.length,o=r-1;for(t=t===Fi?r:t;++n<t;){var i=Rt(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}br=(le=lo(le=function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(Za,function(e,t,n,r){o.push(n?r.replace(is,"$1"):t||e)}),o},function(e){return 500===br.size&&br.clear(),e})).cache;var br,wr=le;function xr(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Cr(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Tr(e){if(e instanceof v)return e.clone();var t=new g(e.__wrapped__,e.__chain__);return t.__actions__=E(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}i=a(function(e,t){return w(e)?rt(e,u(t,1,w,!0)):[]}),Te=a(function(e,t){var n=r(t);return w(n)&&(n=Fi),w(e)?rt(e,u(t,1,w,!0),f(n,2)):[]}),e=a(function(e,t){var n=r(t);return w(n)&&(n=Fi),w(e)?rt(e,u(t,1,w,!0),Fi,n):[]});function Er(e,t,n){var r=null==e?0:e.length;if(!r)return-1;n=null==n?0:S(n);return n<0&&(n=y(r+n,0)),Hs(e,f(t,3),n)}function Ar(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==Fi&&(o=S(n),o=n<0?y(r+o,0):T(o,r-1)),Hs(e,f(t,3),o,!0)}function Sr(e){return(null==e?0:e.length)?u(e,1):[]}function Mr(e){return e&&e.length?e[0]:Fi}q=a(function(e){var t=ca(e,rn);return t.length&&t[0]===e[0]?yt(t):[]}),de=a(function(e){var t=r(e),n=ca(e,rn);return t===r(n)?t=Fi:n.pop(),n.length&&n[0]===e[0]?yt(n,f(t,2)):[]}),t=a(function(e){var t=r(e),n=ca(e,rn);return(t="function"==typeof t?t:Fi)&&n.pop(),n.length&&n[0]===e[0]?yt(n,Fi,t):[]});function r(e){var t=null==e?0:e.length;return t?e[t-1]:Fi}le=a(kr);function kr(e,t){return e&&e.length&&t&&t.length?Nt(e,t):e}var Or=Wn(function(e,t){var n=null==e?0:e.length,r=Je(e,t);return Pt(e,ca(t,function(e){return or(e,n)?+e:e}).sort(hn)),r});function Ir(e){return null==e?e:xe.call(e)}var Br=a(function(e){return Kt(u(e,1,w,!0))}),Lr=a(function(e){var t=r(e);return w(t)&&(t=Fi),Kt(u(e,1,w,!0),f(t,2))}),jr=a(function(e){var t="function"==typeof(t=r(e))?t:Fi;return Kt(u(e,1,w,!0),Fi,t)});function Dr(t){if(!t||!t.length)return[];var n=0;return t=ua(t,function(e){return w(e)&&(n=y(e.length,n),1)}),Xs(n,function(e){return ca(t,Ws(e))})}function Nr(e,t){if(!e||!e.length)return[];e=Dr(e);return null==t?e:ca(e,function(e){return aa(t,Fi,e)})}var Pr=a(function(e,t){return w(e)?rt(e,t):[]}),Rr=a(function(e){return tn(ua(e,w))}),Ur=a(function(e){var t=r(e);return w(t)&&(t=Fi),tn(ua(e,w),f(t,2))}),Hr=a(function(e){var t="function"==typeof(t=r(e))?t:Fi;return tn(ua(e,w),Fi,t)}),Fr=a(Dr);var zr=a(function(e){var t=e.length,t="function"==typeof(t=1<t?e[t-1]:Fi)?(e.pop(),t):Fi;return Nr(e,t)});function Vr(e){e=p(e);return e.__chain__=!0,e}function Wr(e,t){return t(e)}var Gr=Wn(function(t){function e(e){return Je(e,t)}var n=t.length,r=n?t[0]:0,o=this.__wrapped__;return!(1<n||this.__actions__.length)&&o instanceof v&&or(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:Wr,args:[e],thisArg:Fi}),new g(o,this.__chain__).thru(function(e){return n&&!e.length&&e.push(Fi),e})):this.thru(e)});var qr=vn(function(e,t,n){N.call(e,n)?++e[n]:Qe(e,n,1)});var Xr=En(Er),Yr=En(Ar);function Zr(e,t){return(H(e)?sa:ot)(e,f(t,3))}function Kr(e,t){return(H(e)?Bs:it)(e,f(t,3))}var $r=vn(function(e,t,n){N.call(e,n)?e[n].push(t):Qe(e,n,[t])});var Qr=a(function(e,t,n){var r=-1,o="function"==typeof t,i=l(e)?C(e.length):[];return ot(e,function(e){i[++r]=o?aa(t,e,n):bt(e,t,n)}),i}),Jr=vn(function(e,t,n){Qe(e,n,t)});function eo(e,t){return(H(e)?ca:kt)(e,f(t,3))}var to=vn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var no=a(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&d(e,t[0],t[1])?t=[]:2<n&&d(t[0],t[1],t[2])&&(t=[t[0]]),jt(e,u(t,1),[])}),ro=fe||function(){return ia.Date.now()};function oo(e,t,n){return t=n?Fi:t,t=e&&null==t?e.length:t,Un(e,128,Fi,Fi,Fi,Fi,t)}function io(e,t){var n;if("function"!=typeof t)throw new m(zi);return e=S(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=Fi),n}}var ao=a(function(e,t,n){var r,o=1;return n.length&&(r=pa(n,Zn(ao)),o|=32),Un(e,o,t,n,r)}),so=a(function(e,t,n){var r,o=3;return n.length&&(r=pa(n,Zn(so)),o|=32),Un(t,o,e,n,r)});function uo(r,n,e){var o,i,a,s,u,c,l=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new m(zi);function h(e){var t=o,n=i;return o=i=Fi,l=e,s=r.apply(n,t)}function p(e){var t=e-c;return c===Fi||n<=t||t<0||d&&a<=e-l}function _(){var e,t=ro();if(p(t))return g(t);u=_r(_,(e=n-((t=t)-c),d?T(e,a-(t-l)):e))}function g(e){return u=Fi,t&&o?h(e):(o=i=Fi,s)}function v(){var e=ro(),t=p(e);if(o=arguments,i=this,c=e,t){if(u===Fi)return l=e=c,u=_r(_,n),f?h(e):s;if(d)return cn(u),u=_r(_,n),h(c)}return u===Fi&&(u=_r(_,n)),s}return n=M(n)||0,x(e)&&(f=!!e.leading,d="maxWait"in e,a=d?y(M(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){u!==Fi&&cn(u),l=0,o=c=i=u=Fi},v.flush=function(){return u===Fi?s:g(ro())},v}var fe=a(function(e,t){return nt(e,1,t)}),co=a(function(e,t,n){return nt(e,M(t)||0,n)});function lo(r,o){if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new m(zi);function i(){var e=arguments,t=o?o.apply(this,e):e[0],n=i.cache;return n.has(t)?n.get(t):(e=r.apply(this,e),i.cache=n.set(t,e)||n,e)}return i.cache=new(lo.Cache||Fe),i}function fo(t){if("function"!=typeof t)throw new m(zi);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}lo.Cache=Fe;var sn=sn(function(r,o){var i=(o=1==o.length&&H(o[0])?ca(o[0],da(f())):ca(u(o,1),da(f()))).length;return a(function(e){for(var t=-1,n=T(e.length,i);++t<n;)e[t]=o[t].call(this,e[t]);return aa(r,this,e)})}),ho=a(function(e,t){var n=pa(t,Zn(ho));return Un(e,32,Fi,t,n)}),po=a(function(e,t){var n=pa(t,Zn(po));return Un(e,64,Fi,t,n)}),_o=Wn(function(e,t){return Un(e,256,Fi,Fi,Fi,t)});function U(e,t){return e===t||e!=e&&t!=t}var go=jn(gt),vo=jn(function(e,t){return t<=e}),mo=wt(function(){return arguments}())?wt:function(e){return F(e)&&N.call(e,"callee")&&!oe.call(e,"callee")},H=C.isArray,yo=Es?da(Es):function(e){return F(e)&&n(e)==ta};function l(e){return null!=e&&To(e.length)&&!xo(e)}function w(e){return F(e)&&l(e)}var bo=W||Bi,W=As?da(As):function(e){return F(e)&&n(e)==Xi};function wo(e){if(!F(e))return!1;var t=n(e);return t==Ca||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!So(e)}function xo(e){if(!x(e))return!1;e=n(e);return e==Ta||e==Ea||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Co(e){return"number"==typeof e&&e==S(e)}function To(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=Vi}function x(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function F(e){return null!=e&&"object"==typeof e}var Eo=Ss?da(Ss):function(e){return F(e)&&R(e)==Yi};function Ao(e){return"number"==typeof e||F(e)&&n(e)==Zi}function So(e){if(!F(e)||n(e)!=Ki)return!1;e=ne(e);if(null===e)return!0;e=N.call(e,"constructor")&&e.constructor;return"function"==typeof e&&e instanceof e&&X.call(e)==$}var Mo=Ms?da(Ms):function(e){return F(e)&&n(e)==$i};var ko=ks?da(ks):function(e){return F(e)&&R(e)==Qi};function Oo(e){return"string"==typeof e||!H(e)&&F(e)&&n(e)==Ji}function A(e){return"symbol"==typeof e||F(e)&&n(e)==Sa}var Io=Os?da(Os):function(e){return F(e)&&To(e.length)&&!!ra[n(e)]};var Bo=jn(Mt),Lo=jn(function(e,t){return e<=t});function jo(e){if(!e)return[];if(l(e))return(Oo(e)?ga:E)(e);if(se&&e[se]){for(var t,n=e[se](),r=[];!(t=n.next()).done;)r.push(t.value);return r}var o=R(e);return(o==Yi?tu:o==Qi?ru:ri)(e)}function Do(e){return e?(e=M(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function S(e){var e=Do(e),t=e%1;return e==e?t?e-t:e:0}function No(e){return e?et(S(e),0,Wi):0}function M(e){if("number"==typeof e)return e;if(A(e))return ba;if("string"!=typeof(e=x(e)?x(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Qa,"");var t=cs.test(e);return t||fs.test(e)?Cs(e.slice(2),t?2:8):us.test(e)?ba:+e}function Po(e){return gn(e,O(e))}function h(e){return null==e?"":c(e)}var Ro=mn(function(e,t){if(ur(t)||l(t))gn(t,k(t),e);else for(var n in t)N.call(t,n)&&Ye(e,n,t[n])}),Uo=mn(function(e,t){gn(t,O(t),e)}),Ho=mn(function(e,t,n,r){gn(t,O(t),e,r)}),Fo=mn(function(e,t,n,r){gn(t,k(t),e,r)}),zo=Wn(Je);var Vo=a(function(e,t){e=_(e);var n=-1,r=t.length,o=2<r?t[2]:Fi;for(o&&d(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=O(i),s=-1,u=a.length;++s<u;){var c=a[s],l=e[c];(l===Fi||U(l,G[c])&&!N.call(e,c))&&(e[c]=i[c])}return e}),Wo=a(function(e){return e.push(Fi,Fn),aa($o,Fi,e)});function Go(e,t,n){e=null==e?Fi:pt(e,t);return e===Fi?n:e}function qo(e,t){return null!=e&&tr(e,t,mt)}var Xo=Mn(function(e,t,n){e[t=null!=t&&"function"!=typeof t.toString?K.call(t):t]=n},vi(I)),Yo=Mn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=K.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},f),Zo=a(bt);function k(e){return(l(e)?Ve:At)(e)}function O(e){return l(e)?Ve(e,!0):St(e)}var Ko=mn(function(e,t,n){Bt(e,t,n)}),$o=mn(function(e,t,n,r){Bt(e,t,n,r)}),Qo=Wn(function(t,e){var n={};if(null==t)return n;for(var r=!1,o=(e=ca(e,function(e){return e=an(e,t),r=r||1<e.length,e}),gn(t,qn(t),n),r&&(n=b(n,7,zn)),e.length);o--;)$t(n,e[o]);return n});var Jo=Wn(function(e,t){return null==e?{}:Dt(n=e,t,function(e,t){return qo(n,t)});var n});function ei(e,n){if(null==e)return{};var t=ca(qn(e),function(e){return[e]});return n=f(n),Dt(e,t,function(e,t){return n(e,t[0])})}var ti=Rn(k),ni=Rn(O);function ri(e){return null==e?[]:Ys(e,k(e))}var oi=xn(function(e,t,n){return t=t.toLowerCase(),e+(n?ii(t):t)});function ii(e){return hi(h(e).toLowerCase())}function ai(e){return(e=h(e))&&e.replace(hs,Qs).replace(vs,"")}var si=xn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ui=xn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ci=wn("toLowerCase");var li=xn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var fi=xn(function(e,t,n){return e+(n?" ":"")+hi(t)});var di=xn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),hi=wn("toUpperCase");function pi(e,t,n){return e=h(e),(t=n?Fi:t)===Fi?(n=e,ys.test(n)?e.match(ms)||[]:e.match(os)||[]):e.match(t)||[]}var _i=a(function(e,t){try{return aa(e,Fi,t)}catch(e){return wo(e)?e:new B(e)}}),gi=Wn(function(t,e){return sa(e,function(e){e=xr(e),Qe(t,e,ao(t[e],t))}),t});function vi(e){return function(){return e}}var mi=An(),yi=An(!0);function I(e){return e}function bi(e){return Et("function"==typeof e?e:b(e,1))}var wi=a(function(t,n){return function(e){return bt(e,t,n)}}),xi=a(function(t,n){return function(e){return bt(t,e,n)}});function Ci(r,t,e){var n=k(t),o=ht(t,n),i=(null!=e||x(t)&&(o.length||!n.length)||(e=t,t=r,r=this,o=ht(t,k(t))),!(x(e)&&"chain"in e&&!e.chain)),a=xo(r);return sa(o,function(e){var n=t[e];r[e]=n,a&&(r.prototype[e]=function(){var e,t=this.__chain__;return i||t?(((e=r(this.__wrapped__)).__actions__=E(this.__actions__)).push({func:n,args:arguments,thisArg:r}),e.__chain__=t,e):n.apply(r,la([this.value()],arguments))})}),r}function Ti(){}var Ei=On(ca),Ai=On(Ls),Si=On(Rs);function Mi(e){return ir(e)?Ws(xr(e)):(t=e,function(e){return pt(e,t)});var t}var ki=Ln(),Oi=Ln(!0);function Ii(){return[]}function Bi(){return!1}var Li=kn(function(e,t){return e+t},0),ji=Nn("ceil"),Di=kn(function(e,t){return e/t},1),Ni=Nn("floor");var Pi,Ri=kn(function(e,t){return e*t},1),Ui=Nn("round"),Hi=kn(function(e,t){return e-t},0);return p.after=function(e,t){if("function"!=typeof t)throw new m(zi);return e=S(e),function(){if(--e<1)return t.apply(this,arguments)}},p.ary=oo,p.assign=Ro,p.assignIn=Uo,p.assignInWith=Ho,p.assignWith=Fo,p.at=zo,p.before=io,p.bind=ao,p.bindAll=gi,p.bindKey=so,p.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]},p.chain=Vr,p.chunk=function(e,t,n){t=(n?d(e,t,n):t===Fi)?1:y(S(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=C(he(r/t));o<r;)a[i++]=s(e,o,o+=t);return a},p.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},p.concat=function(){var e=arguments,t=arguments.length;if(!t)return[];for(var n=C(t-1),r=arguments[0],o=t;o--;)n[o-1]=e[o];return la(H(r)?E(r):[r],u(n,1))},p.cond=function(r){var o=null==r?0:r.length,t=f();return r=o?ca(r,function(e){if("function"!=typeof e[1])throw new m(zi);return[t(e[0]),e[1]]}):[],a(function(e){for(var t=-1;++t<o;){var n=r[t];if(aa(n[0],this,e))return aa(n[1],this,e)}})},p.conforms=function(e){return t=b(e,1),n=k(t),function(e){return tt(e,t,n)};var t,n},p.constant=vi,p.countBy=qr,p.create=function(e,t){return e=Ne(e),null==t?e:$e(e,t)},p.curry=function e(t,n,r){t=Un(t,8,Fi,Fi,Fi,Fi,Fi,n=r?Fi:n);return t.placeholder=e.placeholder,t},p.curryRight=function e(t,n,r){t=Un(t,16,Fi,Fi,Fi,Fi,Fi,n=r?Fi:n);return t.placeholder=e.placeholder,t},p.debounce=uo,p.defaults=Vo,p.defaultsDeep=Wo,p.defer=fe,p.delay=co,p.difference=i,p.differenceBy=Te,p.differenceWith=e,p.drop=function(e,t,n){var r=null==e?0:e.length;return r?s(e,(t=n||t===Fi?1:S(t))<0?0:t,r):[]},p.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?s(e,0,(t=r-(t=n||t===Fi?1:S(t)))<0?0:t):[]},p.dropRightWhile=function(e,t){return e&&e.length?Jt(e,f(t,3),!0,!0):[]},p.dropWhile=function(e,t){return e&&e.length?Jt(e,f(t,3),!0):[]},p.fill=function(e,t,n,r){if(!(u=null==e?0:e.length))return[];n&&"number"!=typeof n&&d(e,t,n)&&(n=0,r=u);var o=e,i=t,a=n,s=r,u=o.length;for((a=S(a))<0&&(a=u<-a?0:u+a),(s=s===Fi||u<s?u:S(s))<0&&(s+=u),s=s<a?0:No(s);a<s;)o[a++]=i;return o},p.filter=function(e,t){return(H(e)?ua:ut)(e,f(t,3))},p.flatMap=function(e,t){return u(eo(e,t),1)},p.flatMapDeep=function(e,t){return u(eo(e,t),1/0)},p.flatMapDepth=function(e,t,n){return n=n===Fi?1:S(n),u(eo(e,t),n)},p.flatten=Sr,p.flattenDeep=function(e){return(null==e?0:e.length)?u(e,1/0):[]},p.flattenDepth=function(e,t){return(null==e?0:e.length)?u(e,t=t===Fi?1:S(t)):[]},p.flip=function(e){return Un(e,512)},p.flow=mi,p.flowRight=yi,p.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},p.functions=function(e){return null==e?[]:ht(e,k(e))},p.functionsIn=function(e){return null==e?[]:ht(e,O(e))},p.groupBy=$r,p.initial=function(e){return(null==e?0:e.length)?s(e,0,-1):[]},p.intersection=q,p.intersectionBy=de,p.intersectionWith=t,p.invert=Xo,p.invertBy=Yo,p.invokeMap=Qr,p.iteratee=bi,p.keyBy=Jr,p.keys=k,p.keysIn=O,p.map=eo,p.mapKeys=function(e,r){var o={};return r=f(r,3),ft(e,function(e,t,n){Qe(o,r(e,t,n),e)}),o},p.mapValues=function(e,r){var o={};return r=f(r,3),ft(e,function(e,t,n){Qe(o,t,r(e,t,n))}),o},p.matches=function(e){return Ot(b(e,1))},p.matchesProperty=function(e,t){return It(e,b(t,1))},p.memoize=lo,p.merge=Ko,p.mergeWith=$o,p.method=wi,p.methodOf=xi,p.mixin=Ci,p.negate=fo,p.nthArg=function(t){return t=S(t),a(function(e){return Lt(e,t)})},p.omit=Qo,p.omitBy=function(e,t){return ei(e,fo(f(t)))},p.once=function(e){return io(2,e)},p.orderBy=function(e,t,n,r){return null==e?[]:jt(e,t=H(t)?t:null==t?[]:[t],n=H(n=r?Fi:n)?n:null==n?[]:[n])},p.over=Ei,p.overArgs=sn,p.overEvery=Ai,p.overSome=Si,p.partial=ho,p.partialRight=po,p.partition=to,p.pick=Jo,p.pickBy=ei,p.property=Mi,p.propertyOf=function(t){return function(e){return null==t?Fi:pt(t,e)}},p.pull=le,p.pullAll=kr,p.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nt(e,t,f(n,2)):e},p.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nt(e,t,Fi,n):e},p.pullAt=Or,p.range=ki,p.rangeRight=Oi,p.rearg=_o,p.reject=function(e,t){return(H(e)?ua:ut)(e,fo(f(t,3)))},p.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=f(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Pt(e,o),n},p.rest=function(e,t){if("function"!=typeof e)throw new m(zi);return a(e,t=t===Fi?t:S(t))},p.reverse=Ir,p.sampleSize=function(e,t,n){return t=(n?d(e,t,n):t===Fi)?1:S(t),(H(e)?Ge:Ft)(e,t)},p.set=function(e,t,n){return null==e?e:zt(e,t,n)},p.setWith=function(e,t,n,r){return r="function"==typeof r?r:Fi,null==e?e:zt(e,t,n,r)},p.shuffle=function(e){return(H(e)?qe:Wt)(e)},p.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n=n&&"number"!=typeof n&&d(e,t,n)?(t=0,r):(t=null==t?0:S(t),n===Fi?r:S(n)),s(e,t,n)):[]},p.sortBy=no,p.sortedUniq=function(e){return e&&e.length?Yt(e):[]},p.sortedUniqBy=function(e,t){return e&&e.length?Yt(e,f(t,2)):[]},p.split=function(e,t,n){return n&&"number"!=typeof n&&d(e,t,n)&&(t=n=Fi),(n=n===Fi?Wi:n>>>0)?(e=h(e))&&("string"==typeof t||null!=t&&!Mo(t))&&!(t=c(t))&&ha(e)?un(ga(e),0,n):e.split(t,n):[]},p.spread=function(n,r){if("function"!=typeof n)throw new m(zi);return r=null==r?0:y(S(r),0),a(function(e){var t=e[r],e=un(e,0,r);return t&&la(e,t),aa(n,this,e)})},p.tail=function(e){var t=null==e?0:e.length;return t?s(e,1,t):[]},p.take=function(e,t,n){return e&&e.length?s(e,0,(t=n||t===Fi?1:S(t))<0?0:t):[]},p.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?s(e,(t=r-(t=n||t===Fi?1:S(t)))<0?0:t,r):[]},p.takeRightWhile=function(e,t){return e&&e.length?Jt(e,f(t,3),!1,!0):[]},p.takeWhile=function(e,t){return e&&e.length?Jt(e,f(t,3)):[]},p.tap=function(e,t){return t(e),e},p.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new m(zi);return x(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),uo(e,t,{leading:r,maxWait:t,trailing:o})},p.thru=Wr,p.toArray=jo,p.toPairs=ti,p.toPairsIn=ni,p.toPath=function(e){return H(e)?ca(e,xr):A(e)?[e]:E(wr(h(e)))},p.toPlainObject=Po,p.transform=function(e,r,o){var t,n=H(e),i=n||bo(e)||Io(e);return r=f(r,4),null==o&&(t=e&&e.constructor,o=i?n?new t:[]:x(e)&&xo(t)?Ne(ne(e)):{}),(i?sa:ft)(e,function(e,t,n){return r(o,e,t,n)}),o},p.unary=function(e){return oo(e,1)},p.union=Br,p.unionBy=Lr,p.unionWith=jr,p.uniq=function(e){return e&&e.length?Kt(e):[]},p.uniqBy=function(e,t){return e&&e.length?Kt(e,f(t,2)):[]},p.uniqWith=function(e,t){return t="function"==typeof t?t:Fi,e&&e.length?Kt(e,Fi,t):[]},p.unset=function(e,t){return null==e||$t(e,t)},p.unzip=Dr,p.unzipWith=Nr,p.update=function(e,t,n){return null==e?e:Qt(e,t,on(n))},p.updateWith=function(e,t,n,r){return r="function"==typeof r?r:Fi,null==e?e:Qt(e,t,on(n),r)},p.values=ri,p.valuesIn=function(e){return null==e?[]:Ys(e,O(e))},p.without=Pr,p.words=pi,p.wrap=function(e,t){return ho(on(t),e)},p.xor=Rr,p.xorBy=Ur,p.xorWith=Hr,p.zip=Fr,p.zipObject=function(e,t){return nn(e||[],t||[],Ye)},p.zipObjectDeep=function(e,t){return nn(e||[],t||[],zt)},p.zipWith=zr,p.entries=ti,p.entriesIn=ni,p.extend=Uo,p.extendWith=Ho,Ci(p,p),p.add=Li,p.attempt=_i,p.camelCase=oi,p.capitalize=ii,p.ceil=ji,p.clamp=function(e,t,n){return n===Fi&&(n=t,t=Fi),n!==Fi&&(n=(n=M(n))==n?n:0),t!==Fi&&(t=(t=M(t))==t?t:0),et(M(e),t,n)},p.clone=function(e){return b(e,4)},p.cloneDeep=function(e){return b(e,5)},p.cloneDeepWith=function(e,t){return b(e,5,t="function"==typeof t?t:Fi)},p.cloneWith=function(e,t){return b(e,4,t="function"==typeof t?t:Fi)},p.conformsTo=function(e,t){return null==t||tt(e,t,k(t))},p.deburr=ai,p.defaultTo=function(e,t){return null==e||e!=e?t:e},p.divide=Di,p.endsWith=function(e,t,n){e=h(e),t=c(t);var r=e.length,r=n=n===Fi?r:et(S(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},p.eq=U,p.escape=function(e){return(e=h(e))&&Va.test(e)?e.replace(Fa,Js):e},p.escapeRegExp=function(e){return(e=h(e))&&$a.test(e)?e.replace(Ka,"\\$&"):e},p.every=function(e,t,n){return(H(e)?Ls:at)(e,f(t=n&&d(e,t,n)?Fi:t,3))},p.find=Xr,p.findIndex=Er,p.findKey=function(e,t){return Us(e,f(t,3),ft)},p.findLast=Yr,p.findLastIndex=Ar,p.findLastKey=function(e,t){return Us(e,f(t,3),dt)},p.floor=Ni,p.forEach=Zr,p.forEachRight=Kr,p.forIn=function(e,t){return null==e?e:ct(e,f(t,3),O)},p.forInRight=function(e,t){return null==e?e:lt(e,f(t,3),O)},p.forOwn=function(e,t){return e&&ft(e,f(t,3))},p.forOwnRight=function(e,t){return e&&dt(e,f(t,3))},p.get=Go,p.gt=go,p.gte=vo,p.has=function(e,t){return null!=e&&tr(e,t,vt)},p.hasIn=qo,p.head=Mr,p.identity=I,p.includes=function(e,t,n,r){return e=l(e)?e:ri(e),n=n&&!r?S(n):0,r=e.length,n<0&&(n=y(r+n,0)),Oo(e)?n<=r&&-1<e.indexOf(t,n):!!r&&-1<fa(e,t,n)},p.indexOf=function(e,t,n){var r=null==e?0:e.length;return r?(n=null==n?0:S(n),fa(e,t,n=n<0?y(r+n,0):n)):-1},p.inRange=function(e,t,n){return t=Do(t),n===Fi?(n=t,t=0):n=Do(n),(e=e=M(e))>=T(t=t,n=n)&&e<y(t,n)},p.invoke=Zo,p.isArguments=mo,p.isArray=H,p.isArrayBuffer=yo,p.isArrayLike=l,p.isArrayLikeObject=w,p.isBoolean=function(e){return!0===e||!1===e||F(e)&&n(e)==qi},p.isBuffer=bo,p.isDate=W,p.isElement=function(e){return F(e)&&1===e.nodeType&&!So(e)},p.isEmpty=function(e){if(null==e)return!0;if(l(e)&&(H(e)||"string"==typeof e||"function"==typeof e.splice||bo(e)||Io(e)||mo(e)))return!e.length;var t,n=R(e);if(n==Yi||n==Qi)return!e.size;if(ur(e))return!At(e).length;for(t in e)if(N.call(e,t))return!1;return!0},p.isEqual=function(e,t){return xt(e,t)},p.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:Fi)?n(e,t):Fi;return r===Fi?xt(e,t,Fi,n):!!r},p.isError=wo,p.isFinite=function(e){return"number"==typeof e&&ge(e)},p.isFunction=xo,p.isInteger=Co,p.isLength=To,p.isMap=Eo,p.isMatch=function(e,t){return e===t||Ct(e,t,$n(t))},p.isMatchWith=function(e,t,n){return n="function"==typeof n?n:Fi,Ct(e,t,$n(t),n)},p.isNaN=function(e){return Ao(e)&&e!=+e},p.isNative=function(e){if(sr(e))throw new B("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tt(e)},p.isNil=function(e){return null==e},p.isNull=function(e){return null===e},p.isNumber=Ao,p.isObject=x,p.isObjectLike=F,p.isPlainObject=So,p.isRegExp=Mo,p.isSafeInteger=function(e){return Co(e)&&-Vi<=e&&e<=Vi},p.isSet=ko,p.isString=Oo,p.isSymbol=A,p.isTypedArray=Io,p.isUndefined=function(e){return e===Fi},p.isWeakMap=function(e){return F(e)&&R(e)==ea},p.isWeakSet=function(e){return F(e)&&"[object WeakSet]"==n(e)},p.join=function(e,t){return null==e?"":ve.call(e,t)},p.kebabCase=si,p.last=r,p.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;if(n!==Fi&&(o=(o=S(n))<0?y(r+o,0):T(o,r-1)),t!=t)return Hs(e,zs,o,!0);for(var i=e,a=t,s=o+1;s--;)if(i[s]===a)return s;return s},p.lowerCase=ui,p.lowerFirst=ci,p.lt=Bo,p.lte=Lo,p.max=function(e){return e&&e.length?st(e,I,gt):Fi},p.maxBy=function(e,t){return e&&e.length?st(e,f(t,2),gt):Fi},p.mean=function(e){return Vs(e,I)},p.meanBy=function(e,t){return Vs(e,f(t,2))},p.min=function(e){return e&&e.length?st(e,I,Mt):Fi},p.minBy=function(e,t){return e&&e.length?st(e,f(t,2),Mt):Fi},p.stubArray=Ii,p.stubFalse=Bi,p.stubObject=function(){return{}},p.stubString=function(){return""},p.stubTrue=function(){return!0},p.multiply=Ri,p.nth=function(e,t){return e&&e.length?Lt(e,S(t)):Fi},p.noConflict=function(){return ia._===this&&(ia._=Q),this},p.noop=Ti,p.now=ro,p.pad=function(e,t,n){e=h(e);var r=(t=S(t))?_a(e):0;return!t||t<=r?e:In(pe(t=(t-r)/2),n)+e+In(he(t),n)},p.padEnd=function(e,t,n){e=h(e);var r=(t=S(t))?_a(e):0;return t&&r<t?e+In(t-r,n):e},p.padStart=function(e,t,n){e=h(e);var r=(t=S(t))?_a(e):0;return t&&r<t?In(t-r,n)+e:e},p.parseInt=function(e,t,n){return t=n||null==t?0:t&&+t,be(h(e).replace(Ja,""),t||0)},p.random=function(e,t,n){var r;return n&&"boolean"!=typeof n&&d(e,t,n)&&(t=n=Fi),n===Fi&&("boolean"==typeof t?(n=t,t=Fi):"boolean"==typeof e&&(n=e,e=Fi)),e===Fi&&t===Fi?(e=0,t=1):(e=Do(e),t===Fi?(t=e,e=0):t=Do(t)),t<e&&(r=e,e=t,t=r),n||e%1||t%1?(r=we(),T(e+r*(t-e+xs("1e-"+((r+"").length-1))),t)):Rt(e,t)},p.reduce=function(e,t,n){var r=H(e)?Ns:Gs,o=arguments.length<3;return r(e,f(t,4),n,o,ot)},p.reduceRight=function(e,t,n){var r=H(e)?Ps:Gs,o=arguments.length<3;return r(e,f(t,4),n,o,it)},p.repeat=function(e,t,n){return t=(n?d(e,t,n):t===Fi)?1:S(t),Ut(h(e),t)},p.replace=function(){var e=arguments,t=h(e[0]);return e.length<3?t:t.replace(e[1],e[2])},p.result=function(e,t,n){var r=-1,o=(t=an(t,e)).length;for(o||(o=1,e=Fi);++r<o;){var i=null==e?Fi:e[xr(t[r])];i===Fi&&(r=o,i=n),e=xo(i)?i.call(e):i}return e},p.round=Ui,p.runInContext=o,p.sample=function(e){return(H(e)?We:Ht)(e)},p.size=function(e){if(null==e)return 0;if(l(e))return Oo(e)?_a(e):e.length;var t=R(e);return t==Yi||t==Qi?e.size:At(e).length},p.snakeCase=li,p.some=function(e,t,n){return(H(e)?Rs:Gt)(e,f(t=n&&d(e,t,n)?Fi:t,3))},p.sortedIndex=function(e,t){return qt(e,t)},p.sortedIndexBy=function(e,t,n){return Xt(e,t,f(n,2))},p.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=qt(e,t);if(r<n&&U(e[r],t))return r}return-1},p.sortedLastIndex=function(e,t){return qt(e,t,!0)},p.sortedLastIndexBy=function(e,t,n){return Xt(e,t,f(n,2),!0)},p.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=qt(e,t,!0)-1;if(U(e[n],t))return n}return-1},p.startCase=fi,p.startsWith=function(e,t,n){return e=h(e),n=null==n?0:et(S(n),0,e.length),t=c(t),e.slice(n,n+t.length)==t},p.subtract=Hi,p.sum=function(e){return e&&e.length?qs(e,I):0},p.sumBy=function(e,t){return e&&e.length?qs(e,f(t,2)):0},p.template=function(a,e,t){var s,u,n=p.templateSettings;t&&d(a,e,t)&&(e=Fi),a=h(a),e=Ho({},e,n,Hn);var r=k(t=Ho({},e.imports,n.imports,Hn)),o=Ys(t,r),c=0,n=e.interpolate||ps,l="__p += '",t=D((e.escape||ps).source+"|"+n.source+"|"+(n===qa?as:ps).source+"|"+(e.evaluate||ps).source+"|$","g"),i="//# sourceURL="+(N.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++ws+"]")+"\n";if(a.replace(t,function(e,t,n,r,o,i){return n=n||r,l+=a.slice(c,i).replace(_s,eu),t&&(s=!0,l+="' +\n__e("+t+") +\n'"),o&&(u=!0,l+="';\n"+o+";\n__p += '"),n&&(l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=i+e.length,e}),l+="';\n",(n=N.call(e,"variable")&&e.variable)||(l="with (obj) {\n"+l+"\n}\n"),l=(u?l.replace(Pa,""):l).replace(Ra,"$1").replace(Ua,"$1;"),l="function("+(n||"obj")+") {\n"+(n?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}",(t=_i(function(){return L(r,i+"return "+l).apply(Fi,o)})).source=l,wo(t))throw t;return t},p.times=function(e,t){if((e=S(e))<1||Vi<e)return[];for(var n=Wi,r=T(e,Wi),r=(t=f(t),e-=Wi,Xs(r,t));++n<e;)t(n);return r},p.toFinite=Do,p.toInteger=S,p.toLength=No,p.toLower=function(e){return h(e).toLowerCase()},p.toNumber=M,p.toSafeInteger=function(e){return e?et(S(e),-Vi,Vi):0===e?e:0},p.toString=h,p.toUpper=function(e){return h(e).toUpperCase()},p.trim=function(e,t,n){return(e=h(e))&&(n||t===Fi)?e.replace(Qa,""):e&&(t=c(t))?(n=ga(e),e=ga(t),un(n,Ks(n,e),$s(n,e)+1).join("")):e},p.trimEnd=function(e,t,n){return(e=h(e))&&(n||t===Fi)?e.replace(es,""):e&&(t=c(t))?un(n=ga(e),0,$s(n,ga(t))+1).join(""):e},p.trimStart=function(e,t,n){return(e=h(e))&&(n||t===Fi)?e.replace(Ja,""):e&&(t=c(t))?un(n=ga(e),Ks(n,ga(t))).join(""):e},p.truncate=function(e,t){var n,r=30,o="...",t=(x(t)&&(n="separator"in t?t.separator:n,r="length"in t?S(t.length):r,o="omission"in t?c(t.omission):o),(e=h(e)).length);if((t=ha(e)?(i=ga(e)).length:t)<=r)return e;if((t=r-_a(o))<1)return o;var i,r=i?un(i,0,t).join(""):e.slice(0,t);if(n===Fi)return r+o;if(i&&(t+=r.length-t),Mo(n)){if(e.slice(t).search(n)){var a,s=r;for((n=n.global?n:D(n.source,h(ss.exec(n))+"g")).lastIndex=0;a=n.exec(s);)var u=a.index;r=r.slice(0,u===Fi?t:u)}}else e.indexOf(c(n),t)==t||-1<(i=r.lastIndexOf(n))&&(r=r.slice(0,i));return r+o},p.unescape=function(e){return(e=h(e))&&za.test(e)?e.replace(Ha,ou):e},p.uniqueId=function(e){var t=++Y;return h(e)+t},p.upperCase=di,p.upperFirst=hi,p.each=Zr,p.eachRight=Kr,p.first=Mr,Ci(p,(Pi={},ft(p,function(e,t){N.call(p.prototype,t)||(Pi[t]=e)}),Pi),{chain:!1}),p.VERSION="4.17.15",sa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),sa(["drop","take"],function(n,r){v.prototype[n]=function(e){e=e===Fi?1:y(S(e),0);var t=this.__filtered__&&!r?new v(this):this.clone();return t.__filtered__?t.__takeCount__=T(e,t.__takeCount__):t.__views__.push({size:T(e,Wi),type:n+(t.__dir__<0?"Right":"")}),t},v.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),sa(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;v.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:f(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),sa(["head","last"],function(e,t){var n="take"+(t?"Right":"");v.prototype[e]=function(){return this[n](1).value()[0]}}),sa(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");v.prototype[e]=function(){return this.__filtered__?new v(this):this[n](1)}}),v.prototype.compact=function(){return this.filter(I)},v.prototype.find=function(e){return this.filter(e).head()},v.prototype.findLast=function(e){return this.reverse().find(e)},v.prototype.invokeMap=a(function(t,n){return"function"==typeof t?new v(this):this.map(function(e){return bt(e,t,n)})}),v.prototype.reject=function(e){return this.filter(fo(f(e)))},v.prototype.slice=function(e,t){e=S(e);var n=this;return n.__filtered__&&(0<e||t<0)?new v(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==Fi?(t=S(t))<0?n.dropRight(-t):n.take(t-e):n)},v.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},v.prototype.toArray=function(){return this.take(Wi)},ft(v.prototype,function(c,e){var l=/^(?:filter|find|map|reject)|While$/.test(e),f=/^(?:head|last)$/.test(e),d=p[f?"take"+("last"==e?"Right":""):e],h=f||/^find/.test(e);d&&(p.prototype[e]=function(){function e(e){return e=d.apply(p,la([e],r)),f&&s?e[0]:e}var t,n=this.__wrapped__,r=f?[1]:arguments,o=n instanceof v,i=r[0],a=o||H(n),s=(a&&l&&"function"==typeof i&&1!=i.length&&(o=a=!1),this.__chain__),i=!!this.__actions__.length,u=h&&!s,o=o&&!i;return!h&&a?(n=o?n:new v(this),(t=c.apply(n,r)).__actions__.push({func:Wr,args:[e],thisArg:Fi}),new g(t,s)):u&&o?c.apply(this,r):(t=this.thru(e),u?f?t.value()[0]:t.value():t)})}),sa(["pop","push","shift","sort","splice","unshift"],function(e){var n=V[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var e,t=arguments;return o&&!this.__chain__?(e=this.value(),n.apply(H(e)?e:[],t)):this[r](function(e){return n.apply(H(e)?e:[],t)})}}),ft(v.prototype,function(e,t){var n,r=p[t];r&&(n=r.name+"",N.call(Me,n)||(Me[n]=[]),Me[n].push({name:t,func:r}))}),Me[Sn(Fi,2).name]=[{name:"wrapper",func:Fi}],v.prototype.clone=function(){var e=new v(this.__wrapped__);return e.__actions__=E(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=E(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=E(this.__views__),e},v.prototype.reverse=function(){var e;return this.__filtered__?((e=new v(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},v.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=H(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=T(t,e+a);break;case"takeRight":e=y(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=(i=i.end)-a,u=r?i:a-1,c=this.__iteratees__,l=c.length,f=0,d=T(s,this.__takeCount__);if(!n||!r&&o==s&&d==s)return en(e,this.__actions__);var h=[];e:for(;s--&&f<d;){for(var p=-1,_=e[u+=t];++p<l;){var g=c[p],v=g.iteratee,g=g.type,v=v(_);if(2==g)_=v;else if(!v){if(1==g)continue e;break e}}h[f++]=_}return h},p.prototype.at=Gr,p.prototype.chain=function(){return Vr(this)},p.prototype.commit=function(){return new g(this.value(),this.__chain__)},p.prototype.next=function(){this.__values__===Fi&&(this.__values__=jo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?Fi:this.__values__[this.__index__++]}},p.prototype.plant=function(e){for(var t,n=this;n instanceof Re;)var r=Tr(n),o=(r.__index__=0,r.__values__=Fi,t?o.__wrapped__=r:t=r,r),n=n.__wrapped__;return o.__wrapped__=e,t},p.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof v?(e=e,(e=(e=this.__actions__.length?new v(this):e).reverse()).__actions__.push({func:Wr,args:[Ir],thisArg:Fi}),new g(e,this.__chain__)):this.thru(Ir)},p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},p.prototype.first=p.prototype.head,se&&(p.prototype[se]=function(){return this}),p}();o?((o.exports=va)._=va,r._=va):ia._=va}.call(M)}),function(t){function e(e){t.call(this,e),this.state={isButtonVisible:!1,isEmojiPickerVisible:!1},this.onTextareaInput=this.onTextareaInput.bind(this),this.onTextareaKeyDown=this.onTextareaKeyDown.bind(this),this.onTextareaHeightChange=this.onTextareaHeightChange.bind(this),this.toggleEmojiPicker=this.toggleEmojiPicker.bind(this),this.addEmoji=this.addEmoji.bind(this),this.sendMessage=this.sendMessage.bind(this)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.componentDidMount=function(){var e=this.props.selectorOpenState;nc(this.textarea),this.textarea.addEventListener("autosize:resized",this.onTextareaHeightChange),this.onTextareaHeightChange(),e===En&&this.textarea.focus()},e.prototype.onTextareaInput=function(){this.setState({isButtonVisible:this.textarea.value.length})},e.prototype.onTextareaKeyDown=function(e){13!==e.keyCode||e.shiftKey||(e.preventDefault(),this.sendMessage())},e.prototype.onTextareaHeightChange=function(){this.props.onHeightChange&&this.textarea&&this.props.onHeightChange(this.textarea.clientHeight)},e.prototype.sendMessage=function(){this.state.isButtonVisible&&(this.props.onSendMessage(this.textarea.value),this.textarea.value="",nc.update(this.textarea),this.setState({isButtonVisible:!1}))},e.prototype.toggleEmojiPicker=function(){this.setState({isEmojiPickerVisible:!this.state.isEmojiPickerVisible})},e.prototype.addEmoji=function(e){var t,n,r=this.textarea;document.selection?(r.focus(),document.selection.createRange().text=e):r.selectionStart||0===r.selectionStart?(t=r.selectionStart,n=r.selectionEnd,r.value=r.value.substring(0,t)+e+r.value.substring(n,r.value.length),t===n&&(t+=1),n+=1):r.value+=e,this.onTextareaInput(),r.focus(),r.setSelectionRange&&(t||n)&&r.setSelectionRange(t,n)},e.prototype.render=function(){var e,t=this,n=this.props,r=n.isMobile,o=n.theme,i=n.selectorOpenState,n=n.selectedConversationInfo,n=(n=void 0===n?{}:n).is_closed,a=this.state,s=a.isButtonVisible,a=a.isEmojiPickerVisible,u=i!==En,i=i===An;return b("div",{className:x(((e={})[D.compose_wrapper]=!0,e[D.compose_wrapper_border]=!r,e[D.disabled]=u&&!r||i||n,e))},b("div",{className:D.compose},b("textarea",{ref:function(e){t.textarea=e},className:D.textarea,placeholder:L("compose_placeholder"),onInput:this.onTextareaInput,onKeyDown:this.onTextareaKeyDown,tabIndex:0,style:{minHeight:Math.max(C(o,"compose.height",29),29)}}),b("div",{className:D.emoji_picker_container},b(lc,{close:this.toggleEmojiPicker,visible:a,onEmojiAdd:this.addEmoji}),b(oc,{className:D.smile_icon,onClick:this.toggleEmojiPicker}))),b("span",{className:x(((u={})[D.button]=!0,u[D.button_hidden]=!s,u)),role:"button",onClick:this.sendMessage,onKeyDown:Es,tabIndex:0},b(rc,{className:D.button_icon,style:{fill:C(o,"compose.button_background","")}})))},e}(Qe)),dc=wt(["device","selectedConversationInfo","selectorOpenState"],qo)(function(e){var t=e.sendMessage,n=e.device,r=e.theme,o=e.onHeightChange,i=e.selectorOpenState,e=e.selectedConversationInfo;return b(fc,{isMobile:"mobile"===n,theme:r,onHeightChange:o,onSendMessage:t,selectorOpenState:i,selectedConversationInfo:e})}),hc=function(){return o.Date.now()},pc=Math.max,_c=Math.min;var gc=function(r,n,e){var o,i,a,s,u,c,l=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function h(e){var t=o,n=i;return o=i=void 0,l=e,s=r.apply(n,t)}function p(e){var t=e-c;return void 0===c||n<=t||t<0||d&&a<=e-l}function _(){var e,t=hc();if(p(t))return g(t);u=setTimeout(_,(e=n-((t=t)-c),d?_c(e,a-(t-l)):e))}function g(e){return u=void 0,t&&o?h(e):(o=i=void 0,s)}function v(){var e=hc(),t=p(e);if(o=arguments,i=this,c=e,t){if(void 0===u)return l=e=c,u=setTimeout(_,n),f?h(e):s;if(d)return clearTimeout(u),u=setTimeout(_,n),h(c)}return void 0===u&&(u=setTimeout(_,n)),s}return n=Ne(n)||0,m(e)&&(f=!!e.leading,d="maxWait"in e,a=d?pc(Ne(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){void 0!==u&&clearTimeout(u),o=c=i=u=void(l=0)},v.flush=function(){return void 0===u?s:g(hc())},v};var vc=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),gc(e,t,{leading:r,maxWait:t,trailing:o})};function mc(e,t){for(var n in t)e[n]=t[n];return e}function yc(e,t,n){var r=(i=e.getState()).messages,o=i.isMultiDialogsEnabled,i=(i=void 0===(i=i.selectedConversationInfo)?{}:i).id;o&&e.action(As(e).updateLastMessage)(t,t.conversation_id),n===i&&e.setState({welcomeMessageShouldBeBubbled:!1,messages:r.concat(t)})}function bc(e,t){var n,r,o=t.is_closed,i=t.id,a=t.name;o?e.action(As(e).onConversationClose)(t):(t=(o=e.getState()).conversations,o.messages,n=!(o=o.selectedConversationInfo.id)||o===i,t=t.map(function(e){return e.id!==i?e:r=Object.assign({},e,{name:a})}),e.action(k.setConversations)(t),n&&e.action(k.setSelectedConversationInfo)(r),d({method:"conversations:update",payload:t,selected:o}))}function wc(e,t){return e=e.getState().messages,!za(e,{id:t.id})}function xc(e,t){var n=t.message_id,t=t.delivery_status;e.action(js)(n,{status:t})}function Cc(e){if(Ec()){var t=e.messages,n=e.selectedConversationInfo,n=(n=void 0===n?{}:n).id,r=e.conversations,o=e.isMultiDialogsEnabled,r=Ds({conversations:r,conversationId:n,messages:t,isMultiDialogsEnabled:o});try{localStorage.setItem(Ec(),JSON.stringify({version:e.version,lastReadTimestamp:e.lastReadTimestamp,messages:r,manager:e.manager}))}catch(e){}}}function Tc(o){Cs({uuid:_("AMO_LIVECHAT_UUID"),onInit:function(e){var t=e.payload.multi_dialogs;o.action(k.setIsSocketInited)(t),o.action(k.setIsMultiDialogsEnabled)(t),t?((r=e.payload.chat.conversations||[]).length&&r.length<2?o.action(k.setSelectedConversationInfo)(r[0]):o.action(As(o).setSelectorOpenState)(An),o.action(k.setConversations)(r)):o.action(k.setChat)(e.payload.chat);function n(){var e=o.getState().shouldTryToAddWelcomeMessageAgain;o.action(k.setIsMessagesFetched)(),e&&o.action(O(o).tryToAddWelcomeMessage)()}var r=o.getState().selectedConversationInfo,e=(r=void 0===r?{}:r).id;!t||e?o.action(O(o).getNewMessages)().then(function(){return d({method:"bubble"})}).then(n).catch(Es):n(),d({method:"livechat:multi-dialogs-enabled",payload:t}),ds().then(function(){return o.action(k.updateManager)()}).catch(Es)},onUpdate:function(e){var n,t,r;n=o,t=e.payload.updates,r=e.payload.conversation_id,Ra(t,function(e,t){switch(!0){case!bn(e.message)&&wc(n,e.message):return yc(n,e.message,r);case!bn(e.conversation):return bc(n,e.conversation);case!bn(e.delivery_status):return xc(n,e.delivery_status)}}),e.payload.badge&&o.action(k.updateBadge)(e.payload.badge)},onAddConversation:function(e){var t=o.getState().conversations;o.action(k.setSelectedConversationInfo)(e.payload),o.action(k.setConversations)([e.payload].concat(t))}})}var Ec=function(){var e=_("AMO_LIVECHAT_BUTTON_ID"),t=_("AMO_LIVECHAT_UUID");return t?"amo-livechat-state-"+t+"-"+e:""};function Ac(){var a,i,e={version:6,conversationId:"",chatId:"",device:"desktop",selectorOpenState:En,newMessageDelimiterId:null,isSteadyEnabled:!0,pastMessagesLoaded:!1,newMessagesLoaded:!1,lastReadMessageId:null,lastReadTimestamp:null,welcomeMessageShouldBeBubbled:!0,isOpened:!1,isBubbleVisible:!1,isMultiDialogsEnabled:!1,isSocketInited:!1,isMessagesFetched:!1,badge:0,manager:{avatar:_("AMO_LIVECHAT_DEFAULT_AVATAR"),isAccount:!0,name:_("AMO_LIVECHAT_TITLE")},messages:[],conversations:[]},t=function(){if(!Ec())return{};try{return JSON.parse(localStorage.getItem(Ec()))}catch(e){return{}}}()||{},n=e.version===t.version,r=(a=n?f({},e,t):f({},e),i=[],a=a||{},{action:function(o){function i(e){s(e,!1,o)}return function(){for(var e=arguments,t=[a],n=0;n<arguments.length;n++)t.push(e[n]);var r=o.apply(this,t);if(null!=r)return r.then?r.then(i):i(r)}},setState:s,subscribe:function(e){return i.push(e),function(){o(e)}},unsubscribe:o,getState:function(){return a}});function o(e){for(var t=[],n=0;n<i.length;n++)i[n]===e?e=null:t.push(i[n]);i=t}function s(e,t,n){a=t?e:mc(mc({},a),e);for(var r=i,o=0;o<r.length;o++)r[o](a,n)}return r.subscribe(vc(Cc,1e3)),mn()&&Tc(r),Pn(function(e){try{switch(e.method){case"toggle":r.action(k.toggleChat)(e.payload.state);break;case"resize":r.action(k.setDevice)(e.payload.width);break;case"bubble":r.action(k.toggleBubble)(e.payload.state);break;case"greeting":r.action(O(r).tryToAddWelcomeMessage)();break;case"init":window.AMO_LIVECHAT_UUID=e.payload.uuid,Tc(r);break;case"event":t=e.payload,xs({method:"event",params:t});break;case"add_conversation":r.action(k.setSelectedConversationInfo)({id:null,badge:0}),r.action(O(r).clearMessages)();break;case"select_conversation":r.action(As(r).selectConversation)(e.payload);break;case"selector_open_state":r.action(As(r).setSelectorOpenState)(e.payload);break;default:throw new Error("Unexpected bus message method - "+e.method)}}catch(e){console.error(e)}var t}),d({method:"greeting:init"}),r}function Sc(e){return b("svg",Object.assign({},{width:"19",height:"16",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.706956 8.70711C0.316432 8.31658 0.316431 7.68342 0.706956 7.2929L1.63658 6.36327L7.1575 0.842335C7.6106 0.389321 8.3453 0.387307 8.7973 0.83928C9.2524 1.29441 9.2479 2.02541 8.7943 2.47907L4.39834 6.875H17.8747C18.4959 6.875 18.9995 7.3785 18.9997 7.99971C18.9998 8.62114 18.4961 9.125 17.8747 9.125H4.39833L8.7943 13.5209C9.2473 13.974 9.2493 14.7088 8.7973 15.1607C8.3422 15.6159 7.6112 15.6113 7.1575 15.1577L1.63658 9.63674L0.706956 8.70711Z",fill:"#FFF"}))}function Mc(e){var t=e.manager,n=e.theme,r=e.name,o=e.conversations,i=e.closeConversation,a=(s=s=void 0===(s=e.selectedConversationInfo)?{}:s).id,s=s.is_closed,u=e.isMobile,e=C(n,"header.background","")||ji(),c=C(n,"header.color",""),l=C(n,"header.height",""),n=C(n,"header.height_with_selector",""),f=Boolean(o.length||a);return b("div",{className:x(((o={})[Oc]=!0,o[Ic]=!0,o[Bc]=u,o[Lc]=!f,o)),style:{backgroundColor:e,color:c,height:f?n:l}},b("span",{className:x(((o={})[jc]=!0,o[Pc]=u,o[Dc]=!Ui(e),o[Nc]=!t.avatar,o)),onClick:function(){u&&f&&d({method:"conversation_selector:header-click"})}},u&&f&&b(Sc,{className:x(Rc)}),b("span",null,r?L("Conversation")+" "+r:L("New conversation"))),r&&!s&&b("span",{className:x(((c={})[Uc]=!0,c[Hc]=!Ui(e),c)),onClick:function(){return i(a)}},L("Close conversation")),u&&!f&&b("span",{className:x(((n={})[Uc]=!0,n[Hc]=!Ui(e),n)),onClick:function(){return d("click_button")}},b(Li,null)))}function kc(e){return e=e.store,b(xt,{store:e},b(lu,{value:_("AMO_LIVECHAT_THEME")||{}},b(Vc,null)))}var Oc="styles_header__2N9Q1",Ic="styles_header__multi_message__2dFL5",Bc="styles_header__multi_message_mobile__1AFtd",Lc="styles_header_small__1MF9D",jc="styles_name__3Jafv",Dc="styles_name_light__2N_Q6",Nc="styles_name_no_avatar__pGZBP",Pc="styles_name_mobile__2vu1j",Rc="styles_burger__1G34V",Uc="styles_close__4wlBr",Hc="styles_close_light__3xEJE",Fc=(c("\n.styles_header__2N9Q1 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n padding: 0 14px;\n width: 100%;\n background: linear-gradient(285.77deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 62.06%), #EE6560;\n color: #fff;\n box-shadow: 1px 6px 13px rgba(0, 0, 0, 0.1), 0px 2px 5px rgba(0, 0, 0, 0.05);\n z-index: 2;\n}\n\n.styles_header__multi_message__2dFL5 {\n padding: 38px 14px 19px;\n}\n\n.styles_header__multi_message_mobile__1AFtd {\n height: 54px;\n padding: 19px 14px 19px;\n}\n\n.styles_header_small__1MF9D {\n padding: 19px 14px 19px;\n}\n\n.styles_avatar__uI9fX {\n margin-right: 10px;\n}\n\n.styles_name__3Jafv {\n display: flex;\n align-items: center;\n height: 15px;\n font-weight: 500;\n font-size: 16px;\n line-height: 16px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n\n.styles_name_light__2N_Q6 {\n color: #313942;\n}\n\n.styles_name_no_avatar__pGZBP {\n margin-left: 12px;\n}\n\n.styles_name_no_avatar__pGZBP {\n margin-left: 12px;\n}\n\n.styles_name_mobile__2vu1j {\n margin-left: 0;\n cursor: pointer;\n}\n\n.styles_burger__1G34V {\n margin-right: 7px;\n}\n\n.styles_close__4wlBr {\n display: flex;\n cursor: pointer;\n font-size: 13px;\n fill: #fff;\n}\n\n.styles_close_light__3xEJE {\n fill: #313942;\n}\n"),wt(["manager","name","conversations","selectedConversationInfo","device","selectorOpenState"],qo)(function(e){var t=e.manager,n=e.theme,r=e.name,o=e.conversations,i=e.closeConversation,a=e.selectedConversationInfo,s=e.device,e=e.selectorOpenState;return b(Mc,{manager:t,theme:n,name:r,conversations:o,closeConversation:i,selectedConversationInfo:a,isMobile:"mobile"===s,selectorOpenState:e})})),zc=We(function(e){e&&(document.body.style.fontFamily=e)}),Vc=(y=window.location.href,y=new URL(y),g=y.protocol,y=y.hostname.split("."),t=y[0],v=y.slice(1).join("."),l="",t.slice(0,t.length-2)in Ht&&(l=t.slice(-2)),Ht.gso=g+"//gso"+l+"."+v,Ht.forms=g+"//forms"+l+"."+v,Ht.button=g+"//button"+l+"."+v,l="",3<y.length&&(l="com"===y[y.length-1]?"en":"ru"),Ht.promo=g+"//www"+l+"."+v,wt(["isBubbleVisible","isOpened","isMultiDialogsEnabled","conversations"])(function(e){var t=e.isBubbleVisible,n=e.isOpened,r=e.isMultiDialogsEnabled,e=e.conversations,o=iu(),i=Ot(0),a=i[0],s=i[1],i=(zc(o.font_family),e&&r?b(Fc,{theme:o}):b(Hi,{theme:o,canDefaultCloseButtonBeVisible:_("AMO_LIVECHAT_CLOSE_VISIBLE")}));return b("div",{id:"app"},n&&!1!==o.header&&i,n&&b(tc,{composeHeight:a,theme:o}),n&&b(dc,{onHeightChange:function(e){return s(e+28)},theme:o}),t&&b(Bi,null))})),u=new Promise(function(e){document.addEventListener("DOMContentLoaded",e)}),e=new Promise(function(n){function r(){window.addEventListener("message",function(e){try{var t=JSON.parse(e.data);"configure"===t.method?(ke(t.payload,function(e,t){window[t]=e}),n()):r()}catch(e){r()}},{once:!0})}r()});Promise.all([u,e]).then(function(){return new Promise(function(t){setTimeout(function(){ls.get(fs,function(e){return window.AMO_LIVECHAT_FINGERPRINT=ls.x64hash128(JSON.stringify(e),31),t(window.AMO_LIVECHAT_FINGERPRINT)})},500)}).then(os).then(is)}).then(function(){ht(b(kc,{store:Ac()}),document.body),d({method:"livechat:rendered"})})}();
|