parcelRequire=function(r,i,t){var e,s="function"==typeof parcelRequire&&parcelRequire,a="function"==typeof require&&require;function c(e,t){if(!i[e]){if(!r[e]){var n="function"==typeof parcelRequire&&parcelRequire;if(!t&&n)return n(e,!0);if(s)return s(e,!0);if(a&&"string"==typeof e)return a(e);t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}o.resolve=function(t){return r[e][1][t]||t},o.cache={};n=i[e]=new c.Module(e);r[e][0].call(n.exports,o,n,n.exports,this)}return i[e].exports;function o(t){return c(o.resolve(t))}}c.isParcelRequire=!0,c.Module=function(t){this.id=t,this.bundle=c,this.exports={}},c.modules=r,c.cache=i,c.parent=s,c.register=function(t,n){r[t]=[function(t,e){e.exports=n},{}]};for(var n,o=0;o=e.__.length&&e.__.push({__V:l}),e.__[t]}function y(t){return c=1,_(S,t)}function _(t,e,n){var o=m(r++,2);return o.t=t,o.__c||(o.__=[n?n(e):S(void 0,e),function(t){t=o.t(o.__[0],t);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function b(t,e){var n=m(r++,4);!a.options.__s&&x(n.__H,e)&&(n.__=t,n.u=e,i.__h.push(n))}function v(t,e){var n=m(r++,7);return x(n.__H,e)?(n.__V=t(),n.u=e,n.__h=t,n.__V):n.__}function w(){for(var e;e=u.shift();)if(e.__P)try{e.__H.__h.forEach(T),e.__H.__h.forEach(E),e.__H.__h=[]}catch(t){e.__H.__h=[],a.options.__e(t,e.__v)}}a.options.__b=function(t){i=null,p&&p(t)},a.options.__r=function(t){h&&h(t),r=0;t=(i=t.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.forEach(function(t){t.__V=l,t.u=void 0})):(t.__h.forEach(T),t.__h.forEach(E),t.__h=[])),o=i},a.options.diffed=function(t){d&&d(t);t=t.__c;t&&t.__H&&(!t.__H.__h.length||1!==u.push(t)&&s===a.options.requestAnimationFrame||((s=a.options.requestAnimationFrame)||function(t){function e(){clearTimeout(o),k&&cancelAnimationFrame(n),setTimeout(t)}var n,o=setTimeout(e,100);k&&(n=requestAnimationFrame(e))})(w),t.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.__V!==l&&(t.__=t.__V),t.u=void 0,t.__V=l})),o=i=null},a.options.__c=function(t,n){n.some(function(e){try{e.__h.forEach(T),e.__h=e.__h.filter(function(t){return!t.__||E(t)})}catch(t){n.some(function(t){t.__h&&(t.__h=[])}),n=[],a.options.__e(t,e.__v)}}),f&&f(t,n)},a.options.unmount=function(t){g&&g(t);var e,t=t.__c;t&&t.__H&&(t.__H.__.forEach(function(t){try{T(t)}catch(t){e=t}}),e&&a.options.__e(e,t.__v))};var k="function"==typeof requestAnimationFrame;function T(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function E(t){var e=i;t.__c=t.__(),i=e}function x(n,t){return!n||n.length!==t.length||t.some(function(t,e){return t!==n[e]})}function S(t,e){return"function"==typeof e?e(t):e}},{preact:"aSor"}],mI36:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=t("preact"),a=t("preact/hooks");n.default=function(t){var t=t.widgetSettings,e=(0,a.useState)(0),n=e[0],o=e[1];(0,a.useEffect)(function(){var t=setTimeout(function(){var t=n;3===t?t=0:t+=1,o(t)},300);return function(){clearTimeout(t)}},[n]);for(var r="",i=0;ia[0]&&e[1]{r[o[t]]=t});n.ERROR_PACKET={type:"error",data:"parser error"}},{}],L0DL:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("./commons.js");const i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,a=(t,e)=>{const n=new FileReader;return n.onload=function(){var t=n.result.split(",")[1];e("b"+t)},n.readAsDataURL(t)};n.default=({type:t,data:e},n,o)=>i&&e instanceof Blob?n?o(e):a(e,o):s&&(e instanceof ArrayBuffer||(t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer)(e))?n?o(e):a(new Blob([e]),o):o(r.PACKET_TYPES[t]+(e||""))},{"./commons.js":"lMcE"}],jyCB:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.encode=n.decode=void 0;const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t{let e,n=new Uint8Array(t),o=n.length,r="";for(e=0;e>2])+i[(3&n[e])<<4|n[e+1]>>4])+i[(15&n[e+1])<<2|n[e+2]>>6])+i[63&n[e+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r};n.decode=t=>{let e,n,o,r,i,s=.75*t.length,a=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);const u=new ArrayBuffer(s),l=new Uint8Array(u);for(e=0;e>4,l[c++]=(15&o)<<4|r>>2,l[c++]=(3&r)<<6|63&i;return u}},{}],kOt4:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("./commons.js"),r=t("./contrib/base64-arraybuffer.js");const i="function"==typeof ArrayBuffer,s=(t,e)=>"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t;n.default=(t,e)=>{if("string"!=typeof t)return{type:"message",data:s(t,e)};var n=t.charAt(0);return"b"===n?{type:"message",data:((t,e)=>{if(i){const i=(0,r.decode)(t);return s(i,e)}return{base64:!0,data:t}})(t.substring(1),e)}:o.PACKET_TYPES_REVERSE[n]?1{const o=t.length,r=new Array(o);let i=0;t.forEach((t,e)=>{(0,s.default)(t,!1,t=>{r[e]=t,++i===o&&n(r.join(a))})})};n.decodePayload=(e,n)=>{const o=e.split(a),r=[];for(let t=0;t(n.hasOwnProperty(e)&&(t[e]=n[e]),t),{})};var o=t("./globalThis.js");const r=setTimeout,i=clearTimeout;const s=1.33},{"./globalThis.js":"anfm"}],Let2:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Transport=void 0;var o=t("engine.io-parser"),r=t("@socket.io/component-emitter"),i=t("./util.js");class s extends Error{constructor(t,e,n){super(t),this.description=e,this.context=n,this.type="TransportError"}}class a extends r.Emitter{constructor(t){super(),(this.writable=!1,i.installTimerFunctions)(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,e,n){return super.emitReserved("error",new s(t,e,n)),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){t=(0,o.decodePacket)(t,this.socket.binaryType);this.onPacket(t)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}n.Transport=a},{"engine.io-parser":"EpRy","@socket.io/component-emitter":"jELO","./util.js":"iNAc"}],l8q5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.decode=function(t){let e=0;for(c=0;c{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){(0,s.decodePayload)(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){var t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){(this.writable=!1,s.encodePayload)(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};var e=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.opts.port&&("https"==e&&443!==Number(this.opts.port)||"http"==e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);var o=(0,i.encode)(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new d(this.uri(),t)}doWrite(t,e){const n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}n.Polling=h;class d extends c.Emitter{constructor(t,e){super(),(0,u.installTimerFunctions)(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.create()}create(){const t=(0,u.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref"),e=(t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs,this.xhr=new a.XHR(t));try{e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var n in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&e.setRequestHeader(n,this.opts.extraHeaders[n])}catch(t){}if("POST"===this.method)try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(e.timeout=this.opts.requestTimeout),e.onreadystatechange=()=>{4===e.readyState&&(200===e.status||1223===e.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof e.status?e.status:0)},0))},e.send(this.data)}catch(t){return void this.setTimeoutFn(()=>{this.onError(t)},0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=l,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}}onLoad(){var t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if((n.Request=d).requestsCount=0,d.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",f);else if("function"==typeof addEventListener){const o="onpagehide"in t.globalThisShim?"pagehide":"unload";addEventListener(o,f,!1)}function f(){for(var t in d.requests)d.requests.hasOwnProperty(t)&&d.requests[t].abort()}},{"../transport.js":"Let2","../contrib/yeast.js":"l8q5","../contrib/parseqs.js":"EZxM","engine.io-parser":"EpRy","./xmlhttprequest.js":"IRVK","@socket.io/component-emitter":"jELO","../util.js":"iNAc","../globalThis.js":"anfm"}],Ms0r:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.usingBrowserWebSocket=n.nextTick=n.defaultBinaryType=n.WebSocket=void 0;var t=t("../globalThis.js"),o="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),o=(n.nextTick=o,t.globalThisShim.WebSocket||t.globalThisShim.MozWebSocket);n.WebSocket=o,n.usingBrowserWebSocket=!0;n.defaultBinaryType="arraybuffer"},{"../globalThis.js":"anfm"}],yh9p:[function(t,e,n){"use strict";n.byteLength=function(t){var t=l(t),e=t[0],t=t[1];return 3*(e+t)/4-t},n.toByteArray=function(t){var e,n,o=l(t),r=o[0],o=o[1],i=new u(function(t,e){return 3*(t+e)/4-e}(r,o)),s=0,a=0>16&255,i[s++]=e>>8&255,i[s++]=255&e;return 2===o&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,i[s++]=255&e),1===o&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,i[s++]=e>>8&255,i[s++]=255&e),i},n.fromByteArray=function(t){for(var e,n=t.length,o=n%3,r=[],i=0,s=n-o;i>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}(o));return r.join("")}(t,i,s>2]+a[e<<4&63]+"==")):2==o&&(e=(t[n-2]<<8)+t[n-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),r.join("")};for(var a=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,i=o.length;r>1,l=-7,p=n?r-1:0,h=n?-1:1,r=t[e+p];for(p+=h,i=r&(1<<-l)-1,r>>=-l,l+=a;0>=-l,l+=o;0>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,d=o?1:-1,i=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-s))<1&&(s--,o*=2),2<=(e+=1<=s+l?p/o:p*Math.pow(2,1-l))*o&&(s++,o/=2),u<=s+l?(a=0,s=u):1<=s+l?(a=(e*o-1)*Math.pow(2,r),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,r),s=0));8<=r;t[n+h]=255&a,h+=d,a/=256,r-=8);for(s=s<=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function f(t,e){if(p.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(o)return M(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){var o,r=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var i=this,s=e,a=n,c=i.length;(!a||a<0||c=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=p.from(e,o)),p.isBuffer(e))return 0===e.length?-1:_(t,e,n,o,r);if("number"==typeof e)return e&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(r?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):_(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,o,r){var i=1,s=t.length,a=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;s/=i=2,a/=2,n/=2}function c(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(r)for(var u=-1,l=n;l>8,o=o%256,r.push(o),r.push(n);return r}(e,t.length-n),t,n,o)}function x(t,e,n){n=Math.min(t.length,n);for(var o=[],r=e;r>>10&1023|55296),l=56320|1023&l),o.push(l),r+=p}var h=o,d=h.length;if(d<=w)return String.fromCharCode.apply(String,h);for(var f="",g=0;ge&&(t+=" ... ")),""},p.prototype.compare=function(t,e,n,o,r){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),(e=void 0===e?0:e)<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(r<=o&&n<=e)return 0;if(r<=o)return-1;if(n<=e)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(o>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(o,r),u=t.slice(e,n),l=0;lthis.length)throw new RangeError("Attempt to write outside buffer bounds");o=o||"utf8";for(var i,s,a,c=!1;;)switch(o){case"hex":var u=this,l=t,p=e,h=n,d=(p=Number(p)||0,u.length-p);if((!h||(h=Number(h))>d)&&(h=d),(d=l.length)%2!=0)throw new TypeError("Invalid hex string");d/2t.length)throw new RangeError("Index out of range")}function S(t,e,n,o){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-n,2);r>>8*(o?r:1-r)}function C(t,e,n,o){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-n,4);r>>8*(o?r:3-r)&255}function A(t,e,n,o){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,o,r){return r||A(t,0,n,4),i.write(t,e,n,o,23,4),n+4}function O(t,e,n,o,r){return r||A(t,0,n,8),i.write(t,e,n,o,52,8),n+8}p.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n=(r*=128)&&(o-=Math.pow(2,8*e)),o},p.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||k(t,e,this.length);for(var o=e,r=1,i=this[t+--o];0=(r*=128)&&(i-=Math.pow(2,8*e)),i},p.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},p.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},p.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),i.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),i.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),i.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),i.read(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,n,o){t=+t,e|=0,n|=0,o||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[e]=255&t;++i>>8):S(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):C(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,n,o){t=+t,e|=0,o||T(this,t,e,n,(o=Math.pow(2,8*n-1))-1,-o);var r=0,i=1,s=0;for(this[e]=255&t;++r>0)-s&255;return e+n},p.prototype.writeIntBE=function(t,e,n,o){t=+t,e|=0,o||T(this,t,e,n,(o=Math.pow(2,8*n-1))-1,-o);var r=n-1,i=1,s=0;for(this[e+r]=255&t;0<=--r&&(i*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/i>>0)-s&255;return e+n},p.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},p.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):S(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):C(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},p.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},p.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},p.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},p.prototype.copy=function(t,e,n,o){if(n=n||0,o||0===o||(o=this.length),e>=t.length&&(e=t.length),(o=0=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length);var r,i=(o=t.length-e>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(t){return E.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,n,o){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},{"base64-js":"yh9p",ieee754:"JgNJ",isarray:"REa7",buffer:"peL6"}],mfJR:[function(t,e,n){t("buffer").Buffer;var r=t("buffer").Buffer,o=(Object.defineProperty(n,"__esModule",{value:!0}),n.WS=void 0,t("../transport.js")),i=t("../contrib/parseqs.js"),s=t("../contrib/yeast.js"),a=t("../util.js"),c=t("./websocket-constructor.js"),u=t("engine.io-parser");const l="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class p extends o.Transport{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(this.check()){const t=this.uri(),e=this.opts.protocols,n=l?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!l?e?new c.WebSocket(t,e):new c.WebSocket(t):new c.WebSocket(t,e,n)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType||c.defaultBinaryType,this.addEventListeners()}}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(e){this.writable=!1;for(let t=0;t{const e={};!c.usingBrowserWebSocket&&(n.options&&(e.compress=n.options.compress),this.opts.perMessageDeflate)&&("string"==typeof t?r.byteLength(t):t.length){this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};var e=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"==e&&443!==Number(this.opts.port)||"ws"==e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(t.b64=1);var o=(0,i.encode)(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}check(){return!!c.WebSocket}}n.WS=p},{"../transport.js":"Let2","../contrib/parseqs.js":"EZxM","../contrib/yeast.js":"l8q5","../util.js":"iNAc","./websocket-constructor.js":"Ms0r","engine.io-parser":"EpRy",buffer:"peL6"}],JfH1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.transports=void 0;var o=t("./polling.js"),t={websocket:t("./websocket.js").WS,polling:o.Polling};n.transports=t},{"./polling.js":"FMNK","./websocket.js":"mfJR"}],Mog3:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(t){var e=t,n=t.indexOf("["),o=t.indexOf("]");-1!=n&&-1!=o&&(t=t.substring(0,n)+t.substring(n,o).replace(/:/g,";")+t.substring(o,t.length));let r=a.exec(t||""),i={},s=14;for(;s--;)i[c[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(t){const e=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||e.splice(0,1),"/"==t.substr(t.length-1,1)&&e.splice(e.length-1,1),e}((i,i.path)),i.queryKey=function(t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(o[e]=n)}),o}((i,i.query)),i};const a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]},{}],CKLz:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Socket=void 0;var o=t("./transports/index.js"),r=t("./util.js"),i=t("./contrib/parseqs.js"),s=t("./contrib/parseuri.js"),a=t("@socket.io/component-emitter"),c=t("engine.io-parser");class l extends a.Emitter{constructor(t,e={}){super(),t&&"object"==typeof t&&(e=t,t=null),t?(t=(0,s.parse)(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=(0,s.parse)(e.host).host),(0,r.installTimerFunctions)(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},e),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=(0,i.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=c.protocol,e.transport=t,this.id&&(e.sid=this.id);var n=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new o.transports[t](n)}open(){let t;if(this.opts.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),(this.transport=t).on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(t){let n=this.createTransport(t),e=!1;l.priorWebsocketSuccess=!1;const o=()=>{e||(n.send([{type:"ping",data:"probe"}]),n.once("packet",t=>{if(!e)if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",n),n&&(l.priorWebsocketSuccess="websocket"===n.name,this.transport.pause(()=>{e||"closed"!==this.readyState&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}));else{const t=new Error("probe error");t.transport=n.name,this.emitReserved("upgradeError",t)}}))};function r(){e||(e=!0,u(),n.close(),n=null)}const i=t=>{const e=new Error("probe error: "+t);e.transport=n.name,r(),this.emitReserved("upgradeError",e)};function s(){i("transport closed")}function a(){i("socket closed")}function c(t){n&&t.name!==n.name&&r()}const u=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",s),this.off("close",a),this.off("upgrading",c)};n.once("open",o),n.once("error",i),n.once("close",s),this.once("close",a),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){let t=0;for(var e=this.upgrades.length;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),(this.prevBufferLen=0)===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){var t;"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(t=this.getWritablePackets(),this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush"))}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&1this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(t,e,n){return this.sendPacket("message",t,e,n),this}send(t,e,n){return this.sendPacket("message",t,e,n),this}sendPacket(t,e,n,o){"function"==typeof e&&(o=e,e=void 0),"function"==typeof n&&(o=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState&&((n=n||{}).compress=!1!==n.compress,this.emitReserved("packetCreate",t={type:t,data:e,options:n}),this.writeBuffer.push(t),o&&this.once("flush",o),this.flush())}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{(this.upgrading?n:t)()}):(this.upgrading?n:t)()),this}onError(t){l.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let n=0;for(var o=t.length;n"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);function c(t){return o&&(t instanceof ArrayBuffer||r(t))||s&&t instanceof Blob||a&&t instanceof File}},{}],c32R:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deconstructPacket=function(t){const e=[],n=t.data,o=t;return o.data=function e(n,o){if(!n)return n;if((0,r.isBinary)(n)){const r={_placeholder:!0,num:o.length};return o.push(n),r}if(Array.isArray(n)){const r=new Array(n.length);for(let t=0;t{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(o),n.apply(this,[null,...t])}}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this.packet({type:r.PacketType.CONNECT,data:t})}):this.packet({type:r.PacketType.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case r.PacketType.CONNECT:if(t.data&&t.data.sid){const r=t.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(t);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(t);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(const e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t)}ack(e){const n=this;let o=!1;return function(...t){o||(o=!0,n.packet({type:r.PacketType.ACK,id:e,data:t}))}}onack(t){const e=this.acks[t.id];"function"==typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:r.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let t=0;t{n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()});if(!1!==this._timeout){const i=this._timeout,e=(0===i&&o(),this.setTimeoutFn(()=>{o(),t.close(),t.emit("error",new Error("timeout"))},i));this.opts.autoUnref&&e.unref(),this.subs.push(function(){clearTimeout(e)})}return this.subs.push(o),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");var t=this.engine;this.subs.push((0,s.on)(t,"ping",this.onping.bind(this)),(0,s.on)(t,"data",this.ondata.bind(this)),(0,s.on)(t,"error",this.onerror.bind(this)),(0,s.on)(t,"close",this.onclose.bind(this)),(0,s.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){this.decoder.add(t)}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n||(n=new o.Socket(this,t,e),this.nsps[t]=n),n}_destroy(t){for(const e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){var n=this.encoder.encode(e);for(let t=0;tt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)})}}onreconnect(){var t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}n.Manager=u},{"engine.io-client":"XWty","./socket.js":"KTgC","socket.io-parser":"mSEf","./on.js":"NMdr","./contrib/backo2.js":"FMUV","@socket.io/component-emitter":"jELO"}],DNkq:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Manager",{enumerable:!0,get:function(){return a.Manager}}),Object.defineProperty(n,"Socket",{enumerable:!0,get:function(){return o.Socket}}),n.default=n.connect=n.io=i,Object.defineProperty(n,"protocol",{enumerable:!0,get:function(){return r.protocol}});var s=t("./url.js"),a=t("./manager.js"),o=t("./socket.js"),r=t("socket.io-parser");const c={};function i(t,e){"object"==typeof t&&(e=t,t=void 0);var t=(0,s.url)(t,(e=e||{}).path||"/socket.io"),n=t.source,o=t.id,r=t.path,r=c[o]&&r in c[o].nsps;let i;return i=e.forceNew||e["force new connection"]||!1===e.multiplex||r?new a.Manager(n,e):(c[o]||(c[o]=new a.Manager(n,e)),c[o]),t.query&&!e.query&&(e.query=t.queryKey),i.socket(t.path,e)}Object.assign(i,{Manager:a.Manager,Socket:o.Socket,io:i,connect:i})},{"./url.js":"w3Sn","./manager.js":"s1gw","./socket.js":"KTgC","socket.io-parser":"mSEf"}],eKDL:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HISTORY_DATA_KEY=n.APPLICATION_SERVER=void 0;var o="undefined"!=typeof window&&window.location.origin.includes("localhost")?"http://localhost:3343":"https://api.click-chat.ru";n.APPLICATION_SERVER=o;n.HISTORY_DATA_KEY="telegram_feedback"},{}],fOyp:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("../../../util/ui/ViewModel")),r=a(t("../../../util/Waiter")),l=t("../../domain/MessageType"),i=t("socket.io-client"),s=t("../../../constants");function a(t){return t&&t.__esModule?t:{default:t}}function p(t,s,a,c){return new(a=a||Promise)(function(n,e){function o(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?n(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,r)}i((c=c.apply(t,s||[])).next())})}function h(o,r){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&e[0]?s.return:e[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,e[1])).done)return a;switch(s=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,s=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]e.length&&0!==e.length?[4,this.notification.play()]:[3,3];case 2:t.sent(),this.lastSoundPlay=Date.now(),t.label=3;case 3:return[3,5];case 4:return(o=t.sent()).message.includes("failed because the user didn't interact with the document first")||o.message.includes("play() ")||(this.errorLogger.logError("DialogViewModel.checkForUpdate (2) (".concat(o.message,")"),o.stack),console.log("[TF] ".concat(o.message))),[3,5];case 5:return i=c.filter(function(t){return t.type===l.MessageType.OPERATOR}).sort(function(t,e){return t.messageTime>e.messageTime?1:t.messageTimethis.DIALOG_TIMEOUT_MS&&(this.cleanDialog(),d.prototype.notifyViewAboutChanges.call(this)),[4,r.default.wait(6e4)];case 1:return t.sent(),this.checkForDialogTimeout(),[2]}})})},f.prototype.syncImages=function(){return p(this,void 0,Promise,function(){var s=this;return h(this,function(t){return[2,new Promise(function(t){var n=0,e=[],o=(s.messages.forEach(function(t){t.messagePhotoCode&&e.push(t.messagePhotoCode)}),s.imagesCodesBase64.map(function(t){return t.code})),r=[],i=(e.forEach(function(t){o.includes(t)||r.push(t)}),r.map(function(t){t={code:t,isError:!1};return s.imagesCodesBase64.push(t),t}));d.prototype.notifyViewAboutChanges.call(s),n=i.length,0===i.length?t():i.forEach(function(e){s.imageApiRepository.getImageBase64(e.code).then(function(t){e.base64=t.base64,e.base64Type=t.base64Type,d.prototype.notifyViewAboutChanges.call(s)}).catch(function(){e.isError=!0,d.prototype.notifyViewAboutChanges.call(s)}).finally(function(){0==--n&&(t(),s.scrollToChatBottom())})})})]})})},f.prototype.mapMessagesLinks=function(){var t=this.widgetHolder.getWidgetSettings();t.autoOpenMessage&&!t.autoOpenMessage.includes("")&&(t.autoOpenMessage=t.autoOpenMessage.replace(u,function(t){return'').concat(t,"")})),this.messages.forEach(function(t){t.type===l.MessageType.OPERATOR?t.text=t.text.replace(u,function(t){return'').concat(t,"")}):t.text=t.text.replace(u,function(t){return'').concat(t,"")})})},f.prototype.recreateDialog=function(t){void 0===t&&(t=!0),this.cleanDialog(),t?(this.enteredText=this.lastEnteredMessage,this.lastEnteredMessage="",this.onSendMessage()):(this.enteredText="",this.lastEnteredMessage=""),d.prototype.notifyViewAboutChanges.call(this)},f.prototype.cleanDialog=function(){this.closeSocket(),this.messages=[],this.dialogApiRepository.saveDialogData(this.widgetHolder.getWebsiteUuid(),void 0),this.isShowOperatorWriting=!1},f.prototype.openSocket=function(n,t){var o=this;this.socket=(0,i.io)("".concat(s.APPLICATION_SERVER),{transports:["websocket"]}),this.lastSocketPingEventTime=Date.now(),this.socket.on("connect",function(){console.log("connected"),o.lastSocketPingEventTime=Date.now(),o.socket&&o.socket.emit("reply",JSON.stringify({websiteUuid:n,dialogUuid:t}))}),this.socket.on("request",function(t){t=JSON.parse(t);t.isPingEvent?o.lastSocketPingEventTime=Date.now():o.onUpdatesReceived(t.dialog,t.messages,t.responsibleAttachTime)}),this.socket.on("disconnect",function(){var t,e;console.log("disconnected"),o.socket&&(o.lastSocketPingEventTime=0,o.closeSocket(),(e=null==(t=o.dialogApiRepository.getDialogData(o.widgetHolder.getWebsiteUuid()))?void 0:t.dialogUuid)&&setTimeout(function(){o.openSocket(n,e)},1e3))}),this.socket.on("connect_error",function(){var t,e;console.log("connection_error"),o.socket&&(o.closeSocket(),(e=null==(t=o.dialogApiRepository.getDialogData(o.widgetHolder.getWebsiteUuid()))?void 0:t.dialogUuid)&&setTimeout(function(){o.openSocket(n,e)},1e3))})},f.prototype.closeSocket=function(){try{this.socket&&(console.log("close socket"),this.socket.close(),this.socket=void 0)}catch(t){console.log("Close socket error: ".concat(t.message))}},f.prototype.pingSocketRepeated=function(){return p(this,void 0,void 0,function(){return h(this,function(t){switch(t.label){case 0:return this.socket&&this.socket.connected&&0this.DIALOG_TIMEOUT_MS?this.dialogApiRepository.saveDialogData(this.widgetHolder.getWebsiteUuid(),void 0):(this.openSocket(this.widgetHolder.getWebsiteUuid(),e),this.dialogApiRepository.focusTab(e,this.widgetHolder.getWebsiteUuid(),Date.now()))),this.checkForDialogTimeout(),this.mapMessagesLinks(),this.dialogApiRepository.getMessageNotification().then(function(t){o.notification=new Audio(t),o.notification.volume=.4}).catch(function(t){return console.log("[TF] ".concat(t.message))}),this.pingSocketRepeated(),this.detectYmClientId(this.widgetHolder.getWidgetSettings()),window.addEventListener("focus",function(){var t=null==(t=o.dialogApiRepository.getDialogData(o.widgetHolder.getWebsiteUuid()))?void 0:t.dialogUuid;t&&o.dialogApiRepository.focusTab(t,o.widgetHolder.getWebsiteUuid(),Date.now())}),window.addEventListener("blur",function(){var t=null==(t=o.dialogApiRepository.getDialogData(o.widgetHolder.getWebsiteUuid()))?void 0:t.dialogUuid;t&&o.dialogApiRepository.loseTabFocus(t,o.widgetHolder.getWebsiteUuid(),Date.now())}),this.isInitialized=!0),[2]})})},r.dialogApiRepository=t,r.imageApiRepository=e,r.widgetHolder=n,r.errorLogger=o,r.messages=[],r.enteredText="",r.imagesCodesBase64=[],r.isCleanMessageText=!1,r.isShowOperatorWriting=!1,r.lastSoundPlay=0,r.lastSocketPingEventTime=0,r.lastEnteredMessage="",r.isInitialized=!1,r}n.default=o},{"../../../util/ui/ViewModel":"Tkd2","../../../util/Waiter":"Q0HA","../../domain/MessageType":"pVo6","socket.io-client":"DNkq","../../../constants":"eKDL"}],NHn6:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=t("preact"),a=r(t("./dialog/presentation/view/DialogComponent")),c=t("./settings/domain/WidgetSize"),u=r(t("./presentation/RequestingHeadComponent")),o=r(t("./dialog/presentation/viewmodel/DialogViewModel"));function r(t){return t&&t.__esModule?t:{default:t}}p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};var l,i,p,t=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h="is_dialog_has_been_closed",t=(i=s.Component,t(d,i),d.prototype.componentDidMount=function(){var t=this;!this.state.widgetSettings.autoOpen||this.state.widgetSettings.doNotAutoOpenIfClosed&&"true"===localStorage.getItem(h)||(l=setTimeout(function(){t.isEnableDialogTranstition=!1,t.setState({isShowDialog:!0},function(){t.isEnableDialogTranstition=!0,setTimeout(function(){return t.setState({isDialogVisible:!0})},100)})},1e3*this.state.widgetSettings.autoOpenTimeSec)),document.telegramFeedback_open=function(){t.isEnableDialogTranstition=!1,t.setState({isShowDialog:!0},function(){t.isEnableDialogTranstition=!0,setTimeout(function(){return t.setState({isDialogVisible:!0})},100)})},document.telegramFeedback_close=function(){t.isEnableDialogTranstition=!0,t.setState({isDialogVisible:!1},function(){setTimeout(function(){return t.setState({isShowDialog:!1})},100)})},window.addEventListener("resize",this.resizeEventListener,!0)},d.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.resizeEventListener,!0)},d.prototype.render=function(){var t=this,e=this.state,n=e.isMobile,o=e.isShowDialog,r=e.widgetSettings,i=e.isDialogVisible;return e.isIpBlocked?(0,s.h)("div",null):(0,s.h)("div",{id:"telegram-feedback-root",className:"".concat(o?"tf_root_open":"tf_root_closed"," ").concat(!o&&(n||r.size===c.WidgetSize.MINI)?"small-root":"large-root"," ").concat(o?i?"tf-visible-dialog ":"tf-invisible-dialog":""," ").concat(this.isEnableDialogTranstition?"tf-transtition":"")},o?(0,s.h)(a.default,{dialogApiRepository:this.props.dependencyInjector.data.getDialogApiRepository(),dependencyInjector:this.props.dependencyInjector,dialogViewModel:this.dialogViewModel,widgetSettings:r,onClose:function(){l&&clearTimeout(l),t.isEnableDialogTranstition=!0,t.setState({isDialogVisible:!1},function(){setTimeout(function(){return t.setState({isShowDialog:!1})},100)}),localStorage.setItem(h,"true")},onIpBlocked:function(){return t.setState({isIpBlocked:!0})}}):(0,s.h)(u.default,{dialogViewModel:this.dialogViewModel,widgetSettings:r,onOpen:function(){t.isEnableDialogTranstition=!1,t.setState({isShowDialog:!0},function(){t.isEnableDialogTranstition=!0,setTimeout(function(){return t.setState({isDialogVisible:!0})},100)}),document.telegramFeedback_widgetOpened&&document.telegramFeedback_widgetOpened()},isMobile:n}))},d.prototype.isMobile=function(){return window.innerWidth<=768},d);function d(e){var n=i.call(this,e)||this;return n.dialogViewModel=new o.default(e.dependencyInjector.data.getDialogApiRepository(),e.dependencyInjector.data.getImageApiRepository(),e.dependencyInjector.domain.getWidgetHolder(),e.dependencyInjector.domain.getErrorLogger()),n.dialogViewModel.attachNewMessageListener(function(t){n.state.isShowDialog||e.dependencyInjector.data.getDialogApiRepository().getLastViewedMessageTime()>t||(n.isEnableDialogTranstition=!1,n.setState({isShowDialog:!0},function(){n.isEnableDialogTranstition=!0,setTimeout(function(){return n.setState({isDialogVisible:!0})},100)}))}),n.resizeEventListener=function(){n.isMobile()!==n.state.isMobile&&n.setState({isMobile:!n.state.isMobile})},n.state={isMobile:window.innerWidth<=768,isShowDialog:!1,widgetSettings:e.dependencyInjector.domain.getWidgetHolder().getWidgetSettings(),isDialogVisible:!1,isIpBlocked:!1},n.isEnableDialogTranstition=!1,n}n.default=t},{preact:"aSor","./dialog/presentation/view/DialogComponent":"wbel","./settings/domain/WidgetSize":"djyf","./presentation/RequestingHeadComponent":"CITf","./dialog/presentation/viewmodel/DialogViewModel":"fOyp"}],sqNh:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetPlacement=void 0,n.WidgetPlacement=void 0,n.WidgetPlacement={BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right"}},{}],SGzV:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("./settings/domain/WidgetPlacement");function r(){}r.prototype.generateCss=function(t){return"\n.telegram_feedback_svg {\n pointer-events: all !important;\n}\n#telegram_feedback svg {\n pointer-events: all !important;\n}\n#telegram_feedback_root svg rect {\nfill: initial !important;\n}\n\n#telegram_feedback_root {\ntext-align: left !important;\nletter-spacing: 0px;\n}\n#telegram-feedback-root {\nposition: fixed;\nmargin: 0px;\npadding: 0px;\nz-index: 9999999999;\nfont-family: ".concat(t.isCustomFont?t.customFontName||"":"Inter"," !important;\nbox-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;\n}\n#telegram-feedback-root.tf-invisible-dialog {\nbottom: -460px !important;\n}\n#telegram-feedback-root.tf-visible-dialog {\nbottom: 0px;\n}\n.tf-transtition {\ntransition: 0.2s;\n}\n#telegram-feedback-root.small-root {\nbottom: ").concat(t.marginYPx,"px;\nwidth: 70px;\nheight: 70px;\nborder-radius: 360px;\nmargin-right: ").concat(t.marginXPx,"px;\nmargin-left: ").concat(t.marginXPx,"px;\n").concat(t.placement===o.WidgetPlacement.BOTTOM_RIGHT?"right: 0px;":"","\n").concat(t.placement===o.WidgetPlacement.BOTTOM_LEFT?"left: 0px;":"","\n}\n#telegram-feedback-root.large-root {\nbottom: 0px;\nwidth: 300px;\nborder-radius: 15px 15px 0px 0px;\nmargin-right: ").concat(t.marginXPx,"px;\nmargin-left: ").concat(t.marginXPx,"px;\n").concat(t.placement===o.WidgetPlacement.BOTTOM_RIGHT?"right: 0px;":"","\n").concat(t.placement===o.WidgetPlacement.BOTTOM_LEFT?"left: 0px;":"","\n}\n#telegram-feedback-root .tf-message-us {\nfont-size: 14px;\npadding: 5px;\npadding-left: 10px;\n}\n#telegram-feedback-root .rectangle .tf-message-us {\nfont-weight: 700 !important;\ncolor: ").concat(t.customTitleColor," !important;\n}\n/* ======== CIRCLE ============ */\n#telegram-feedback-root .tf-circle {\ntransition: 0.2s;\nwidth: 100%;\nheight: 100%;\ndisplay: flex;\nbackground-color: ").concat(t.isWhite?"#fff":t.customPrimaryColor,";\nborder: ").concat(t.isWhite?"1px solid #d6d6d6":"transparent",";\nborder-radius: 360px;\ncursor: pointer;\n}\n/* ======== END OF CIRCLE ======== */\n/* ======== RECTANGLE ============ */\n#telegram-feedback-root .tf-rectangle {\ntransition: 0.2s;\nbackground-color: ").concat(t.customPrimaryColor,";\nfont-weight: 700 !important;\ncolor: ").concat(t.customTitleColor," !important;\nuser-select: none;\ncursor: pointer;\npadding: 10px;\nborder-radius: 20px 20px 0px 0px;\n}\n/* ======== END OF RECTANGLE ======== */\n#telegram-feedback-root .tf-input {\nfont-weight: 500;\nborder: none !important;\nfont-size: 15px !important;\npadding-left: 15px !important;\npadding-top: 15px !important;\npadding-bottom: 15px !important;\nflex-grow: 1 !important;\nborder-radius: 0px !important;\nbackground-color: #fff !important;\nbackground: #fff !important;\nbox-shadow: none !important;\ncolor: #000 !important;\nmargin: 0px !important;\nwidth: 200px !important;\nmax-height: 50px !important;\nfont-family: ").concat(t.isCustomFont?t.customFontName||"":"Inter"," !important;\n}\n#telegram-feedback-root .tf-input:focus {\noutline: none !important;\n}\n#telegram-feedback-root .dialog-head {\nbackground-color: ").concat(t.customPrimaryColor," !important;\nfont-weight: 700 !important;\ncolor: ").concat(t.customTitleColor," !important;\nuser-select: none !important;\ncursor: pointer !important;\nborder-top-left-radius: 20px !important;\nborder-top-right-radius: 20px !important;\nborder-bottom-right-radius: 0px !important;\nborder-bottom-left-radius: 0px !important;\nuser-select: none !important;\npadding: 10px !important;\nborder-radius: 15px 15px 0px 0px !important;\ndisplay: flex !important;\nalign-items: center !important;\nline-height: 1.5 !important;\n}\n#telegram-feedback-root .left-message {\nmax-width: 240px !important;\ntext-align: left !important;\nbackground-color: ").concat(t.customLeftMessageColor," !important;\ncolor: ").concat(t.customLeftTextColor," !important;\nmargin-left: 5px !important;\nmargin-right: 5px !important;\nmargin-top: 2px !important;\nborder-top-left-radius: 15px !important;\nborder-top-right-radius: 15px !important;\nborder-bottom-right-radius: 15px !important;\nborder-bottom-left-radius: 0px !important;\npadding: 10px !important;\ndisplay: inline-block !important;\nmin-width: 50px !important;\nfont-size: 14px !important;\nwhite-space: pre-line !important;\nword-break: break-word;\nline-height: 1.5 !important;\n}\n#telegram-feedback-root .left-message div {\ncolor: ").concat(t.customLeftTextColor," !important;\n}\n#telegram-feedback-root .right-message {\nmargin-left: 10px !important;\nmargin-right: 5px !important;\nmax-width: 240px !important;\ntext-align: left !important;\nbackground-color: ").concat(t.customRightMessageColor," !important;\ncolor: ").concat(t.customRightTextColor," !important;\nborder-top-left-radius: 15px !important;\nborder-top-right-radius: 15px !important;\nborder-bottom-right-radius: 0px !important;\nborder-bottom-left-radius: 15px !important;\npadding: 10px !important;\ndisplay: inline-block !important;\nfont-size: 14px !important;\nwhite-space: pre-line !important;\nword-break: break-word;\nline-height: 1.5 !important;\n}\n#telegram-feedback-root .right-message div {\ncolor: ").concat(t.customRightTextColor," !important;\n}\n#telegram-feedback-root .tf-dialog-body {\nbackground-color: #fff !important;\nmin-height: 350px !important;\nmax-height: 350px !important;\noverflow-x: hidden !important;\noverflow-y: auto !important;\npadding-top: 5px !important;\ndisplay: block !important;\n}\n#telegram-feedback-root .tf-dialog-body::-webkit-scrollbar {\nwidth: 5px !important;\n}\n#telegram-feedback-root .tf-dialog-body::-webkit-scrollbar-track {\nmargin-top: 2px !important;\nbackground: transparent !important;\n}\n#telegram-feedback-root .tf-dialog-body::-webkit-scrollbar-thumb {\nbackground-color: #e7e7e7 !important;\nborder-radius: 25px !important;\nborder: 1px solid #e7e7e7 !important;\n}\n@keyframes loader {\n0% { transform: rotate(0deg); }\n100% { transform: rotate(360deg); }\n}\n#telegram-feedback-root .tf-small-loader {\nborder: 2px solid #f3f3f3; /* Light grey */\nborder-radius: 50% !important;\nwidth: 10px !important;\nheight: 10px !important;\nanimation: loader 2s linear infinite !important;\nmargin-left: 10px !important;\nmargin-right: 5px !important;\n}\n#telegram-feedback-root .tf-big-loader {\nborder: 4px solid #f3f3f3; /* Light grey */\nborder-radius: 50% !important;\nwidth: 20px !important;\nheight: 20px !important;\nanimation: loader 2s linear infinite !important;\n}\n#telegram-feedback-root .tf-footer {\nbackground-color: #fff !important;\nborder-top: 1px solid #cccccc !important;\nheight: 50px !important;\n}\n#telegram-feedback-root .tf-footer-inner {\ndisplay: flex !important;\nalign-items: center !important;\nheight: 50px !important;\nbackground-color: #fff !important;\n}\n#telegram-feedback-root .tf-attach-button {\nheight: 50px !important;\nbackground-color: #fff !important;\ndisplay: flex !important;\nalign-items: center !important;\n}\n#telegram-feedback-root .tf-send-message {\nfont-size: 14px !important;\npadding: 5px !important;\npadding-left: 10px !important;\n}\n#telegram-feedback-root .dialog-head .tf-send-message {\nfont-weight: 700 !important;\ncolor: ").concat(t.customTitleColor," !important;\n}\n#telegram-feedback-root .attach-message-label {\npadding-left: 10px !important;\npadding-right: 5px !important;\npadding-top: 15px !important;\npadding-bottom: 15px !important;\ncursor: pointer !important;\nheight: 50px !important;\ndisplay: flex !important;\nalign-items: center !important;\nmax-width: 35px !important;\nmargin: 0px !important;\n}\n#telegram-feedback-root .tf-link {\ndisplay: block !important;\nopacity: 100% !important;\nbackground-color: #fff !important;\nbackground: #fff !important;\n}\n#telegram-feedback-root .tf-link a {\nfont-size: 9px !important;\ntext-decoration: none !important;\ncolor: #6c757d !important;\ndisplay: block !important;\npadding-top: 0px !important;\npadding-left: 5px !important;\npadding-bottom: 5px !important;\nline-height: 1 !important;\nopacity: 30% !important;\n}\n#telegram-feedback-root .operator {\nmargin-left: 13px !important;\nfont-size: 10px !important;\nmargin-top: 5px !important;\n}\n#telegram-feedback-root .tf-right-link {\nfont-size: 14px !important;\ntext-decoration: underline;\ncolor: ").concat(t.customRightTextColor," !important;\ncursor: pointer !important;\n}\n#telegram-feedback-root .tf-left-link {\nfont-size: 14px !important;\ntext-decoration: underline;\ncolor: ").concat(t.customLeftTextColor," !important;\ncursor: pointer !important;\n}\n#tf-form-header {\n display: flex !important;\n justify-content: center !important;\n font-size: 14px !important;\n margin: 10px 0px !important;\n color: #697582 !important;\n}\n\n#tf-form-root {\n display: flex !important;\n justify-content: center !important;\n padding: 15px !important;\n}\n\n#tf-form-inner {\n flex-grow: 1 !important;\n box-shadow: 0 3px 10px 0 rgba(0,0,0,.08), 0 0 1px 0 rgba(0,0,0,.22);\n border-radius: 15px !important;\n padding-top: 15px !important;\n padding-bottom: 15px !important;\n}\n\n#tf-form-inner .tf-text-input {\n display: flex !important;\n margin-left: 20px !important;\n margin-right: 20px !important;\n}\n\n#tf-form-inner input {\n border: none !important;\n border-bottom: 1px solid gainsboro !important;\n font-size: 15px !important;\n padding: 10px !important;\n margin-bottom: 5px !important;\n outline: none !important;\n flex-grow: 1 !important;\n}\n\n#tf-form-inner input:hover {\n outline: none !important;\n}\n\n#tf-form-send-button {\n margin-top: 10px !important;\n flex-grow: 1 !important;\n height: 35px !important;\n border: none !important;\n background-color: ").concat(t.customPrimaryColor," !important;\n font-weight: 600 !important;\n color: ").concat(t.customTitleColor," !important;\n cursor: pointer !important;\n border-radius: 5px !important;\n}\n\n#tf-form-send-button:hover {\n opacity: 0.8 !important;\n}\n\n#tf-form-send-button:disabled {\n opacity: 0.7 !important;\n}\n\n#tf-form-inner input.tf-input-error {\n border-bottom: 1px solid red !important;\n}\n")},n.default=r},{"./settings/domain/WidgetPlacement":"sqNh"}],m4Rm:[function(t,e,n){"use strict";function o(){this.headers=[]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,o.prototype.setMethod=function(t){return this.method=t,this},o.prototype.setCredentials=function(t){return this.credentials=t,this},o.prototype.setBody=function(t){return this.body=t,this},o.prototype.addHeader=function(t,e){return this.headers.push([t,e]),this},o.prototype.toRequestInit=function(){var o=[],t=(this.headers.forEach(function(t){var e=t[0],t=t[1],n=[];n.push(e),n.push(t),o.push(n)}),{headers:o});return this.method&&(t.method=this.method),this.credentials&&(t.credentials=this.credentials),this.body&&(t.body=this.body),t},n.default=o},{}],w1tu:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var p=t("../../constants"),h=(t=t("../../util/api/RequestOptions"))&&t.__esModule?t:{default:t};function d(t,s,a,c){return new(a=a||Promise)(function(n,e){function o(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?n(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,r)}i((c=c.apply(t,s||[])).next())})}function f(o,r){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&e[0]?s.return:e[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,e[1])).done)return a;switch(s=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,s=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]a[0]&&e[1]a[0]&&e[1]a[0]&&e[1]a[0]&&e[1]a[0]&&e[1]a[0]&&e[1]