!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=731)}([function(e,t,n){"use strict";e.exports=n(326)},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t * @license MIT */ var r=n(348),i=n(349),o=n(202);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(11))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict"; /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */e.exports={YES_STRING:"1",NO_STRING:"0",YES:1,NO:0,ITEM_HIDE:1,ITEM_SHOW:0,USER_LOGGED:1,USER_LOGOUT:0,SOUND_ENABLE:1,SOUND_DISABLE:0,HIDE_GROUP_ENABLE:1,HIDE_GROUP_DISABLE:0,APP_IS_USED:1,WINDOW_MINIMIZE:1,WINDOW_MAXIMIZE:0,WINDOW_CHAT_MAXIMIZE_WIDTH:402,WINDOW_CHAT_MINIMIZE_WIDTH:333,WINDOW_FIRST_CHAT_LEFT_MAGRIN_POSTION:722,WINDOW_MINIUM_LEFT_POSTION_ALLOWED_MAXIMIZE:150,WINDOW_MESSAGES_IS_LOADED:1,WINDOW_MESSAGES_IS_UNLOADED:0,USER_ONLINE:"1",USER_OFFLINE:"2",USER_BUSY:"3",USER_INVISIBLE:"4",ROOM_IS_UNBLOCKED:0,IS_FOCUSED_CHAT_WINDOW:!0,NOT_FOCUSED_CHAT_WINDOW:!1,NO_CAMERA_CLOSE_POPUP_TIMEOUT:7e3,ActionTypes:{USER_IS_LOGGED_CALLBACK:"USER_IS_LOGGED_CALLBACK",USER_I_CHANGE_ONLINE_STATUS_CALLBACK:"USER_I_CHANGE_ONLINE_STATUS_CALLBACK",RECEIVE_RAW_FRIENDS:"RECEIVE_RAW_FRIENDS",ADD_RAW_FRIENDS:"ADD_RAW_FRIENDS",RECEIVE_RAW_GROUPS:"RECEIVE_RAW_GROUPS",SET_ONLINE_FRIENDS:"SET_ONLINE_FRIENDS",SET_OFFLINE_FRIENDS:"SET_OFFLINE_FRIENDS",SEARCH_FRIEND_CALLBACK:"SEARCH_FRIEND_CALLBACK",ADD_RAW_FRIENDS_BY_KEYWORD:"ADD_RAW_FRIENDS_BY_KEYWORD",FIND_A_FRIENDS:"FIND_A_FRIENDS",CREATE_A_ROOM_FOR_A_USER:"CREATE_A_ROOM_FOR_A_USER",CREATE_A_ROOM_FOR_A_USER_BY_USER_CALLBACK:"CREATE_A_ROOM_FOR_A_USER_BY_USER_CALLBACK",CREATE_A_ROOM_FOR_A_USER_BY_SYSTEM_CALLBACK:"CREATE_A_ROOM_FOR_A_USER_BY_SYSTEM_CALLBACK",CREATE_A_ROOM_BY_ROOM_ID:"CREATE_A_ROOM_BY_ROOM_ID",REFESH_A_ROOM_BY_ROOM_ID:"REFESH_A_ROOM_BY_ROOM_ID",REFESH_A_ROOM_BY_ROOM_ID_CALLBACK:"REFESH_A_ROOM_BY_ROOM_ID_CALLBACK",MARK_MESSAGES_IS_LOADED_FOR_A_ROOM:"MARK_MESSAGES_IS_LOADED_FOR_A_ROOM",SET_ROOM_HAS_UNREAD_MESSAGE:"SET_ROOM_HAS_UNREAD_MESSAGE",USER_IS_START_TYPING_IN_A_ROOM:"USER_IS_START_TYPING_IN_A_ROOM",USER_IS_STOP_TYPING_IN_A_ROOM:"USER_IS_STOP_TYPING_IN_A_ROOM",MARK_MESSAGES_IS_SEEN_IN_ROOMS_CALLBACK:"MARK_MESSAGES_IS_SEEN_IN_ROOMS_CALLBACK",MARK_SEEN_IN_ROOMS_CALLBACK:"MARK_SEEN_IN_ROOMS_CALLBACK",ACTIVE_A_ROOM:"ACTIVE_A_ROOM",DESTROY_A_ROOM:"DESTROY_A_ROOM",DESTROY_ALL_ROOM:"DESTROY_ALL_ROOM",MINIMIZE_A_ROOM:"MINIMIZE_A_ROOM",RENAME_A_ROOM:"RENAME_A_ROOM",REMOVE_A_USER_IN_A_ROOM:"REMOVE_A_USER_IN_A_ROOM",CACULATE_NEW_MESSAGES_FOR_ALL_ROOM:"CACULATE_NEW_MESSAGES_FOR_ALL_ROOM",RERENDER_ALL_ROOMS:"RERENDER_ALL_ROOMS",GET_MESSAGE_FOR_A_ROOM_CALLBACK:"GET_MESSAGE_FOR_A_ROOM_CALLBACK",GET_MESSAGE_MORE_FOR_A_ROOM_CALLBACK:"GET_MESSAGE_MORE_FOR_A_ROOM_CALLBACK",GET_NEW_MESSAGE_FOR_A_ROOM_CALLBACK:"GET_NEW_MESSAGE_FOR_A_ROOM_CALLBACK",UN_SEND_A_MESSAGE:"UN_SEND_A_MESSAGE",DELETE_ALL_MESSAGE_MORE_FOR_A_ROOM:"DELETE_ALL_MESSAGE_MORE_FOR_A_ROOM",USER_ADD_CALLBACK:"USER_ADD_CALLBACK",STOP_UPDATE_MISSING_USER:"STOP_UPDATE_MISSING_USER",POUP_OPEN_REPORT_MODAL:"POUP_OPEN_REPORT_MODAL",POPUP_CLOSE_MODAL:"POPUP_CLOSE_MODAL",POUP_OPEN_RENAME_MODAL:"POUP_OPEN_RENAME_MODAL",POUP_OPEN_ALERT_MODAL:"POUP_OPEN_ALERT_MODAL",POUP_OPEN_ALERT_YES_NO_MODAL:"POUP_OPEN_ALERT_YES_NO_MODAL",POUP_OPEN_RTC_SUPPORTED_ALERT_MODAL:"POUP_OPEN_RTC_SUPPORTED_ALERT_MODAL",POUP_CLOSE_RTC_SUPPORTED_ALERT_MODAL:"POUP_CLOSE_RTC_SUPPORTED_ALERT_MODAL",POPUP_OPEN_VIDEO_CALL_SETTING_MODAL:"POPUP_OPEN_VIDEO_CALL_SETTING_MODAL",POPUP_CLOSE_VIDEO_CALL_SETTING_MODAL:"POPUP_CLOSE_VIDEO_CALL_SETTING_MODAL",POUP_CLOSE_NO_CAMERA_ALERT_MODAL:"POUP_CLOSE_NO_CAMERA_ALERT_MODAL",ADD_USERS_TO_A_ROOM_BY_SYSTEM_CALLBACK:"ADD_USERS_TO_A_ROOM_BY_SYSTEM_CALLBACK",COUNTER_UNSEEN_MESSAGES_FROM_RAW_DATA:"COUNTER_UNSEEN_MESSAGES_FROM_RAW_DATA",SET_ROOM_MESSAGES_IS_SEEN:"SET_ROOM_MESSAGES_IS_SEEN",MARK_READ_ALL_MESSAGES:"MARK_READ_ALL_MESSAGES",MOBILE_SHOW_FRIENDS_WINDOW:"MOBILE_SHOW_FRIENDS_WINDOW",MOBILE_SHOW_ICON_STATUS:"MOBILE_SHOW_ICON_STATUS",MOBILE_SHOW_CHAT_WINDOW:"MOBILE_SHOW_CHAT_WINDOW",FRIEND_CHANGE_ONLINE_STATUS_CALLBACK:"FRIEND_CHANGE_ONLINE_STATUS_CALLBACK",GET_LATEST_MESSAGES_CALLBACK:"GET_LATEST_MESSAGES_CALLBACK",SET_LATEST_MESSAGES_CALLBACK:"SET_LATEST_MESSAGES_CALLBACK",DELETE_LATEST_MESSAGES_A_ROOM:"DELETE_LATEST_MESSAGES_A_ROOM"},ModalActions:{OPEN_MODAL_REPORT:0,CLOSE_MODAL_REPORT:1,ON_CLICKED_BUTTON_REPORT_MODAL_REPORT:2},ERROR:{NO_ERROR:0,REPORT_ROOM_MESSAGE_SPAM_IS_EXIST:1},CALL_STATUS:{CONTACTING:"contacting",NOTREACHABLE:"notreachable",RINGING:"ringing",CONNECTED:"connected",BUSY:"busy",NOANSWER:"noanswer",RTC_UNSUPPORTED:"rtc_unsupported",CALL_ENDED:"call_ended",CALL_FAILED:"call_failed"},CHAT_MESSAGE_TYPE:{TYPE_SYSTEM:"system"},SYSTEM_MESSAGE_ACTION:{MISS_VIDEO_CALL:"miss_video_call",MISS_VOICE_CALL:"miss_voice_call",END_VIDEO_CALL:"end_video_call",END_VOICE_CALL:"end_voice_call"},ONLINE_STATUS:{ACTIVE:"active",BUSY:"busy",INVISIBLE:"invisible"},MAX_MESSAGE_LENGTH:2500,LATEST_MESSAGES_LIMIT:100}},function(e,t,n){(function(t){var r=n(45),i=n(48).Stream,o=n(14),a=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e,t,n,i,a){throw new r.AssertionError({message:o.format("%s (%s) is required",e,t),actual:void 0===a?typeof i:a(i),expected:t,operator:n||"===",stackStartFunction:u.caller})}function c(e){return Object.prototype.toString.call(e).slice(8,-1)}function l(){}var f={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"==typeof e&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return t.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof i},operator:"instanceof",actual:c},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:c},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:c},uuid:{check:function(e){return"string"==typeof e&&a.test(e)},operator:"isUUID"}};e.exports=function e(t){var n,i=Object.keys(f);return n=Object({NODE_ENV:"production"}).NODE_NDEBUG?l:function(e,t){e||u(t,"true",e)},i.forEach((function(e){if(t)n[e]=l;else{var r=f[e];n[e]=function(t,n){r.check(t)||u(n,e,r.operator,t,r.actual)}}})),i.forEach((function(e){var r="optional"+s(e);if(t)n[r]=l;else{var i=f[e];n[r]=function(t,n){null!=t&&(i.check(t)||u(n,e,i.operator,t,i.actual))}}})),i.forEach((function(e){var r="arrayOf"+s(e);if(t)n[r]=l;else{var i=f[e],o="["+e+"]";n[r]=function(e,t){var n;for(Array.isArray(e)||u(t,o,i.operator,e,i.actual),n=0;n=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a}).call(this,n(5))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=S(n(196)),i=(S(n(197)),S(n(198))),o=S(n(132)),a=(S(n(199)),S(n(200))),s=S(n(201)),u=S(n(334)),c=S(n(24)),l=S(n(9)),f=k(n(336)),d=k(n(337)),p=k(n(339)),h=k(n(340)),m=k(n(341)),g=k(n(342)),v=k(n(588)),y=S(n(289)),b=n(589);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function S(e){return e&&e.__esModule?e:{default:e}}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var E=n(19).i18next,j=null,C=!1,O=function(){};function A(e){c.default.isMobile()&&(O(e),O=function(e){}),i.default.createForAUserByUserCallback(e)}function T(t){e.log("Server disconnect"),c.default.setConnected(!1),window.onfocus=function(){M.boot(),window.onfocus=function(){}}}var R={on:!1,callback:function(){}};function P(e){R.on?(r.default.addByKeyword(e),R.callback(),R.on=!1):r.default.searchFriendCallback(e)}var M={getSocket:function(){return j},isEnableChat:function(){return c.default.isEnableChat()},getChatToken:function(){return c.default.getChatToken()},getChatStatus:function(){return c.default.getChatStatus()},getServerUrl:function(){return c.default.getServerUrl()},getPathChatServer:function(){return c.default.getPathChatServer()},getSiteUrl:function(){return c.default.getSiteUrl()},getAvatarLinkFromDataUser:function(e,t){return c.default.getAvatarLinkFromDataUser(e,t)},getProfileLinkFromDataUser:function(e){return c.default.getProfileLinkFromDataUser(e)},isHideOfflineUser:function(){return c.default.isHideOfflineUser()},isOpennedChatboxWhenANewMesasgeArrives:function(){return c.default.isOpennedChatboxWhenANewMesasgeArrives()},boot:function(e){return e=void 0!==e&&e,c.default.setIsMobile(e),!!this.isEnableChat()&&(this.initSocket((function(){if(c.default.setConnected(!0),c.default.setConnectError(!1),c.default.isTurnOffForFirstTimeUsing())c.default.turnOffChat();else{var e=c.default.getRoomIsOpen();e.isCreated.length>0&&(c.default.getChatStatus()==l.default.USER_OFFLINE||M.sendReqpuestForUpdatingUserByRoomIdsAtBooting(e.isCreated))}})),!0)},initSocket:function(e){c.default.setThisOfChatWebAPIUtils(this);var t={query:"chat_token="+this.getChatToken()+"&chat_status="+this.getChatStatus(),reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:10};""!==this.getPathChatServer()&&(t.path=this.getPathChatServer(),t.transports=["polling"]),(j=n(318)(this.getServerUrl(),t)).on("connect",e),j.on("connect_error",f.failedConnect),j.on("reconnect_failed",f.failedConnect),j.on("disconnect",T),j.on("userIsLogged",d.isLoggedCallback),j.on("getMyFriendsCallBack",p.getMyFriendsCallBack),j.on("getMyFriendsHaveIdsCallBack",p.getMyFriendsHaveIdsCallBack),j.on("getMyFriendsOnlineCallBack",p.getMyFriendsOnlineCallBack),j.on("friendIsLogged",p.friendIsLogged),j.on("friendIsLogout",p.friendIsLogout),j.on("createChatWindowByUserCallback",A),j.on("createChatWindowBySystemCallback",h.createChatWindowBySystemCallback),j.on("getRoomMessagesCallback",h.getRoomMessagesCallback),j.on("getRoomMessagesMoreCallback",h.getRoomMessagesMoreCallback),j.on("markMessagesIsSeenInRoomsCallback",h.markMessagesIsSeenInRoomsCallback),j.on("markSeenInRoomsCallback",h.markSeenInRoomsCallback),j.on("markReadAllMessagesCallback",h.markReadAllMessagesCallback),j.on("renameRoomCallback",h.renameRoomCallback),j.on("newMessage",m.newMessage),j.on("unsendMessageCallback",m.unSendMessageCallback),j.on("getUsersCallback",d.getUsersCallback),j.on("getUsersByRoomIdsAtBootingCallback",d.getUsersByRoomIdsAtBootingCallback),j.on("getRoomHasUnreadMessageCallback",h.getRoomHasUnreadMessageCallback),j.on("setOnlineCallback",h.setOnlineCallback),j.on("getMyGroupsCallBack",h.getMyGroupsCallBack),j.on("deleteConversationCallback",h.deleteConversationCallback),j.on("reportMessageSpamCallback",h.reportMessageSpamCallback),j.on("leaveConversationCallback",h.leaveConversationCallback),j.on("removeAUserFromGroupCallback",h.removeAUserFromGroupCallback),j.on("addUsersToARoomCallback",h.addUsersToARoomCallback),j.on("blockMessagesCallback",h.blockMessagesCallback),j.on("unblockMessagesCallback",h.unblockMessagesCallback),j.on("refeshStatusChatWindowByRoomIdCallback",h.refreshStatusChatWindowByRoomIdCallback),j.on("startTypingCallback",h.startTypingCallback),j.on("stopTypingCallback",h.stopTypingCallback),j.on("getLatestMessagesCallback",v.setLatestMessagesCallback),j.on("searchFriendCallback",P),j.on("videoCallingCallback",g.videoCallingCallback),j.on("getVideoCallingTokenCallback",g.getVideoCallingTokenCallback),j.on("receiveSignal",g.receiveSignal),j.on("ringingVideoCallCallback",g.ringingVideoCallCallback),j.on("busyVideoCallCallback",g.busyVideoCallCallback),j.on("cancelVideoCallCallback",g.cancelVideoCallCallback),j.on("closeYesNoCallPopupCallback",g.closeYesNoCallPopupCallback),j.on("endVideoCallingCallback",g.endVideoCallingCallback),j.on("getVideoUserInfoCallback",g.getVideoUserInfoCallback),j.on("closeVideoCallDialogCallback",g.closeVideoCallDialogCallback),j.on("cancelVideoCallRTCSupportedCallback",g.cancelVideoCallRTCSupportedCallback),j.on("callingPickupCallback",g.callingPickupCallback),j.on("friendChangeOnlineStatusCallback",p.friendChangeOnlineStatusCallback),j.on("iChangeOnlineStatusCallback",d.iChangeOnlineStatus),j.on("stunTurnServerCallback",g.stunTurnServerCallback),j.on("changeStateRemoteCameraCallback",g.changeStateRemoteCameraCallback),j.on("changeStateRemoteMicCallback",g.changeStateRemoteMicCallback),j.on("imOnACallCallback",g.imOnACallCallback),j.on("isCallingFromUserCallback",g.isCallingFromUserCallback)},createChatWindowForAUser:(0,b.HOF_checkIsConnecting)((function(t){i.default.createForAUser(t),e.log("ChatRoomActionCreators.createForAUser")})),createChatWindowByRoomId:(0,b.HOF_checkIsConnecting)((function(e){i.default.createByRoomId(e)})),createChatGroupWindowForUsers:(0,b.HOF_checkIsConnecting)((function(e,t){c.default.isMobile()&&(O=void 0===x(t)?function(e){}:t),j.emit("createChatWindowByUser",{friendIds:e,isAllowedSendToNonFriend:c.default.isAllowedSendToNonFriend()})})),addUsersToARoom:(0,b.HOF_checkIsConnecting)((function(e,t){j.emit("addUsersToARoom",e,t)})),sendRequestCreateChatWindowByUser:(0,b.HOF_checkIsConnecting)((function(e){j.emit("createChatWindowByUser",{friendIds:e,isAllowedSendToNonFriend:c.default.isAllowedSendToNonFriend()})})),sendRequestRefeshStatusARoomByRoomId:(0,b.HOF_checkIsConnecting)((function(e){j.emit("refeshStatusChatWindowByRoomId",e)})),sendRequestGetRoomMessages:(0,b.HOF_checkIsConnecting)((function(e,t){t=void 0!==t?t:0,t=0,j.emit("getRoomMessages",{roomId:e,limit:c.default.getFirstTimeMessagesLimit(),firstIdNewMessage:t})})),sendRequestGetRoomMessagesMore:(0,b.HOF_checkIsConnecting)((function(e,t,n){j.emit("getRoomMessagesMore",{rId:e,mIdStart:t,limit:n})})),sendRequestTextMessage:(0,b.HOF_checkIsConnecting)((function(e,t,n){j.emit("sendTextMessage",{text:e,roomId:t,type:n,timestamps:c.default.unixTime()})})),sendRequestSaveRoomStatus:_.debounce((function(e){j.emit("saveRoomStatus",{rooms:e})}),1500),sendRequestCreateChatWindowByRoomId:function(e,t,n,r){var i=void 0!==t?t:l.default.WINDOW_MAXIMIZE,o=void 0!==n?n:l.default.IS_FOCUSED_CHAT_WINDOW;r=void 0!==r&&r;c.default.isMobile()&&(t=l.default.WINDOW_MINIMIZE),j.emit("createChatWindowByRoomId",{roomId:e,minimized:i,isFocused:o,isSaveRoomStatus:r})},sendRequestMarkMessagesIsSeenInRooms:function(e,t){j.emit("markMessagesIsSeenInRooms",{messageIdsUnSeen:e,roomIsSeen:t})},sendRequestMarkSeenInRooms:function(e){j.emit("markSeenInRooms",{roomIsSeen:e})},sendRequestForGetRoomHasUnreadMessage:function(){c.default.getChatStatus()!=l.default.USER_OFFLINE&&j.emit("getRoomHasUnreadMessage")},sendRequestForUpdatingUsers:_.debounce((function(e){j.emit("getUsers",e)}),1500),sendReqpuestForUpdatingUserByRoomIdsAtBooting:function(e){j.emit("getUsersByRoomIdsAtBooting",e)},sendRequestGetMyFriends:_.debounce((function(e){e=void 0!==e?e:[],j.emit("getMyFriends",e)}),1500),sendRequestTurnOffChat:function(){c.default.setChatStatus(l.default.USER_OFFLINE),j.emit("setOffline")},sendRequestTurnOnChat:(0,b.HOF_checkIsConnecting)((function(){c.default.setChatStatus(l.default.USER_ONLINE),j.emit("setOnline")})),sendRequestGetMyGroups:_.debounce((function(){j.emit("getMyGroups")}),1500),sendRequestDeleteConversation:(0,b.HOF_checkIsConnecting)((function(e){o.default.deleteAllMesages(e),y.default.deleteLatestMessage(e),j.emit("deleteConversation",e)})),sendRequestUnsendMessage:function(e,t){j.emit("unsendMessage",e,t)},sendRequestReportMesasgeSpam:(0,b.HOF_checkIsConnecting)((function(e){j.emit("reportMessageSpam",e)})),sendRequestRenameRoom:(0,b.HOF_checkIsConnecting)((function(e,t){j.emit("renameRoom",e,t)})),sendRequestLeaveConversation:(0,b.HOF_checkIsConnecting)((function(e){j.emit("leaveConversation",e)})),sendRequestRemoveAUserFromGroup:(0,b.HOF_checkIsConnecting)((function(e,t){j.emit("removeAUserFromGroup",e,t)})),sendRequestBlockMessages:(0,b.HOF_checkIsConnecting)((function(e){j.emit("blockMessages",e)})),sendRequestUnblockMessages:(0,b.HOF_checkIsConnecting)((function(e){j.emit("unblockMessages",e)})),sendRequestStartTyping:function(e){j.emit("startTyping",e)},sendRequestStopTyping:function(e){j.emit("stopTyping",e)},sendRequestSearchName:(0,b.HOF_checkIsConnecting)((function(e,t){void 0!==t&&(R.on=!0,R.callback=t),j.emit("searchFriend",e)})),sendRequestMissVideoCallMessage:(0,b.HOF_checkIsConnecting)((function(e,t,n){var r={action:l.default.SYSTEM_MESSAGE_ACTION.MISS_VIDEO_CALL,caller_id:parseInt(t),receiver_id:parseInt(n)};r=JSON.stringify(r),this.sendRequestTextMessage(r,parseInt(e),l.default.CHAT_MESSAGE_TYPE.TYPE_SYSTEM)})),sendRequestMissVoiceCallMessage:(0,b.HOF_checkIsConnecting)((function(e,t,n){var r={action:l.default.SYSTEM_MESSAGE_ACTION.MISS_VOICE_CALL,caller_id:parseInt(t),receiver_id:parseInt(n)};r=JSON.stringify(r),this.sendRequestTextMessage(r,parseInt(e),l.default.CHAT_MESSAGE_TYPE.TYPE_SYSTEM)})),sendRequestEndVideoCallMessage:(0,b.HOF_checkIsConnecting)((function(e){var t={action:l.default.SYSTEM_MESSAGE_ACTION.END_VIDEO_CALL};t=JSON.stringify(t),this.sendRequestTextMessage(t,parseInt(e),l.default.CHAT_MESSAGE_TYPE.TYPE_SYSTEM)})),sendRequestEndVoiceCallMessage:(0,b.HOF_checkIsConnecting)((function(e){var t={action:l.default.SYSTEM_MESSAGE_ACTION.END_VOICE_CALL};t=JSON.stringify(t),this.sendRequestTextMessage(t,parseInt(e),l.default.CHAT_MESSAGE_TYPE.TYPE_SYSTEM)})),refeshARoom:function(e){i.default.refeshARoom(e)},activeARoom:function(e){i.default.activeARoom(e)},destroyARoom:function(e){i.default.destroyARoom(e)},destoryAllRoom:function(){i.default.destroyAllRoom()},minimizeARoom:function(e){i.default.minimizeARoom(e,!0)},maximizeARoom:function(e,t){i.default.minimizeARoom(e,!1)},caculateNewMessagesForAllRoom:function(){i.default.caculateNewMessages()},reRenderAllRooms:function(){i.default.reRenderAllRooms()},markMessagesIsLoadedForARoom:function(e){i.default.markMessagesIsLoaded(e)},markMessagesInARoomIsSeen:function(e){s.default.setMessagesIsSeen(e)},markReadAllMessages:function(e){j.emit("markReadAllMessages",e)},sendRequestGetLatestMessages:_.debounce((function(e){var t=((e=e||1)-1)*l.default.LATEST_MESSAGES_LIMIT;j.emit("getLatestMessages",t)}),1500),findAFriendByName:function(e){r.default.filter(e)},openRenameModal:function(e){a.default.openRenameModal(e)},openReportModal:function(e){a.default.openReportModal(e)},openAlertModal:function(e){a.default.openAlertModal(e)},openRTCSupportedAlertModal:function(e){a.default.openRTCSupportedAlertModal(e)},closeRTCSupportedAlertModal:function(){a.default.closeRTCSupportedAlertModal()},closeModal:function(e){a.default.closeModal(e)},openAlertYesNoModal:function(e){a.default.openAlertYesNoModal(e)},showAlertDisconnected:function(){this.openAlertModal({title:E.t("warning"),body:E.t("chat_server_disconnected")})},showMobiIconStatus:function(){u.default.showIconStatus()},showMobiFriendsWindow:function(){u.default.showFriendsWindow()},showMobiChatWindow:function(){u.default.showChatWindow()},updateConversationCounter:function(e){c.default.updateConversationCounter(e)},markReadOnMessagesPage:function(e){c.default.markReadOnMessagesPage(e)},sendRequestGetVideoCallingToken:function(e){j.emit("getVideoCallingToken",e)},sendRequestVideoCalling:function(e){j.emit("videoCalling",e)},sendRequestEndVideoCalling:function(e,t){C||(this.clearImOnCall(),C=!0,j.emit("endVideoCalling",e,t))},openAWindowForCalling:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];g.openAWindowForCalling(e,t),this.imOnACall(!0)},createVideoPeer:function(e){g.createVideoPeer(e)},sendSignal:function(e){j.emit("sendSignal",e)},getMediaStream:function(e){g.getMediaStream(e)},saveVideoCallSetting:function(e){g.saveVideoCallSetting(e)},updateCameraStream:function(e){g.updateCameraStream(e)},setMediaStream:function(e){g.setMediaStream(e)},setMediaRemoteStream:function(e){g.setMediaRemoteStream(e)},setMyCameraStreamEnable:function(e,t){g.setMyCameraStreamEnable(e,t)},toogleMyMicStream:function(){g.toogleMyMicStream()},setMyMicStreamEnable:function(e,t){g.setMyMicStreamEnable(e,t)},ringingVideoCall:function(e){j.emit("ringingVideoCall",e)},busyVideoCall:function(e){j.emit("busyVideoCall",e)},cancelVideoCall:function(e){j.emit("cancelVideoCall",e)},callingPickup:function(e,t,n){j.emit("callingPickup",{senderId:parseInt(e),rId:parseInt(t),senderSocketId:n})},getUserInfo:function(e){j.emit("getVideoUserInfo",e)},closeVideoCallDialog:function(e){j.emit("closeVideoCallDialog",e)},cancelVideoCallRTCSupported:function(e){j.emit("cancelVideoCallRTCSupported",e)},openVideoCallSettingModal:function(e){a.default.openVideoCallSettingModal(e)},closeVideoCallSettingModal:function(){a.default.closeVideoCallSettingModal()},changeOnlineStatus:function(e){j.emit("changeUserOnlineStatus",e)},stunTurnServer:function(e){j.emit("stunTurnServer",e)},closeYesNoCallPopup:function(){j.emit("closeYesNoCallPopup")},isMySocketId:function(e){return j.id==e},getMyStream:function(){return window.myStream},clearImOnCall:function(){g.clearImOnCall()},missCallMessage:function(e,t,n,r){g.missCallMessage(e,t,n,r)},endCallMessage:function(e){g.endCallMessage(e)},connectedVideoCall:function(){g.connectedVideoCall()},failedVideoCall:function(){g.failedVideoCall()},changeStateRemoteCamera:function(e,t){j.emit("changeStateRemoteCamera",e,t)},changeStateRemoteMic:function(e,t){j.emit("changeStateRemoteMic",e,t)},imOnACall:function(e){j.emit("imOnACall",e)},addCall:function(){j.emit("addCall")},setRoomIsCalling:function(e,t){j.emit("setRoomIsCalling",e,t)},getCameraConfig:function(e){var t={width:{min:480,ideal:480,max:1920},height:{min:360,ideal:360,max:1080}};return void 0!==e&&Object.assign(t,e),t},getAudioConfig:function(e){var t={sampleRate:41e3,channelCount:2,volume:1,noiseSuppression:!1,autoGainControl:!1,echoCancellation:!0};return void 0!==e&&Object.assign(t,e),t},isVideoCallEnabled:function(){return"true"==document.getElementById("root").getAttribute("videoCallEnabled")},getMySocketId:function(){return j.id},closeCalling:function(e){j.emit("closeCalling",e)},isCallingFromUser:function(e){j.emit("isCallingFromUser",e)},closeSocket:function(){j.disconnect()}};t.default=M}).call(this,n(7))},function(e,t,n){(function(e,r){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=f(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(x(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var c,l="",w=!1,E=["{","}"];(h(n)&&(w=!0,E=["[","]"]),x(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),S(n)&&(l=" "+d(n)),0!==a.length||w&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,E)):E[0]+l+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===E(e)}function S(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function x(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(a)&&(a=Object({NODE_ENV:"production"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);r.error("%s %d: %s",n,i,e)}}else s[n]=function(){};return s[n]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.isObject=w,t.isDate=k,t.isError=S,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(327);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){r.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(328),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),u=t;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(e){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],l=h[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(l).toString(e);n=(f=f.idivn(l)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,f=67108863&u,d=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=d;p++){var h=c-p|0;l+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],h=8191&p,m=p>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],_=8191&b,w=b>>>13,k=0|a[4],S=8191&k,x=k>>>13,E=0|a[5],j=8191&E,C=E>>>13,O=0|a[6],A=8191&O,T=O>>>13,R=0|a[7],P=8191&R,M=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],F=8191&L,B=L>>>13,z=0|s[0],U=8191&z,q=z>>>13,H=0|s[1],W=8191&H,V=H>>>13,K=0|s[2],$=8191&K,G=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,U),i=(i=Math.imul(h,q))+Math.imul(m,U)|0,o=Math.imul(m,q);var ve=(c+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,q))+Math.imul(y,U)|0,o=Math.imul(y,q),r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,V)|0;var ye=(c+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,U),i=(i=Math.imul(_,q))+Math.imul(w,U)|0,o=Math.imul(w,q),r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(h,$)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,q))+Math.imul(x,U)|0,o=Math.imul(x,q),r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,G)|0,r=r+Math.imul(h,Z)|0,i=(i=i+Math.imul(h,X)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0;var _e=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,q))+Math.imul(C,U)|0,o=Math.imul(C,q),r=r+Math.imul(S,W)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(h,J)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;c=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,q))+Math.imul(T,U)|0,o=Math.imul(T,q),r=r+Math.imul(j,W)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(S,$)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,q))+Math.imul(M,U)|0,o=Math.imul(M,q),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(j,$)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,X)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(c+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,q))+Math.imul(D,U)|0,o=Math.imul(D,q),r=r+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(j,Z)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(S,J)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(h,ue)|0,i=(i=i+Math.imul(h,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0;var xe=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(F,U),i=(i=Math.imul(F,q))+Math.imul(B,U)|0,o=Math.imul(B,q),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(j,J)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ee=(c+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;c=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,W),i=(i=Math.imul(F,V))+Math.imul(B,W)|0,o=Math.imul(B,V),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,G)|0,r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(j,ne)|0,i=(i=i+Math.imul(j,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,ue)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,de)|0;var je=(c+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(F,$),i=(i=Math.imul(F,G))+Math.imul(B,$)|0,o=Math.imul(B,G),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Ce=(c+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,he)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,X))+Math.imul(B,Z)|0,o=Math.imul(B,X),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,r=r+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,de)|0;var Oe=(c+(r=r+Math.imul(_,he)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,he)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,ee))+Math.imul(B,J)|0,o=Math.imul(B,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,de)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,de)|0;var Ae=(c+(r=r+Math.imul(S,he)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(x,he)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Te=(c+(r=r+Math.imul(j,he)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(C,he)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Re=(c+(r=r+Math.imul(A,he)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(T,he)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(F,ue),i=(i=Math.imul(F,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var Pe=(c+(r=r+Math.imul(P,he)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(M,he)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,fe),i=(i=Math.imul(F,de))+Math.imul(B,fe)|0,o=Math.imul(B,de);var Me=(c+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,he)|0))<<13)|0;c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Ie=(c+(r=Math.imul(F,he))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(B,he)|0))<<13)|0;return c=((o=Math.imul(B,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=_e,u[5]=we,u[6]=ke,u[7]=Se,u[8]=xe,u[9]=Ee,u[10]=je,u[11]=Ce,u[12]=Oe,u[13]=Ae,u[14]=Te,u[15]=Re,u[16]=Pe,u[17]=Me,u[18]=Ie,0!==c&&(u[19]=c,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return v(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?v(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},b.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new j(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(k,w),k.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new S;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return _[e]=t,t},j.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},j.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var f=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},i(C,j),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(118)(e))},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=n,f.count=s.length,l=f,t&&t.warn&&t.warn(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}}).call(this,n(7))},function(e,t,n){(function(t){e.exports=g;var r,i=n(10),o=n(27),a=n(15),s=n(84),u=n(42),c=n(163).DiffieHellman,l=n(39),f=n(23),d=n(22);try{r=n(270)}catch(e){}var p=l.InvalidAlgorithmError,h=l.KeyParseError,m={};function g(e){i.object(e,"options"),i.arrayOfObject(e.parts,"options.parts"),i.string(e.type,"options.type"),i.optionalString(e.comment,"options.comment");var t=o.info[e.type];if("object"!=typeof t)throw new p(e.type);for(var n,r={},a=0;a1024&&(e="sha256"),"ed25519"===this.type&&(e="sha512"),"ecdsa"===this.type&&(e=this.size<=256?"sha256":this.size<=384?"sha384":"sha512"),e},g.prototype.createVerify=function(e){if(void 0===e&&(e=this.defaultHashAlgorithm()),i.string(e,"hash algorithm"),"ed25519"===this.type&&void 0!==r)return new r.Verifier(this,e);if("curve25519"===this.type)throw new Error("Curve25519 keys are not suitable for signing or verification");var n,o,s;try{o=e.toUpperCase(),n=a.createVerify(o)}catch(e){s=e}(void 0===n||s instanceof Error&&s.message.match(/Unknown message digest/))&&(o="RSA-",o+=e.toUpperCase(),n=a.createVerify(o)),i.ok(n,"failed to create verifier");var c=n.verify.bind(n),l=this.toBuffer("pkcs8"),f=this.curve,d=this;return n.verify=function(n,r){if(u.isSignature(n,[2,0]))return n.type===d.type&&((!n.hashAlgorithm||n.hashAlgorithm===e)&&((!n.curve||"ecdsa"!==d.type||n.curve===f)&&c(l,n.toBuffer("asn1"))));if("string"==typeof n||t.isBuffer(n))return c(l,n,r);throw u.isSignature(n,[1,0])?new Error("signature was created by too old a version of sshpk and cannot be verified"):new TypeError("signature must be a string, Buffer, or Signature object")},n},g.prototype.createDiffieHellman=function(){if("rsa"===this.type)throw new Error("RSA keys do not support Diffie-Hellman");return new c(this)},g.prototype.createDH=g.prototype.createDiffieHellman,g.parse=function(e,t,n){"string"!=typeof e&&i.buffer(e,"data"),void 0===t&&(t="auto"),i.string(t,"format"),"string"==typeof n&&(n={filename:n}),i.optionalObject(n,"options"),void 0===n&&(n={}),i.optionalString(n.filename,"options.filename"),void 0===n.filename&&(n.filename="(unnamed)"),i.object(m[t],"formats[format]");try{var r=m[t].read(e,n);return r instanceof d&&(r=r.toPublic()),r.comment||(r.comment=n.filename),r}catch(e){if("KeyEncryptedError"===e.name)throw e;throw new h(n.filename,t,e)}},g.isKey=function(e,t){return f.isCompatible(e,g,t)},g.prototype._sshpkApiVersion=[1,7],g._oldVersionDetect=function(e){return i.func(e.toBuffer),i.func(e.fingerprint),e.createDH?[1,4]:e.defaultHashAlgorithm?[1,3]:e.formats.auto?[1,2]:e.formats.pkcs1?[1,1]:[1,0]}}).call(this,n(4).Buffer)},function(e,t,n){e.exports=b;var r=n(10),i=n(12).Buffer,o=n(27),a=n(15),s=(n(84),n(42)),u=n(39),c=n(14),l=n(23),f=n(163),d=f.generateECDSA,p=f.generateED25519,h=n(270),m=n(86),g=n(21),v=(u.InvalidAlgorithmError,u.KeyParseError),y=(u.KeyEncryptedError,{});function b(e){r.object(e,"options"),g.call(this,e),this._pubCache=void 0}y.auto=n(271),y.pem=n(49),y.pkcs1=n(164),y.pkcs8=n(87),y.rfc4253=n(50),y["ssh-private"]=n(113),y.openssh=y["ssh-private"],y.ssh=y["ssh-private"],y.dnssec=n(165),y.putty=n(166),c.inherits(b,g),b.formats=y,b.prototype.toBuffer=function(e,t){return void 0===e&&(e="pkcs1"),r.string(e,"format"),r.object(y[e],"formats[format]"),r.optionalObject(t,"options"),y[e].write(this,t)},b.prototype.hash=function(e,t){return this.toPublic().hash(e,t)},b.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)},b.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var e=o.info[this.type],t=[],n=0;n=t.length){var s=a+1;n.push(e.slice(i,s-o)),i=s,o=0}i<=e.length&&n.push(e.slice(i,e.length));return n},addRSAMissing:function(e){r.object(e),p(e,o,[1,1]);var t,n=new f(e.part.d.data);if(!e.part.dmodp){var i=new f(e.part.p.data),a=n.mod(i.subtract(1));t=g(a),e.part.dmodp={name:"dmodp",data:t},e.parts.push(e.part.dmodp)}if(!e.part.dmodq){var s=new f(e.part.q.data),u=n.mod(s.subtract(1));t=g(u),e.part.dmodq={name:"dmodq",data:t},e.parts.push(e.part.dmodq)}},calculateDSAPublic:function(e,t,n){return r.buffer(e),r.buffer(t),r.buffer(n),e=new f(e),t=new f(t),n=new f(n),g(e.modPow(n,t))},calculateED25519Public:function(e){r.buffer(e);var t=d.sign.keyPair.fromSeed(new Uint8Array(e));return i.from(t.publicKey)},calculateX25519Public:function(e){r.buffer(e);var t=d.box.keyPair.fromSeed(new Uint8Array(e));return i.from(t.publicKey)},mpNormalize:m,mpDenormalize:function(e){r.buffer(e);for(;e.length>1&&0===e[0];)e=e.slice(1);return e},ecNormalize:function(e,t){if(r.buffer(e),0===e[0]&&4===e[1])return t?e:e.slice(1);if(4===e[0]){if(!t)return e}else{for(;0===e[0];)e=e.slice(1);if(2===e[0]||3===e[0])throw new Error("Compressed elliptic curve points are not supported");if(4!==e[0])throw new Error("Not a valid elliptic curve point");if(!t)return e}var n=i.alloc(e.length+1);return n[0]=0,e.copy(n,1),n},countZeros:function(e){var t=0,n=8;for(;t3)return!1;if(r.constructor.name!==t.name)return!1;var o=r._sshpkApiVersion;void 0===o&&(o=t._oldVersionDetect(e));return!(o[0]!=n[0]||o[1]t;)r.equal(e[0],0),e=e.slice(1);for(;e.length=n[1],i+" must be compatible with "+t.name+" klass version "+n[0]+"."+n[1])}}var h={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}};function m(e){for(r.buffer(e);e.length>1&&0===e[0]&&0==(128&e[1]);)e=e.slice(1);if(128==(128&e[0])){var t=i.alloc(e.length+1);t[0]=0,e.copy(t,1),e=t}return e}function g(e){var t=i.from(e.toByteArray());return t=m(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=s(n(9)),o=s(n(188)),a=(s(n(335)),s(n(122)));function s(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var u=!1,c=!1,l=!1,f=/^https?:/;function d(e,t){u||window.$.post(p.getSiteUrl()+"/chats/save-user-settings",e,(function(e,t){}))}var p={isAllowedSendPicture:function(){return a.default.isAllowedSendPicture()},isAllowedSendFiles:function(){return a.default.isAllowedSendFiles()},isAllowedEmotion:function(){return a.default.isAllowedEmotion()},isAllowedChatGroup:function(){return a.default.isAllowedChatGroup()},isAllowedVideoCalling:function(){return"https:"===location.protocol&&a.default.isAllowedVideoCalling()},isAllowedSendVoice:function(){return a.default.isAllowedSendVoice()},isConnecting:function(){return c},isConnectError:function(){return l},setConnected:function(e){c=e},setConnectError:function(e){l=e},setThisOfChatWebAPIUtils:function(e){r=e},setChatSoundState:function(e){a.default.setChatSoundState(e)},getSiteUrl:function(){return a.default.getSiteUrl()},getWebUrl:function(){return a.default.getWebUrl()},getStorageUrl:function(){return a.default.getStorageUrl()},getPathChatServer:function(){return a.default.getPathChatServer()},getAvatarLinkFromDataUser:function(e,t){var n=this.getStorageUrl();if(void 0!==t&&-1!=["50_square_","100_square_","200_square_","600_"].indexOf(t)||(t="50_square_"),f.test(e.avatar))return e.avatar;if(""!==e.avatar)this.getWebUrl()===this.getStorageUrl()?n+="/uploads/users/avatar/"+e.id+"/"+t+e.avatar:n+="/users/avatar/"+e.id+"/"+t+e.avatar;else if(void 0!==window.mooConfig.isBackgroundAvatar&&!0===window.mooConfig.isBackgroundAvatar)n=this.getWebUrl()+"/avatars/index/"+e.id+"?size=50";else switch(e.gender){case"Female":n+="/user/img/noimage/Female-user.png";break;case"Male":n+="/user/img/noimage/Male-user.png";break;default:n+="/user/img/noimage/Unknown-user.png"}return n},getProfileLinkFromDataUser:function(e){return this.getSiteUrl()+"/users/view/"+e.id},getChatBlockSettingURL:function(){return a.default.getChatBlockSettingURL()},getChatHistoryURL:function(){return a.default.getChatHistoryURL()},getChatFullConversationURL:function(){return a.default.getChatFullConversationURL()},getEmojiHtml:function(){return o.default.getEmojiHtml()},getEmojiJson:function(){return o.default.getEmojiJson()},windowWidth:function(){return window.jQuery(document).width()},getChatToken:function(){return a.default.getChatToken()},getAccessToken:function(){return a.default.getAccessToken()},getChatStatus:function(){return a.default.getChatStatus()},getServerUrl:function(){return a.default.getServerUrl()},getUploadFileLimitOnSite:function(){return a.default.getUploadFileLimitOnSite()},getLanguage:function(){return a.default.getLanguage()},getLanguage2Letter:function(){return a.default.getLanguage2Letter()},getFriendSuggestIsChoosenInARoom:function(e){return window.$("#chatroom-"+e).val()},getChatSoundState:function(){return a.default.getChatSoundState()},getHideGroupState:function(){return a.default.getHideGroupState()},getRoomIsOpen:function(){return a.default.getRoomIsOpen()},getMoreMessageLimit:function(){return a.default.getMoreMessageLimit()},getFirstTimeMessagesLimit:function(){return a.default.getFirstTimeMessagesLimit()},getDataFromURL:function(e,t){!function(e,t){window.$.post(p.getSiteUrl()+"/chats/embed",{link:e},(function(e,n){t(e)}))}(e,t)},getUploadFileLimitOnSiteToMB:function(){return this.getUploadFileLimitOnSite()/1024/1024},isTurnOffForFirstTimeUsing:function(){return a.default.isTurnOffForFirstTimeUsing()},isChatSoundGlobalEnable:function(){return a.default.isChatSoundGlobalEnable()},isRTL:function(){return a.default.isRTL()},isApp:function(){return a.default.isApp()},isIOS:function(){return a.default.isIOS()},isAndroid:function(){return a.default.isAndroid()},isIOSWeb:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/iPad|iPhone|iPod/.test(e)||window.MSStream)},isAndroidWeb:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!/android/i.test(e)},unixTime:function(){var e=(new Date).getTime();return Math.floor(e/1e3)},popupImage:function(e){window.jQuery(e).magnificPopup({type:"image",gallery:{enabled:!1},zoom:{enabled:!0,opener:function(e){return e}}}).click()},initSlimScroll:function(e){window.require(["jquery","slimScroll"],(function(t){t(e).slimScroll({height:"369px"})}))},initFriendSuggestForARoom:function(e,t,n){},resetFriendSuggestForARoom:function(e){window.$("#chatroom-"+e).tagsinput("removeAll")},convertEmoji:function(e){return o.default.replace(e)},isEnableChat:function(){return!a.default.isDisabled()},isHideOfflineUser:function(){return a.default.isHideOfflineUser()},isOpennedChatboxWhenANewMesasgeArrives:function(){return a.default.isOpennedChatboxWhenANewMesasgeArrives()},isAllowedSendToNonFriend:function(){return a.default.isAllowedSendToNonFriend()},isTurnOnNotification:function(){return a.default.isTurnOnNotification()},turnOffChat:function(){u=!0,r.destoryAllRoom(),u=!1,d({status:i.default.USER_OFFLINE}),r.sendRequestTurnOffChat()},turnOffSound:function(){this.setChatSoundState(i.default.SOUND_DISABLE),d({sound:i.default.SOUND_DISABLE,room_is_opened:""})},turnOnChat:function(){d({status:i.default.USER_ONLINE,first_time_using:i.default.APP_IS_USED}),r.sendRequestTurnOnChat()},turnOnSound:function(){this.setChatSoundState(i.default.SOUND_ENABLE),d({sound:i.default.SOUND_ENABLE})},noteRoomIsOpned:function(e){if(e.isCreated.length>0){for(var t={isCreated:e.isCreated},n=0;n0)for(var t=0;t0)for(var t=0;t0?t(".conversation_count").html(parseInt(r)+1):t("#conversationDropdown").append('1')):(i.parents("li:first").removeClass("unread"),i.hide(),i.next().show(),t("#messages .badge_counter").html(parseInt(r)-1),parseInt(r)-1>0?t(".conversation_count").length>0?t(".conversation_count").html(parseInt(r)-1):t("#conversationDropdown").append('1'):t(".conversation_count")&&t(".conversation_count").remove())}))}))},isActiveMobiRoom:function(){return a.default.isActiveMobiRoom()},getActiveMobiRoom:function(){return a.default.getActiveMobiRoom()},getTypeActiveMobiRoom:function(){return a.default.getTypeActiveMobiRoom()},isReactNativeApp:function(){return void 0!==window.ReactNativeWebView&&void 0!==window.ReactNativeWebView.postMessage},uuidv4:function(){return"xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}};t.default=p},function(e,t,n){"use strict";(function(e){var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||i,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,d=void 0!==s&&s,p=t.name,h=Object(i.a)(t,["defaultTheme","withTheme","name"]);var m=p,g=Object(c.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:p||n.displayName,classNamePrefix:m},h)),v=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,c=Object(i.a)(e,["classes","innerRef"]),h=g(Object(r.a)({},n.defaultProps,e)),m=c;return("string"==typeof p||d)&&(s=Object(f.a)()||o,p&&(m=Object(l.a)({theme:s,name:p,props:c})),d&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},m))}));return u()(v,n),v}},p=n(53);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return G})),n.d(t,"b",(function(){return X})),n.d(t,"c",(function(){return ge})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return ye})),n.d(t,"f",(function(){return ve})),n.d(t,"g",(function(){return p}));var r=n(1),i=n(93),o=(n(120),n(96)),a=n(92),s=n(99),u=n(76),c={}.constructor;function l(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(l);if(e.constructor!==c)return e;var t={};for(var n in e)t[n]=l(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=l(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var d=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,y="undefined"!=typeof CSS&&CSS.escape,b=function(e){return y?y(e):e.replace(v,"\\$1")},_=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),w=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,u=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c(Object(s.a)(Object(s.a)(i)),u),i.selectorText="."+b(i.id)),i}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},Object(o.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(_),k={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},S={indent:1,children:!0},x=/@([\w-]+)/,E=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(x);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new G(Object(r.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=S);var t=h(e).linebreak;if(null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),j=/@container|@media|@supports\s+/,C={onCreateRule:function(e,t,n){return j.test(e)?new E(e,t,n):null}},O={indent:1,children:!0},A=/@keyframes\s+([\w-]+)/,T=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(A);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:b(s(this,a)),this.rules=new G(Object(r.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=O);var t=h(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,P=/\$([\w-]+)/g,M=function(e,t){return"string"==typeof e?e.replace(P,(function(e,n){return n in t?t[n]:e})):e},I=function(e,t,n){var r=e[t],i=M(r,n);i!==r&&(e[t]=i)},N={onCreateRule:function(e,t,n){return"string"==typeof e&&R.test(e)?new T(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&I(e,"animation-name",n.keyframes),"animation"in e&&I(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return M(e,r.keyframes);default:return e}}},D=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return g(this.key,this.style,n)},t}(_),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new D(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(u.a)(t,["attached"]),i=h(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ue=re((function(){return document.querySelector("head")}));function ce(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=ue(),n=0;nn?n:t},pe=function(){function e(e){this.getPropertyValue=ie,this.setProperty=oe,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,i=n.meta,o=n.element;this.element=o||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),i&&this.element.setAttribute("data-meta",i);var a=le();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ce(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0==(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){(function(e,r){var i; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",x="[object DataView]",E="[object Float32Array]",j="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",R="[object Uint16Array]",P="[object Uint32Array]",M=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,F=RegExp(D.source),B=RegExp(L.source),z=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,$=RegExp(K.source),G=/^\s+/,Y=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\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",he="[\\ud800-\\udfff]",me="["+pe+"]",ge="["+de+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+pe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",je="(?:"+be+"|"+_e+")",Ce="(?:"+Ee+"|"+_e+")",Oe="(?:"+ge+"|"+we+")"+"?",Ae="[\\ufe0e\\ufe0f]?"+Oe+("(?:\\u200d(?:"+[ke,Se,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Oe+")*"),Te="(?:"+[ye,Se,xe].join("|")+")"+Ae,Re="(?:"+[ke+ge+"?",ge,Se,xe,he].join("|")+")",Pe=RegExp("['’]","g"),Me=RegExp(ge,"g"),Ie=RegExp(we+"(?="+we+")|"+Re+Ae,"g"),Ne=RegExp([Ee+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Ee,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Ee+je,"$"].join("|")+")",Ee+"?"+je+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["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"],Be=-1,ze={};ze[E]=ze[j]=ze[C]=ze[O]=ze[A]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[R]=ze[P]=!0,ze[u]=ze[c]=ze[S]=ze[l]=ze[x]=ze[f]=ze[d]=ze[p]=ze[m]=ze[g]=ze[v]=ze[y]=ze[b]=ze[_]=ze[k]=!1;var Ue={};Ue[u]=Ue[c]=Ue[S]=Ue[x]=Ue[l]=Ue[f]=Ue[E]=Ue[j]=Ue[C]=Ue[O]=Ue[A]=Ue[m]=Ue[g]=Ue[v]=Ue[y]=Ue[b]=Ue[_]=Ue[w]=Ue[T]=Ue["[object Uint8ClampedArray]"]=Ue[R]=Ue[P]=!0,Ue[d]=Ue[p]=Ue[k]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,We=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,$e=Ve||Ke||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Ye&&Ye.exports===Ge,Xe=Ze&&Ve.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Je=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,it=Qe&&Qe.isTypedArray;function ot(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 at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Nt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=jt({"À":"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"}),Ft=jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+qe[e]}function zt(e){return De.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?$e:Zt.defaults($e.Object(),t,Zt.pick($e,Fe))).Array,i=t.Date,Y=t.Error,de=t.Function,pe=t.Math,he=t.Object,me=t.RegExp,ge=t.String,ve=t.TypeError,ye=r.prototype,be=de.prototype,_e=he.prototype,we=t["__core-js_shared__"],ke=be.toString,Se=_e.hasOwnProperty,xe=0,Ee=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=_e.toString,Ce=ke.call(he),Oe=$e._,Ae=me("^"+ke.call(Se).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,Re=t.Symbol,Ie=t.Uint8Array,De=Te?Te.allocUnsafe:void 0,qe=qt(he.getPrototypeOf,he),Ve=he.create,Ke=_e.propertyIsEnumerable,Ge=ye.splice,Ye=Re?Re.isConcatSpreadable:void 0,Xe=Re?Re.iterator:void 0,Qe=Re?Re.toStringTag:void 0,yt=function(){try{var e=eo(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),jt=t.clearTimeout!==$e.clearTimeout&&t.clearTimeout,Xt=i&&i.now!==$e.Date.now&&i.now,Qt=t.setTimeout!==$e.setTimeout&&t.setTimeout,Jt=pe.ceil,en=pe.floor,tn=he.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=qt(he.keys,he),sn=pe.max,un=pe.min,cn=i.now,ln=t.parseInt,fn=pe.random,dn=ye.reverse,pn=eo(t,"DataView"),hn=eo(t,"Map"),mn=eo(t,"Promise"),gn=eo(t,"Set"),vn=eo(t,"WeakMap"),yn=eo(he,"create"),bn=vn&&new vn,_n={},wn=Oo(pn),kn=Oo(hn),Sn=Oo(mn),xn=Oo(gn),En=Oo(vn),jn=Re?Re.prototype:void 0,Cn=jn?jn.valueOf:void 0,On=jn?jn.toString:void 0;function An(e){if(Va(e)&&!Ia(e)&&!(e instanceof Mn)){if(e instanceof Pn)return e;if(Se.call(e,"__wrapped__"))return Ao(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Wa(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Rn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Mn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Xn(e,t,n,r,i,o){var a,s=1&t,c=2&t,d=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Wa(e))return e;var k=Ia(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var M=ro(e),I=M==p||M==h;if(Fa(e))return di(e,s);if(M==v||M==u||I&&!i){if(a=c||I?{}:oo(e),!s)return c?function(e,t){return bi(e,no(e),t)}(e,function(e,t){return e&&bi(t,ks(t),e)}(a,e)):function(e,t){return bi(e,to(e),t)}(e,$n(a,e))}else{if(!Ue[M])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return pi(e);case l:case f:return new r(+e);case x:return function(e,t){var n=t?pi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case j:case C:case O:case A:case T:case"[object Uint8ClampedArray]":case R:case P:return hi(e,n);case m:return new r;case g:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,M,s)}}o||(o=new Fn);var N=o.get(e);if(N)return N;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Xn(r,t,n,r,e,o))})):Ka(e)&&e.forEach((function(r,i){a.set(i,Xn(r,t,n,i,e,o))}));var D=k?void 0:(d?c?$i:Ki:c?ks:ws)(e);return st(D||e,(function(r,i){D&&(r=e[i=r]),Wn(a,i,Xn(r,t,n,i,e,o))})),a}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=pt(t,Rt(n))),r?(o=dt,a=!1):t.length>=200&&(o=Mt,a=!1,t=new Ln(t));e:for(;++i-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(hn||Nn),string:new In}},Dn.prototype.delete=function(e){var t=Qi(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Qi(this,e).get(e)},Dn.prototype.has=function(e){return Qi(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Qi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Fn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Fn.prototype.get=function(e){return this.__data__.get(e)},Fn.prototype.has=function(e){return this.__data__.has(e)},Fn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(lr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Si(),ur=Si(!0);function cr(e,t){return e&&sr(e,t,ws)}function lr(e,t){return e&&ur(e,t,ws)}function fr(e,t){return lt(t,(function(t){return Ua(e[t])}))}function dr(e,t){for(var n=0,r=(t=ui(t,e)).length;null!=e&&nt}function gr(e,t){return null!=e&&Se.call(e,t)}function vr(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var i=n?dt:ft,o=e[0].length,a=e.length,s=a,u=r(a),c=1/0,l=[];s--;){var f=e[s];s&&t&&(f=pt(f,Rt(t))),c=un(f.length,c),u[s]=!n&&(t||o>=120&&f.length>=120)?new Ln(s&&f):void 0}f=e[0];var d=-1,p=u[0];e:for(;++d=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ge.call(e,i,1):ei(e,i)}}return e}function Lr(e,t){return e+en(fn()*(t-e+1))}function Fr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return ko(go(e,t,$s),e+"")}function zr(e){return zn(Ts(e))}function Ur(e,t){var n=Ts(e);return Eo(n,Zn(t,0,n.length))}function qr(e,t,n,r){if(!Wa(e))return e;for(var i=-1,o=(t=ui(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Qa(a)&&(n?a<=t:a=200){var c=t?null:Fi(e);if(c)return Wt(c);a=!1,i=Mt,u=new Ln}else u=t?[]:s;e:for(;++r=r?e:Kr(e,t,n)}var fi=jt||function(e){return $e.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=De?De(n):new e.constructor(n);return e.copy(r),r}function pi(e){var t=new e.constructor(e.byteLength);return new Ie(t).set(new Ie(e)),t}function hi(e,t){var n=t?pi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Qa(e),a=void 0!==t,s=null===t,u=t==t,c=Qa(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function Oi(e){return Vi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Yi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&b.reverse(),f&&cs))return!1;var c=o.get(e),l=o.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,p=2&n?new Ln:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Q):[]}(r),n)))}function xo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Eo(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yo(e,n)}));function na(e){var t=An(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Vi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Mn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=_i((function(e,t,n){Se.call(e,n)?++e[n]:Gn(e,n,1)}));var aa=Ci(Mo),sa=Ci(Io);function ua(e,t){return(Ia(e)?st:tr)(e,Xi(t,3))}function ca(e,t){return(Ia(e)?ut:nr)(e,Xi(t,3))}var la=_i((function(e,t,n){Se.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var fa=Br((function(e,t,n){var i=-1,o="function"==typeof t,a=Da(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=_i((function(e,t,n){Gn(e,n,t)}));function pa(e,t){return(Ia(e)?pt:Or)(e,Xi(t,3))}var ha=_i((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&uo(e,t[0],t[1])?t=[]:n>2&&uo(t[0],t[1],t[2])&&(t=[t[0]]),Mr(e,ar(t,1),[])})),ga=Xt||function(){return $e.Date.now()};function va(e,t,n){return t=n?void 0:t,zi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Br((function(e,t,n){var r=1;if(n.length){var i=Ht(n,Zi(ba));r|=32}return zi(e,r,t,n,i)})),_a=Br((function(e,t,n){var r=3;if(n.length){var i=Ht(n,Zi(_a));r|=32}return zi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,u,c,l=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function m(e){return l=e,u=wo(v,t),f?h(e):s}function g(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=a}function v(){var e=ga();if(g(e))return y(e);u=wo(v,function(e){var n=t-(e-c);return d?un(n,a-(e-l)):n}(e))}function y(e){return u=void 0,p&&r?h(e):(r=i=void 0,s)}function b(){var e=ga(),n=g(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return m(c);if(d)return fi(u),u=wo(v,t),h(c)}return void 0===u&&(u=wo(v,t)),s}return t=as(t)||0,Wa(n)&&(f=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==u&&fi(u),l=0,r=c=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var ka=Br((function(e,t){return Jn(e,1,t)})),Sa=Br((function(e,t,n){return Jn(e,as(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Dn),n}function Ea(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Dn;var ja=ci((function(e,t){var n=(t=1==t.length&&Ia(t[0])?pt(t[0],Rt(Xi())):pt(ar(t,1),Rt(Xi()))).length;return Br((function(r){for(var i=-1,o=un(r.length,n);++i=t})),Ma=_r(function(){return arguments}())?_r:function(e){return Va(e)&&Se.call(e,"callee")&&!Ke.call(e,"callee")},Ia=r.isArray,Na=Je?Rt(Je):function(e){return Va(e)&&hr(e)==S};function Da(e){return null!=e&&Ha(e.length)&&!Ua(e)}function La(e){return Va(e)&&Da(e)}var Fa=nn||au,Ba=et?Rt(et):function(e){return Va(e)&&hr(e)==f};function za(e){if(!Va(e))return!1;var t=hr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ga(e)}function Ua(e){if(!Wa(e))return!1;var t=hr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==is(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ka=tt?Rt(tt):function(e){return Va(e)&&ro(e)==m};function $a(e){return"number"==typeof e||Va(e)&&hr(e)==g}function Ga(e){if(!Va(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var Ya=nt?Rt(nt):function(e){return Va(e)&&hr(e)==y};var Za=rt?Rt(rt):function(e){return Va(e)&&ro(e)==b};function Xa(e){return"string"==typeof e||!Ia(e)&&Va(e)&&hr(e)==_}function Qa(e){return"symbol"==typeof e||Va(e)&&hr(e)==w}var Ja=it?Rt(it):function(e){return Va(e)&&Ha(e.length)&&!!ze[hr(e)]};var es=Ni(Cr),ts=Ni((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Da(e))return Xa(e)?$t(e):yi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ro(e);return(t==m?Ut:t==b?Wt:Ts)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Zn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qa(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?We(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return bi(e,ks(e))}function us(e){return null==e?"":Qr(e)}var cs=wi((function(e,t){if(po(t)||Da(t))bi(t,ws(t),e);else for(var n in t)Se.call(t,n)&&Wn(e,n,t[n])})),ls=wi((function(e,t){bi(t,ks(t),e)})),fs=wi((function(e,t,n,r){bi(t,ks(t),e,r)})),ds=wi((function(e,t,n,r){bi(t,ws(t),e,r)})),ps=Vi(Yn);var hs=Br((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&uo(t[0],t[1],i)&&(r=1);++n1),t})),bi(e,$i(e),n),r&&(n=Xn(n,7,Hi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var js=Vi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=pt($i(e),(function(e){return[e]}));return t=Xi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Os=Bi(ws),As=Bi(ks);function Ts(e){return null==e?[]:Pt(e,ws(e))}var Rs=Ei((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return zs(us(e).toLowerCase())}function Ms(e){return(e=us(e))&&e.replace(ce,Lt).replace(Me,"")}var Is=Ei((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ns=Ei((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=xi("toLowerCase");var Ls=Ei((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Fs=Ei((function(e,t,n){return e+(n?" ":"")+zs(t)}));var Bs=Ei((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zs=xi("toUpperCase");function Us(e,t,n){return e=us(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var qs=Br((function(e,t){try{return ot(e,void 0,t)}catch(e){return za(e)?e:new Y(e)}})),Hs=Vi((function(e,t){return st(t,(function(t){t=Co(t),Gn(e,t,ba(e[t],e))})),e}));function Ws(e){return function(){return e}}var Vs=Oi(),Ks=Oi(!0);function $s(e){return e}function Gs(e){return xr("function"==typeof e?e:Xn(e,1))}var Ys=Br((function(e,t){return function(n){return br(n,e,t)}})),Zs=Br((function(e,t){return function(n){return br(e,n,t)}}));function Xs(e,t,n){var r=ws(t),i=fr(t,r);null!=n||Wa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=fr(t,ws(t)));var o=!(Wa(n)&&"chain"in n&&!n.chain),a=Ua(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Qs(){}var Js=Pi(pt),eu=Pi(ct),tu=Pi(vt);function nu(e){return co(e)?Et(Co(e)):function(e){return function(t){return dr(t,e)}}(e)}var ru=Ii(),iu=Ii(!0);function ou(){return[]}function au(){return!1}var su=Ri((function(e,t){return e+t}),0),uu=Li("ceil"),cu=Ri((function(e,t){return e/t}),1),lu=Li("floor");var fu,du=Ri((function(e,t){return e*t}),1),pu=Li("round"),hu=Ri((function(e,t){return e-t}),0);return An.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},An.ary=va,An.assign=cs,An.assignIn=ls,An.assignInWith=fs,An.assignWith=ds,An.at=ps,An.before=ya,An.bind=ba,An.bindAll=Hs,An.bindKey=_a,An.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},An.chain=na,An.chunk=function(e,t,n){t=(n?uo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Jt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(e=us(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Qr(t))&&zt(e)?li($t(e),0,n):e.split(t,n):[]},An.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Br((function(n){var r=n[t],i=li(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},An.tail=function(e){var t=null==e?0:e.length;return t?Kr(e,1,t):[]},An.take=function(e,t,n){return e&&e.length?Kr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},An.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},An.takeRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!1,!0):[]},An.takeWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3)):[]},An.tap=function(e,t){return t(e),e},An.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Wa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},An.thru=ra,An.toArray=ns,An.toPairs=Os,An.toPairsIn=As,An.toPath=function(e){return Ia(e)?pt(e,Co):Qa(e)?[e]:yi(jo(us(e)))},An.toPlainObject=ss,An.transform=function(e,t,n){var r=Ia(e),i=r||Fa(e)||Ja(e);if(t=Xi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Wa(e)&&Ua(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},An.unary=function(e){return va(e,1)},An.union=Vo,An.unionBy=Ko,An.unionWith=$o,An.uniq=function(e){return e&&e.length?Jr(e):[]},An.uniqBy=function(e,t){return e&&e.length?Jr(e,Xi(t,2)):[]},An.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},An.unset=function(e,t){return null==e||ei(e,t)},An.unzip=Go,An.unzipWith=Yo,An.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},An.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},An.values=Ts,An.valuesIn=function(e){return null==e?[]:Pt(e,ks(e))},An.without=Zo,An.words=Us,An.wrap=function(e,t){return Ca(si(t),e)},An.xor=Xo,An.xorBy=Qo,An.xorWith=Jo,An.zip=ea,An.zipObject=function(e,t){return oi(e||[],t||[],Wn)},An.zipObjectDeep=function(e,t){return oi(e||[],t||[],qr)},An.zipWith=ta,An.entries=Os,An.entriesIn=As,An.extend=ls,An.extendWith=fs,Xs(An,An),An.add=su,An.attempt=qs,An.camelCase=Rs,An.capitalize=Ps,An.ceil=uu,An.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},An.clone=function(e){return Xn(e,4)},An.cloneDeep=function(e){return Xn(e,5)},An.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},An.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},An.conformsTo=function(e,t){return null==t||Qn(e,t,ws(t))},An.deburr=Ms,An.defaultTo=function(e,t){return null==e||e!=e?t:e},An.divide=cu,An.endsWith=function(e,t,n){e=us(e),t=Qr(t);var r=e.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},An.eq=Ta,An.escape=function(e){return(e=us(e))&&B.test(e)?e.replace(L,Ft):e},An.escapeRegExp=function(e){return(e=us(e))&&$.test(e)?e.replace(K,"\\$&"):e},An.every=function(e,t,n){var r=Ia(e)?ct:rr;return n&&uo(e,t,n)&&(t=void 0),r(e,Xi(t,3))},An.find=aa,An.findIndex=Mo,An.findKey=function(e,t){return bt(e,Xi(t,3),cr)},An.findLast=sa,An.findLastIndex=Io,An.findLastKey=function(e,t){return bt(e,Xi(t,3),lr)},An.floor=lu,An.forEach=ua,An.forEachRight=ca,An.forIn=function(e,t){return null==e?e:sr(e,Xi(t,3),ks)},An.forInRight=function(e,t){return null==e?e:ur(e,Xi(t,3),ks)},An.forOwn=function(e,t){return e&&cr(e,Xi(t,3))},An.forOwnRight=function(e,t){return e&&lr(e,Xi(t,3))},An.get=gs,An.gt=Ra,An.gte=Pa,An.has=function(e,t){return null!=e&&io(e,t,gr)},An.hasIn=vs,An.head=Do,An.identity=$s,An.includes=function(e,t,n,r){e=Da(e)?e:Ts(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Xa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},An.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},An.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=un(t,n)&&e=-9007199254740991&&e<=9007199254740991},An.isSet=Za,An.isString=Xa,An.isSymbol=Qa,An.isTypedArray=Ja,An.isUndefined=function(e){return void 0===e},An.isWeakMap=function(e){return Va(e)&&ro(e)==k},An.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==hr(e)},An.join=function(e,t){return null==e?"":on.call(e,t)},An.kebabCase=Is,An.last=zo,An.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,St,i,!0)},An.lowerCase=Ns,An.lowerFirst=Ds,An.lt=es,An.lte=ts,An.max=function(e){return e&&e.length?ir(e,$s,mr):void 0},An.maxBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),mr):void 0},An.mean=function(e){return xt(e,$s)},An.meanBy=function(e,t){return xt(e,Xi(t,2))},An.min=function(e){return e&&e.length?ir(e,$s,Cr):void 0},An.minBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),Cr):void 0},An.stubArray=ou,An.stubFalse=au,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=du,An.nth=function(e,t){return e&&e.length?Pr(e,is(t)):void 0},An.noConflict=function(){return $e._===this&&($e._=Oe),this},An.noop=Qs,An.now=ga,An.pad=function(e,t,n){e=us(e);var r=(t=is(t))?Kt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Mi(en(i),n)+e+Mi(Jt(i),n)},An.padEnd=function(e,t,n){e=us(e);var r=(t=is(t))?Kt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=fn();return un(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Lr(e,t)},An.reduce=function(e,t,n){var r=Ia(e)?mt:Ct,i=arguments.length<3;return r(e,Xi(t,4),n,i,tr)},An.reduceRight=function(e,t,n){var r=Ia(e)?gt:Ct,i=arguments.length<3;return r(e,Xi(t,4),n,i,nr)},An.repeat=function(e,t,n){return t=(n?uo(e,t,n):void 0===t)?1:is(t),Fr(us(e),t)},An.replace=function(){var e=arguments,t=us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},An.result=function(e,t,n){var r=-1,i=(t=ui(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=un(e,4294967295);e-=4294967295;for(var i=At(r,t=Xi(t));++n=o)return e;var s=n-Kt(r);if(s<1)return r;var u=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ya(i)){if(e.slice(s).search(i)){var c,l=u;for(i.global||(i=me(i.source,us(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Qr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},An.unescape=function(e){return(e=us(e))&&F.test(e)?e.replace(D,Yt):e},An.uniqueId=function(e){var t=++xe;return us(e)+t},An.upperCase=Bs,An.upperFirst=zs,An.each=ua,An.eachRight=ca,An.first=Do,Xs(An,(fu={},cr(An,(function(e,t){Se.call(An.prototype,t)||(fu[t]=e)})),fu),{chain:!1}),An.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){An[e].placeholder=An})),st(["drop","take"],(function(e,t){Mn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Mn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Mn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Mn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Mn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Mn.prototype[e]=function(){return this.__filtered__?new Mn(this):this[n](1)}})),Mn.prototype.compact=function(){return this.filter($s)},Mn.prototype.find=function(e){return this.filter(e).head()},Mn.prototype.findLast=function(e){return this.reverse().find(e)},Mn.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new Mn(this):this.map((function(n){return br(n,e,t)}))})),Mn.prototype.reject=function(e){return this.filter(Ea(Xi(e)))},Mn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Mn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Mn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mn.prototype.toArray=function(){return this.take(4294967295)},cr(Mn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=An[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(An.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Mn,u=a[0],c=s||Ia(t),l=function(e){var t=i.apply(An,ht([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,h=s&&!d;if(!o&&c){t=h?t:new Mn(this);var m=e.apply(t,a);return m.__actions__.push({func:ra,args:[l],thisArg:void 0}),new Pn(m,f)}return p&&h?e.apply(this,a):(m=this.thru(l),p?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);An.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),cr(Mn.prototype,(function(e,t){var n=An[t];if(n){var r=n.name+"";Se.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],Mn.prototype.clone=function(){var e=new Mn(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},Mn.prototype.reverse=function(){if(this.__filtered__){var e=new Mn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Mn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(e){for(var t,n=this;n instanceof Rn;){var r=Ao(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},An.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Mn){var t=e;return this.__actions__.length&&(t=new Mn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Wo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Wo)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Xe&&(An.prototype[Xe]=function(){return this}),An}();$e._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(11),n(118)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(324);function i(e){if("string"!=typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";(function(t){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){t.error(e)}}}(),e.exports=n(329)}).call(this,n(7))},function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"j",(function(){return g}));var r=n(324);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=u(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))}function s(e){var t=(e=u(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),c({type:s,values:l})}function u(e){if(e.type)return e;if("#"===e.charAt(0))return u(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(e){var t="hsl"===(e=u(e)).type?u(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?m(e,t):g(e,t)}function p(e,t){return h(e,t)}function h(e,t){return e=u(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function m(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function g(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(18)),i=s(n(9)),o=s(n(30)),a=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var u=n(20).EventEmitter,c=i.default.ActionTypes,l={id:0,chat_online_status:""};var f=(0,o.default)({},u.prototype,{emitChange:function(){this.emit("change")},addChangeListener:function(e){this.on("change",e)},removeChangeListener:function(e){this.removeListener("change",e)},get:function(e){return l[e]},getAll:function(){return l},isGuest:function(){return 0==l.id},getOnlineStatus:function(){return l.chat_online_status},setOnlineStatus:function(e){l.chat_online_status=e}});f.dispatchToken=r.default.register((function(e){switch(e.type){case c.USER_IS_LOGGED_CALLBACK:t=e.uId,n=e.chat_online_status,0!=t&&(l.id=t,l.chat_online_status=n,f.emitChange(),a.default.sendRequestForGetRoomHasUnreadMessage());break;case c.USER_I_CHANGE_ONLINE_STATUS_CALLBACK:!function(e){f.setOnlineStatus(e),f.emitChange()}(e.chat_online_status)}var t,n}));var d=f;t.default=d},function(e,t,n){"use strict";var r=n(31),i=n(2);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,c=t;return u+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){n(10);var r=n(14);function i(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="FingerprintFormatError",this.fingerprint=e,this.format=t,this.message="Fingerprint format is not supported, or is invalid: ",void 0!==e&&(this.message+=" fingerprint = "+e),void 0!==t&&(this.message+=" format = "+t)}function o(e){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="InvalidAlgorithmError",this.algorithm=e,this.message='Algorithm "'+e+'" is not supported'}function a(e,t,n){Error.captureStackTrace&&Error.captureStackTrace(this,a),this.name="KeyParseError",this.format=t,this.keyName=e,this.innerErr=n,this.message="Failed to parse "+e+" as a valid "+t+" format key: "+n.message}function s(e,t,n){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="SignatureParseError",this.type=e,this.format=t,this.innerErr=n,this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+n.message}function u(e,t,n){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.name="CertificateParseError",this.format=t,this.certName=e,this.innerErr=n,this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+n.message}function c(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,c),this.name="KeyEncryptedError",this.format=t,this.keyName=e,this.message="The "+t+" format key "+e+" is encrypted (password-protected), and no passphrase was provided in `options`"}r.inherits(i,Error),r.inherits(o,Error),r.inherits(a,Error),r.inherits(s,Error),r.inherits(u,Error),r.inherits(c,Error),e.exports={FingerprintFormatError:i,InvalidAlgorithmError:o,KeyParseError:a,SignatureParseError:s,KeyEncryptedError:c,CertificateParseError:u}},function(e,t,n){"use strict";var r=n(3).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(135);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(362);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?P+="x":P+=R[M];if(!P.match(d)){var N=A.slice(0,j),D=A.slice(j+1),L=R.match(p);L&&(N.push(L[1]),D.unshift(L[2])),D.length&&(y="/"+D.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[w])for(j=0,T=c.length;j0)&&n.host.split("@"))&&(n.auth=O.shift(),n.hostname=O.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===x||".."===x)||""===x,j=0,C=k.length;C>=0;C--)"."===(x=k[C])?k.splice(C,1):".."===x?(k.splice(C,1),j++):j&&(k.splice(C,1),j--);if(!_&&!w)for(;j--;j)k.unshift("..");!_||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var O,A=""===k[0]||k[0]&&"/"===k[0].charAt(0);S&&(n.hostname=A?"":k.length?k.shift():"",n.host=n.hostname,(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.hostname=O.shift(),n.host=n.hostname));return(_=_||n.host&&k.length)&&!A&&k.unshift(""),k.length>0?n.pathname=k.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=y(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},function(e,t,n){e.exports=f;var r=n(10),i=n(12).Buffer,o=(n(27),n(15),n(39)),a=n(23),s=n(43),u=n(69),c=o.InvalidAlgorithmError,l=o.SignatureParseError;function f(e){r.object(e,"options"),r.arrayOfObject(e.parts,"options.parts"),r.string(e.type,"options.type");for(var t={},n=0;n20&&0===o[0]&&(o=o.slice(1)),(c=this.part.s.data).length>20&&0===c[0]&&(c=c.slice(1)),this.hashAlgorithm&&"sha1"!==this.hashAlgorithm||o.length+c.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return t.writeBuffer(i.concat([o,c])),t.toBuffer()}if("ssh"===e&&"ecdsa"===this.type){var f,d=new u({});o=this.part.r.data,d.writeBuffer(o),d.writePart(this.part.s),t=new u({}),0===o[0]&&(o=o.slice(1));var p=8*o.length;return 256===p?f="nistp256":384===p?f="nistp384":528===p&&(f="nistp521"),t.writeString("ecdsa-sha2-"+f),t.writeBuffer(d.toBuffer()),t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}},f.prototype.toString=function(e){return r.optionalString(e,"format"),this.toBuffer(e).toString("base64")},f.parse=function(e,t,n){"string"==typeof e&&(e=i.from(e,"base64")),r.buffer(e,"data"),r.string(n,"format"),r.string(t,"type");var o={};o.type=t.toLowerCase(),o.parts=[];try{switch(r.ok(e.length>0,"signature must not be empty"),o.type){case"rsa":case"ed25519":return d(e,t,n,o);case"dsa":case"ecdsa":return"asn1"===n?function(e,t,n,r){var i=new s.BerReader(e);i.readSequence();var o=i.readString(s.Ber.Integer,!0),u=i.readString(s.Ber.Integer,!0);return r.parts.push({name:"r",data:a.mpNormalize(o)}),r.parts.push({name:"s",data:a.mpNormalize(u)}),new f(r)}(e,0,0,o):"dsa"===o.type?function(e,t,n,i){if(40!=e.length){var o=new u({buffer:e}),a=o.readBuffer();"ssh-dss"===a.toString("ascii")&&(a=o.readBuffer()),r.ok(o.atEnd(),"extra trailing bytes"),r.strictEqual(a.length,40,"invalid inner length"),e=a}return i.parts.push({name:"r",data:e.slice(0,20)}),i.parts.push({name:"s",data:e.slice(20,40)}),new f(i)}(e,0,0,o):function(e,t,n,i){var o,a,s=new u({buffer:e}),c=s.readBuffer(),l=c.toString("ascii");if("ecdsa-"===l.slice(0,6)){var d=l.split("-");switch(r.strictEqual(d[0],"ecdsa"),r.strictEqual(d[1],"sha2"),i.curve=d[2],i.curve){case"nistp256":i.hashAlgo="sha256";break;case"nistp384":i.hashAlgo="sha384";break;case"nistp521":i.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+i.curve)}c=s.readBuffer(),r.ok(s.atEnd(),"extra trailing bytes on outer"),s=new u({buffer:c}),o=s.readPart()}else o={data:c};return a=s.readPart(),r.ok(s.atEnd(),"extra trailing bytes"),o.name="r",a.name="s",i.parts.push(o),i.parts.push(a),new f(i)}(e,0,0,o);default:throw new c(t)}}catch(e){if(e instanceof c)throw e;throw new l(t,n,e)}},f.isSignature=function(e,t){return a.isCompatible(e,f,t)},f.prototype._sshpkApiVersion=[2,1],f._oldVersionDetect=function(e){return r.func(e.toBuffer),e.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]}},function(e,t,n){var r=n(490);e.exports={Ber:r,BerReader:r.Reader,BerWriter:r.Writer}},function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=_(n(18)),o=_(n(9)),a=_(n(30)),s=_(n(178)),u=_(n(305)),c=_(n(189)),l=_(n(612)),f=_(n(37)),d=_(n(46)),p=_(n(13)),h=_(n(24)),m=_(n(33)),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}i.default=e,n&&n.set(e,i);return i}(n(123)),v=_(n(613)),y=_(n(98));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function _(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var w=n(20).EventEmitter,k=n(304).Howl;/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi/i.test(navigator.userAgent)||(Howler.mobileAutoEnable=!1);var S=new k({src:[p.default.getSiteUrl()+"/chat/sound/beer_can_opening.mp3",p.default.getSiteUrl()+"/chat/sound/beer_can_opening.ogg",p.default.getSiteUrl()+"/chat/sound/beer_can_opening.aac"]}),x=o.default.ActionTypes,E={isCreated:[],lastestRoomIsActived:0,lastestRoomIsCreated:0},j=[],C=!1,O=0,A=0,T={},R=[];function P(e){return E.hasOwnProperty(e)}function M(e){j.push(e)}function I(t){var n=s.default.get(t).roomId;if(e.log("_getRomIdOfUser",n),g.isNil(n)){var r=g.compose(g.head,g.values,g.filter((function(e){return 0==e.isGroup&&e.members[0]==t})))(E);g.isNil(r)||(n=r.id)}return n}function N(t){E.isCreated.indexOf(t)>-1?(E.lastestRoomIsActived=t,E[t].minimized=o.default.WINDOW_MAXIMIZE,E[t].isFocused=o.default.IS_FOCUSED_CHAT_WINDOW,L(),e.log("active room is exits"),p.default.sendRequestSaveRoomStatus(E)):e.log("active room is not exits")}var D=function(t,n){n=void 0===n||n,P(t)&&((E[t].minimized==o.default.WINDOW_MAXIMIZE||h.default.isMobile())&&m.default.includes(R,t)&&(e.log("_destroyRoom markseeninrooms",[t]),p.default.sendRequestMarkSeenInRooms([t])),delete E[t],u.default.destroy(t),E.isCreated.indexOf(t)>-1&&(E.isCreated.splice(E.isCreated.indexOf(t),1),n&&p.default.sendRequestSaveRoomStatus(E)))};function L(){if(h.default.isMobile())P(A)&&(E[A].minimized=o.default.WINDOW_MAXIMIZE);else{var e=o.default.WINDOW_CHAT_MAXIMIZE_WIDTH,t=o.default.WINDOW_CHAT_MINIMIZE_WIDTH,n=h.default.windowWidth()-o.default.WINDOW_FIRST_CHAT_LEFT_MAGRIN_POSTION,r=[];if(E.isCreated)for(var i=0;io.default.WINDOW_MINIUM_LEFT_POSTION_ALLOWED_MAXIMIZE)r.push(E.isCreated[i]),n-e-1&&e.members.splice(n,1)}if(!P(e.roomId)){if(E.isCreated.push(e.roomId),e.hasOwnProperty("minimized"))var r=e.minimized;else r=E.lastestRoomIsActived==E.lastestRoomIsCreated||p.default.isOpennedChatboxWhenANewMesasgeArrives()?o.default.WINDOW_MAXIMIZE:o.default.WINDOW_MINIMIZE;h.default.isMobile()&&(r=o.default.WINDOW_MINIMIZE);e.hasOwnProperty("isFocused")?e.isFocused:o.default.IS_FOCUSED_CHAT_WINDOW;E[e.roomId]=m.default.merge({id:e.roomId,messages:[],messagesIsLoaded:o.default.WINDOW_MESSAGES_IS_UNLOADED,isMessageLoading:!1,isGroup:e.is_group,hasJoined:e.has_joined},e),e.hasOwnProperty("newMessages")&&(c.default.set(e.roomId,e.newMessages),c.default.emitChange()),e.hasOwnProperty("firstIdNewMessage")&&(E[e.roomId].firstIdNewMessage=e.firstIdNewMessage),function(e,t,n){if(void 0===e)return!1;(function(e){return e.length>1})(e)||0!=n||s.default.setRoomIdOfAUser(e[0],t)}(e.members,e.roomId,e.is_group),L(),function(e){if(m.default.isArray(e))for(var t=0;t0&&(n=Array.from(new Set(n)),p.default.sendRequestMarkSeenInRooms(n),c.default.emitChange())}),1500);var q=(0,a.default)({},w.prototype,{emitChange:function(){U(),this.emit("change")},addChangeListener:function(e){this.on("change",e)},removeChangeListener:function(e){this.removeListener("change",e)},get:function(e){return E[e]},getFromUserId:function(e){if(T.hasOwnProperty(e)&&P(T.id))return E[T.id];if(E.isCreated.length>0)for(var t=0;t0},hasNewMessage:function(){return C},freeFlagHasNewMessage:function(){C=!1},freeFlagIsFocused:function(e){P(e)&&(E[e].isFocused=o.default.NOT_FOCUSED_CHAT_WINDOW)},playSound:function(e){this.hasNewMessage()&&e==this.getRoomIdHasNewMessage()&&(S.play(),this.freeFlagHasNewMessage())},isGroup:function(e){return!!P(e)&&(!!E[e].hasOwnProperty("isGroup")&&0!=E[e].isGroup)},isBlocked:function(e){return!!P(e)&&!(E[e].first_blocked==o.default.ROOM_IS_UNBLOCKED&&E[e].second_blocked==o.default.ROOM_IS_UNBLOCKED)},isBlocker:function(e,t){return!!P(e)&&(E[e].first_blocked==t||E[e].second_blocked==t)},markMessagesIsLoaded:function(e){z(e),this.emitChange()},markMessagesIsLoading:function(e){!function(e){E.hasOwnProperty(e)&&(E[e].messagesIsLoaded=o.default.WINDOW_MESSAGES_IS_UNLOADED)}(e),this.emitChange()},setFirstIdNewMessage:function(e,t){E[e].firstIdNewMessage=t},getOnlineStatus:function(e){if(P(e)&&void 0!==E[e].members)for(var t=0;t1&&1==r&&(n==o.default.ONLINE_STATUS.ACTIVE||n==o.default.ONLINE_STATUS.BUSY))return o.default.ONLINE_STATUS.ACTIVE}return o.default.ONLINE_STATUS.INVISIBLE}});q.dispatchToken=i.default.register((function(t){switch(t.type){case x.CREATE_A_ROOM_FOR_A_USER:e.log("ChatAppDispatcher.waitFor before"),i.default.waitFor([s.default.dispatchToken]),e.log("ChatAppDispatcher.waitFor after"),F(t.userId);break;case x.CREATE_A_ROOM_BY_ROOM_ID:i.default.waitFor([s.default.dispatchToken]),P(r=t.rId)?N(r):p.default.sendRequestCreateChatWindowByRoomId(r,o.default.WINDOW_MAXIMIZE,o.default.IS_FOCUSED_CHAT_WINDOW,!0);break;case x.RENAME_A_ROOM:!function(e,t){P(e)&&(E[e].title=t),q.emitChange()}(t.rId,t.title);break;case x.CREATE_A_ROOM_FOR_A_USER_BY_USER_CALLBACK:n=t.data,e.log("_createChatWindowByUserCallback",n,!P(n.roomId)),P(n.roomId)?N(n.roomId):(E.lastestRoomIsActived=n.roomId,B(n,!0));break;case x.CREATE_A_ROOM_FOR_A_USER_BY_SYSTEM_CALLBACK:B(t.data);break;case x.ADD_USERS_TO_A_ROOM_BY_SYSTEM_CALLBACK:!function(e,t){if(P(e)){if(t.length>0)for(var n=0;n0){for(var t=0;t0&&(r=!0,u.default.setMesageIsSeen(E.isCreated[n],t[i].id));r&&(c.default.set(E.isCreated[n],0),c.default.emitChange(E.isCreated[n]))}}(t.ids);break;case x.REFESH_A_ROOM_BY_ROOM_ID:!function(e){P(e)&&p.default.sendRequestRefeshStatusARoomByRoomId(e)}(t.roomId);break;case x.REFESH_A_ROOM_BY_ROOM_ID_CALLBACK:!function(e){e.hasOwnProperty("id")&&P(e.id)&&(E[e.id].first_blocked=e.first_blocked,E[e.id].second_blocked=e.second_blocked,q.emitChange())}(t.data);break;case x.USER_IS_START_TYPING_IN_A_ROOM:!function(e){e.hasOwnProperty("rId")&&e.hasOwnProperty("uId")&&P(e.rId)&&(E[e.rId].hasOwnProperty("isTyping")?-1==E[e.rId].isTyping.indexOf(e.uId)&&E[e.rId].isTyping.push(e.uId):E[e.rId].isTyping=[e.uId]),q.emitChange()}(t.data);break;case x.USER_IS_STOP_TYPING_IN_A_ROOM:!function(e){if(e.hasOwnProperty("rId")&&e.hasOwnProperty("uId")&&P(e.rId)&&E[e.rId].hasOwnProperty("isTyping")){var t=E[e.rId].isTyping.indexOf(e.uId);t>-1&&E[e.rId].isTyping.splice(t,1)}q.emitChange()}(t.data);break;case x.REMOVE_A_USER_IN_A_ROOM:!function(e){var t=e.rId,n=e.uId;P(t)&&(E[t].members=m.default.filter(E[t].members,(function(e){return e!=n}))),q.emitChange()}(t)}var n,r})),t.default=q}).call(this,n(7))},function(e,t,n){"use strict";(function(t){var r=n(30); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&w(i,n)||s)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!w(i,n)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(d.AssertionError,Error),d.fail=v,d.ok=y,d.equal=function(e,t,n){e!=t&&v(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){k(!0,e,t,n)},d.doesNotThrow=function(e,t,n){k(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=r((function e(t,n){t||v(t,!0,n,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var S=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(11))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=p(n(18)),o=p(n(9)),a=p(n(30)),s=p(n(13)),u=p(n(100)),c=p(n(33)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}i.default=e,n&&n.set(e,i);return i}(n(123)),f=p(n(98));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var h=n(20).EventEmitter,m=u.default.Record({id:0,avatar:"",gender:"",is_hidden:0,is_logged:0,name:"",url:"",chat_online_status:""}),g=u.default.Map(),v=o.default.ActionTypes,y=[];function b(e){var t=_.getAll(),n=l.keys(t);if(l.includes(e,y)||l.includes(e,n))return 0;y.push(e)}var _=(0,a.default)({},h.prototype,{emitChange:function(){this.emit("change")},addChangeListener:function(e){this.on("change",e)},removeChangeListener:function(e){this.removeListener("change",e)},get:function(e){return void 0===g.get(e)?{}:g.get(e).toObject()},getAll:function(){return g.toObject()},add:function(e){var t=this.get(e.id),n=c.default.get(t,"is_logged",e.is_logged);g=g.set(e.id,new m({id:e.id,avatar:e.avatar,gender:e.gender,is_hidden:e.is_hidden,is_logged:n,name:e.name,url:e.url,chat_online_status:e.chat_online_status}))},getName:function(e){return e=parseInt(e),g.has(e)?f.default.censorWordReplaceUser(g.get(e).name):(b(e),"")},getAvatar:function(e){return g.has(e)?g.get(e).avatar:""},getNames:function(e){var t="";if(void 0===e)return t;for(var n=0;n0;)g=y[--_].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);r.ok(g,"invalid PEM footer"),r.equal(c[2],g[2]);var w,k=c[2].toLowerCase();c[1]&&(r.equal(c[1],g[1],"PEM header and footer mismatch"),w=c[1].trim());y=y.slice(b,_+1);var S,x,E,j={};for(;y=y.slice(1),c=y[0].match(/^([A-Za-z0-9-]+): (.+)$/);)j[c[1].toLowerCase()]=c[2];if(y=y.slice(0,-1).join(""),e=a.from(y,"base64"),j["proc-type"]){var C=j["proc-type"].split(",");if("4"===C[0]&&"ENCRYPTED"===C[1]){if("string"==typeof t.passphrase&&(t.passphrase=a.from(t.passphrase,"utf-8")),!a.isBuffer(t.passphrase))throw new h.KeyEncryptedError(t.filename,"PEM");C=j["dek-info"].split(","),r.ok(2===C.length),S=C[0].toLowerCase(),E=a.from(C[1],"hex"),x=s.opensslKeyDeriv(S,E,t.passphrase,1).key}}if(w&&"encrypted"===w.toLowerCase()){var O,A=new i.BerReader(e);A.readSequence(),A.readSequence(),O=A.offset+A.length;var T=A.readOID();if("1.2.840.113549.1.5.13"!==T)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+T);A.readSequence(),A.readSequence();var R=A.offset+A.length,P=A.readOID();if("1.2.840.113549.1.5.12"!==P)throw new Error("Unsupported PBES2 KDF: "+P);A.readSequence();var M=A.readString(i.Ber.OctetString,!0),I=A.readInt(),N="sha1";if(A.offsetp.length&&(y=p.length),g+=m.write(p.slice(v,y),g),m[g++]=10,v=y}return g+=m.write("-----END "+o+"-----\n",g),m.slice(0,g)}};var r=n(10),i=n(43),o=n(15),a=n(12).Buffer,s=(n(27),n(23)),u=n(21),c=n(22),l=n(164),f=n(87),d=n(113),p=n(50),h=n(39),m={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"},g={};Object.keys(m).forEach((function(e){g[m[e]]=e}));var v={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},y={};Object.keys(v).forEach((function(e){y[v[e]]=e}))},function(e,t,n){e.exports={read:d.bind(void 0,!1,void 0),readType:d.bind(void 0,!1),write:function(e,t){r.object(e);var n,s=f(e),l=o.info[e.type];u.isPrivateKey(e)&&(l=o.privInfo[e.type]);var d=l.parts,p=new c({});for(p.writeString(s),n=0;n=1,"key must have at least one part"),r.ok(e||h.atEnd(),"leftover bytes at end of key");var v=s,y=o.info[d.type];if("private"!==t&&y.parts.length===p.length||(y=o.privInfo[d.type],v=u),r.strictEqual(y.parts.length,p.length),"ecdsa"===d.type){var b=/^ecdsa-sha2-(.+)$/.exec(m);r.ok(null!==b),r.strictEqual(b[1],p[0].data.toString())}for(var _=!0,w=0;w4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(203),o=n(207);n(2)(c,i);for(var a=r(o.prototype),s=0;s2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(217),o=n(221);n(2)(c,i);for(var a=r(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(246),o=n(250);n(2)(c,i);for(var a=r(o.prototype),s=0;s=this._buffer.length},o.prototype.remainder=function(){return this._buffer.slice(this._offset)},o.prototype.skip=function(e){this._offset+=e},o.prototype.expand=function(){this._size*=2;var e=i.alloc(this._size);this._buffer.copy(e,0),this._buffer=e},o.prototype.readPart=function(){return{data:this.readBuffer()}},o.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4,r.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);return this._offset+=e,t},o.prototype.readString=function(){return this.readBuffer().toString()},o.prototype.readCString=function(){for(var e=this._offset;ethis._size;)this.expand();this._buffer.writeUInt32BE(e.length,this._offset),this._offset+=4,e.copy(this._buffer,this._offset),this._offset+=e.length},o.prototype.writeString=function(e){this.writeBuffer(i.from(e,"utf8"))},o.prototype.writeCString=function(e){for(;this._offset+1+e.length>this._size;)this.expand();this._buffer.write(e,this._offset),this._offset+=e.length,this._buffer[this._offset++]=0},o.prototype.writeInt=function(e){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(e,this._offset),this._offset+=4},o.prototype.writeInt64=function(e){if(r.buffer(e,"value"),e.length>8){for(var t=e.slice(0,e.length-8),n=0;nthis._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=8},o.prototype.writeChar=function(e){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=e},o.prototype.writePart=function(e){this.writeBuffer(e.data)},o.prototype.write=function(e){for(;this._offset+e.length>this._size;)this.expand();e.copy(this._buffer,this._offset),this._offset+=e.length}},function(e,t,n){"use strict";function r(e,t,n,r){var i=r?" !== ":" === ",o=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(n?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+r(s,t,n,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,c=i.split("/"),l=0;l1?{type:p[i],data:e.substring(1)}:{type:p[i]}:h}i=new Uint8Array(e)[0];var o=a(e,1);return m&&"blob"===n&&(o=new m([o])),{type:p[i],data:o}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var i=r.decode(e.substr(1));return"blob"===t&&m&&(i=new m([i])),{type:n,data:i}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var i=o(e);if(n&&i)return m&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,(function(e,r){t.encodePacket(e,!!i&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===e)return r(h,0,1);for(var o,a,s="",u=0,c=e.length;u0;){for(var s=new Uint8Array(i),u=0===s[0],c="",l=1;255!==s[l];l++){if(c.length>310)return r(h,0,1);c+=s[l]}i=a(i,2+c.length),c=parseInt(c);var f=a(i,0,c);if(u)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var d=new Uint8Array(f);f="";for(l=0;l=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),i=n(140),o=n(142),a=n(143),s=n(47);function u(e){s.call(this,"digest"),this._hash=e}r(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,n){(t=e.exports=n(225)).Stream=t,t.Readable=t,t.Writable=n(144),t.Duplex=n(56),t.Transform=n(228),t.PassThrough=n(397)},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(4).Buffer.isBuffer},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),o=0;o=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o2){if(n="md5","md5"===c[0].toLowerCase()&&(c=c.slice(1)),c=(c=c.map((function(t){for(;t.length<2;)t="0"+t;if(t.length>2)throw new d(e);return t}))).join(""),!g.test(c)||c.length%2!=0)throw new d(e);try{a=i.from(c,"hex")}catch(t){throw new d(e)}}else{if(g.test(e))a=i.from(e,"hex");else{if(!m.test(e))throw new d(e);a=i.from(e,"base64")}switch(a.length){case 32:n="sha256";break;case 16:n="md5";break;case 20:n="sha1";break;case 64:n="sha512";break;default:throw new d(e)}void 0===t.hashType&&(u="spki")}if(void 0===n)throw new d(e);if(void 0===o.hashAlgs[n])throw new p(n);if(void 0!==s&&-1===(s=s.map((function(e){return e.toLowerCase()}))).indexOf(n))throw new p(n);return new h({algorithm:n,hash:a,type:t.type||"key",hashType:u})},h.isFingerprint=function(e,t){return f.isCompatible(e,h,t)},h.prototype._sshpkApiVersion=[1,2],h._oldVersionDetect=function(e){return r.func(e.toString),r.func(e.matches),[1,0]}},function(e,t,n){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},t=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},t=26):(n.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},t=28),n.prototype.DB=t,n.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function d(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function _(){}function w(e){return e}function k(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}d.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},d.prototype.revert=function(e){return e},d.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},d.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t0?(o.lShiftTo(l,s),a.lShiftTo(l,i)):(o.copyTo(s),a.copyTo(i));var d=s.t,p=s[d-1];if(0!=p){var h=p*(1<1?s[d-2]>>this.F2:0),m=this.FV/h,g=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),n.ONE.dlShiftTo(d,_),_.subTo(s,s);s.t=0;){var w=i[--y]==p?this.DM:Math.floor(i[y]*m+(i[y-1]+v)*g);if((i[y]+=s.am(0,w,i,b,0,d))0&&i.rShiftTo(l,i),u<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var i=r(),o=r(),a=t.convert(this),s=f(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<0)t.mulTo(o,a,i);else{var u=i;i=o,o=u}return t.revert(i)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=u(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=u(n));return i?o:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+f(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new d(t):new p(t),this.exp(e,n)},n.ZERO=l(0),n.ONE=l(1),_.prototype.convert=w,_.prototype.revert=w,_.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},_.prototype.sqrTo=function(e,t){e.squareTo(t)},k.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},k.prototype.revert=function(e){return e},k.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},k.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},k.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S,x,E,j=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1<<26)/j[j.length-1];function O(){var e;e=(new Date).getTime(),x[E++]^=255&e,x[E++]^=e>>8&255,x[E++]^=e>>16&255,x[E++]^=e>>24&255,E>=N&&(E-=N)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=l(n),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,u=0;u=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i=0;)n[r]=0;for(r=Math.max(t-this.t,0);r0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>j.length&&(e=j.length);for(var a=r(),s=0;s>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,h,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,g,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,v,t),t},n.prototype.not=function(){for(var e=r(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var m=r();for(i.sqrTo(s[1],m);u<=h;)s[u]=r(),i.mulTo(m,s[u-2],s[u]),u+=2}var g,v,y=e.t-1,b=!0,_=r();for(o=f(e[y])-1;y>=0;){for(o>=c?g=e[y]>>o-c&h:(g=(e[y]&(1<0&&(g|=e[y-1]>>this.DB+o-c)),u=n;0==(1&g);)g>>=1,--u;if((o-=u)<0&&(o+=this.DB,--y),b)s[g].copyTo(a),b=!1;else{for(;u>1;)i.sqrTo(a,_),i.sqrTo(_,a),u-=2;u>0?i.sqrTo(a,_):(v=a,a=_,_=v),i.mulTo(_,s[g],a)}for(;y>=0&&0==(e[y]&1<=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),t&&s.subTo(o,s),u.subTo(a,u))}return 0!=i.compareTo(n.ONE)?n.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},n.prototype.pow=function(e){return this.exp(e,new _)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=j[j.length-1]){for(t=0;t>>8,x[E++]=255&A;E=0,O()}function P(){if(null==S){for(O(),(S=new I).init(x),E=0;E>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var o,a=0;for(o=0;o>>8)-1}function g(e,t,n,r){return m(e,t,n,r,16)}function v(e,t,n,r){return m(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,k=a,S=s,x=u,E=c,j=l,C=f,O=d,A=p,T=h,R=m,P=g,M=v,I=y,N=b,D=_,L=0;L<20;L+=2)w^=(i=(M^=(i=(A^=(i=(E^=(i=w+M|0)<<7|i>>>25)+w|0)<<9|i>>>23)+E|0)<<13|i>>>19)+A|0)<<18|i>>>14,j^=(i=(k^=(i=(I^=(i=(T^=(i=j+k|0)<<7|i>>>25)+j|0)<<9|i>>>23)+T|0)<<13|i>>>19)+I|0)<<18|i>>>14,R^=(i=(C^=(i=(S^=(i=(N^=(i=R+C|0)<<7|i>>>25)+R|0)<<9|i>>>23)+N|0)<<13|i>>>19)+S|0)<<18|i>>>14,D^=(i=(P^=(i=(O^=(i=(x^=(i=D+P|0)<<7|i>>>25)+D|0)<<9|i>>>23)+x|0)<<13|i>>>19)+O|0)<<18|i>>>14,w^=(i=(x^=(i=(S^=(i=(k^=(i=w+x|0)<<7|i>>>25)+w|0)<<9|i>>>23)+k|0)<<13|i>>>19)+S|0)<<18|i>>>14,j^=(i=(E^=(i=(O^=(i=(C^=(i=j+E|0)<<7|i>>>25)+j|0)<<9|i>>>23)+C|0)<<13|i>>>19)+O|0)<<18|i>>>14,R^=(i=(T^=(i=(A^=(i=(P^=(i=R+T|0)<<7|i>>>25)+R|0)<<9|i>>>23)+P|0)<<13|i>>>19)+A|0)<<18|i>>>14,D^=(i=(N^=(i=(I^=(i=(M^=(i=D+N|0)<<7|i>>>25)+D|0)<<9|i>>>23)+M|0)<<13|i>>>19)+I|0)<<18|i>>>14;w=w+o|0,k=k+a|0,S=S+s|0,x=x+u|0,E=E+c|0,j=j+l|0,C=C+f|0,O=O+d|0,A=A+p|0,T=T+h|0,R=R+m|0,P=P+g|0,M=M+v|0,I=I+y|0,N=N+b|0,D=D+_|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=k>>>0&255,e[5]=k>>>8&255,e[6]=k>>>16&255,e[7]=k>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=x>>>0&255,e[13]=x>>>8&255,e[14]=x>>>16&255,e[15]=x>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=j>>>0&255,e[21]=j>>>8&255,e[22]=j>>>16&255,e[23]=j>>>24&255,e[24]=C>>>0&255,e[25]=C>>>8&255,e[26]=C>>>16&255,e[27]=C>>>24&255,e[28]=O>>>0&255,e[29]=O>>>8&255,e[30]=O>>>16&255,e[31]=O>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=R>>>0&255,e[41]=R>>>8&255,e[42]=R>>>16&255,e[43]=R>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=I>>>0&255,e[53]=I>>>8&255,e[54]=I>>>16&255,e[55]=I>>>24&255,e[56]=N>>>0&255,e[57]=N>>>8&255,e[58]=N>>>16&255,e[59]=N>>>24&255,e[60]=D>>>0&255,e[61]=D>>>8&255,e[62]=D>>>16&255,e[63]=D>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)o^=(i=(v^=(i=(p^=(i=(c^=(i=o+v|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+p|0)<<18|i>>>14,l^=(i=(a^=(i=(y^=(i=(h^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+h|0)<<13|i>>>19)+y|0)<<18|i>>>14,m^=(i=(f^=(i=(s^=(i=(b^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,_^=(i=(g^=(i=(d^=(i=(u^=(i=_+g|0)<<7|i>>>25)+_|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(c^=(i=(d^=(i=(f^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+f|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(h^=(i=(p^=(i=(g^=(i=m+h|0)<<7|i>>>25)+m|0)<<9|i>>>23)+g|0)<<13|i>>>19)+p|0)<<18|i>>>14,_^=(i=(b^=(i=(y^=(i=(v^=(i=_+b|0)<<7|i>>>25)+_|0)<<9|i>>>23)+v|0)<<13|i>>>19)+y|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var _=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,i,o,a){var s,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(l,c,a,_),u=0;u<64;u++)e[t+u]=n[r+u]^l[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(y(l,c,a,_),u=0;u=64;){for(y(u,s,i,_),a=0;a<64;a++)e[t+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(y(u,s,i,_),a=0;a>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function j(e,t,n,r,i,o){var a=new E(o);return a.update(n,r,i),a.finish(e,t),0}function C(e,t,n,r,i,o){var a=new Uint8Array(16);return j(a,0,n,r,i,o),g(e,t,a,0)}function O(e,t,n,r,i){var o;if(n<32)return-1;for(x(e,0,t,0,n,r,i),j(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function A(e,t,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(S(a,0,32,r,i),0!==C(t,16,t,32,n-32,a))return-1;for(x(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function T(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function P(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function M(e,n){var r,i,o,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function I(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),v(n,0,r,0)}function N(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function D(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function L(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function F(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function B(e,t,n){var r,i,o=0,a=0,s=0,u=0,c=0,l=0,f=0,d=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,_=0,w=0,k=0,S=0,x=0,E=0,j=0,C=0,O=0,A=0,T=0,R=0,P=0,M=0,I=0,N=0,D=n[0],L=n[1],F=n[2],B=n[3],z=n[4],U=n[5],q=n[6],H=n[7],W=n[8],V=n[9],K=n[10],$=n[11],G=n[12],Y=n[13],Z=n[14],X=n[15];o+=(r=t[0])*D,a+=r*L,s+=r*F,u+=r*B,c+=r*z,l+=r*U,f+=r*q,d+=r*H,p+=r*W,h+=r*V,m+=r*K,g+=r*$,v+=r*G,y+=r*Y,b+=r*Z,_+=r*X,a+=(r=t[1])*D,s+=r*L,u+=r*F,c+=r*B,l+=r*z,f+=r*U,d+=r*q,p+=r*H,h+=r*W,m+=r*V,g+=r*K,v+=r*$,y+=r*G,b+=r*Y,_+=r*Z,w+=r*X,s+=(r=t[2])*D,u+=r*L,c+=r*F,l+=r*B,f+=r*z,d+=r*U,p+=r*q,h+=r*H,m+=r*W,g+=r*V,v+=r*K,y+=r*$,b+=r*G,_+=r*Y,w+=r*Z,k+=r*X,u+=(r=t[3])*D,c+=r*L,l+=r*F,f+=r*B,d+=r*z,p+=r*U,h+=r*q,m+=r*H,g+=r*W,v+=r*V,y+=r*K,b+=r*$,_+=r*G,w+=r*Y,k+=r*Z,S+=r*X,c+=(r=t[4])*D,l+=r*L,f+=r*F,d+=r*B,p+=r*z,h+=r*U,m+=r*q,g+=r*H,v+=r*W,y+=r*V,b+=r*K,_+=r*$,w+=r*G,k+=r*Y,S+=r*Z,x+=r*X,l+=(r=t[5])*D,f+=r*L,d+=r*F,p+=r*B,h+=r*z,m+=r*U,g+=r*q,v+=r*H,y+=r*W,b+=r*V,_+=r*K,w+=r*$,k+=r*G,S+=r*Y,x+=r*Z,E+=r*X,f+=(r=t[6])*D,d+=r*L,p+=r*F,h+=r*B,m+=r*z,g+=r*U,v+=r*q,y+=r*H,b+=r*W,_+=r*V,w+=r*K,k+=r*$,S+=r*G,x+=r*Y,E+=r*Z,j+=r*X,d+=(r=t[7])*D,p+=r*L,h+=r*F,m+=r*B,g+=r*z,v+=r*U,y+=r*q,b+=r*H,_+=r*W,w+=r*V,k+=r*K,S+=r*$,x+=r*G,E+=r*Y,j+=r*Z,C+=r*X,p+=(r=t[8])*D,h+=r*L,m+=r*F,g+=r*B,v+=r*z,y+=r*U,b+=r*q,_+=r*H,w+=r*W,k+=r*V,S+=r*K,x+=r*$,E+=r*G,j+=r*Y,C+=r*Z,O+=r*X,h+=(r=t[9])*D,m+=r*L,g+=r*F,v+=r*B,y+=r*z,b+=r*U,_+=r*q,w+=r*H,k+=r*W,S+=r*V,x+=r*K,E+=r*$,j+=r*G,C+=r*Y,O+=r*Z,A+=r*X,m+=(r=t[10])*D,g+=r*L,v+=r*F,y+=r*B,b+=r*z,_+=r*U,w+=r*q,k+=r*H,S+=r*W,x+=r*V,E+=r*K,j+=r*$,C+=r*G,O+=r*Y,A+=r*Z,T+=r*X,g+=(r=t[11])*D,v+=r*L,y+=r*F,b+=r*B,_+=r*z,w+=r*U,k+=r*q,S+=r*H,x+=r*W,E+=r*V,j+=r*K,C+=r*$,O+=r*G,A+=r*Y,T+=r*Z,R+=r*X,v+=(r=t[12])*D,y+=r*L,b+=r*F,_+=r*B,w+=r*z,k+=r*U,S+=r*q,x+=r*H,E+=r*W,j+=r*V,C+=r*K,O+=r*$,A+=r*G,T+=r*Y,R+=r*Z,P+=r*X,y+=(r=t[13])*D,b+=r*L,_+=r*F,w+=r*B,k+=r*z,S+=r*U,x+=r*q,E+=r*H,j+=r*W,C+=r*V,O+=r*K,A+=r*$,T+=r*G,R+=r*Y,P+=r*Z,M+=r*X,b+=(r=t[14])*D,_+=r*L,w+=r*F,k+=r*B,S+=r*z,x+=r*U,E+=r*q,j+=r*H,C+=r*W,O+=r*V,A+=r*K,T+=r*$,R+=r*G,P+=r*Y,M+=r*Z,I+=r*X,_+=(r=t[15])*D,a+=38*(k+=r*F),s+=38*(S+=r*B),u+=38*(x+=r*z),c+=38*(E+=r*U),l+=38*(j+=r*q),f+=38*(C+=r*H),d+=38*(O+=r*W),p+=38*(A+=r*V),h+=38*(T+=r*K),m+=38*(R+=r*$),g+=38*(P+=r*G),v+=38*(M+=r*Y),y+=38*(I+=r*Z),b+=38*(N+=r*X),o=(r=(o+=38*(w+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=f,e[7]=d,e[8]=p,e[9]=h,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=_}function z(e,t){B(e,t,t)}function U(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)z(i,i),2!==r&&4!==r&&B(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function q(e,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=t(),l=t(),f=t(),d=t(),p=t(),h=t();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,D(s,r),o=0;o<16;o++)l[o]=s[o],d[o]=c[o]=f[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)P(c,l,i=a[o>>>3]>>>(7&o)&1),P(f,d,i),L(p,c,f),F(c,c,f),L(f,l,d),F(l,l,d),z(d,p),z(h,c),B(c,f,c),B(f,l,p),L(p,c,f),F(c,c,f),z(l,c),F(f,d,h),B(c,f,u),L(c,c,d),B(f,f,c),B(c,d,h),B(d,l,s),z(l,p),P(c,l,i),P(f,d,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=f[o],s[o+48]=l[o],s[o+64]=d[o];var m=s.subarray(32),g=s.subarray(16);return U(m,m),B(g,g,m),M(e,g),0}function H(e,t){return q(e,t,o)}function W(e,t){return r(t,32),H(e,t)}function V(e,t,n){var r=new Uint8Array(32);return q(r,n,t),b(e,i,r,_)}E.prototype.blocks=function(e,t,n){for(var r,i,o,a,s,u,c,l,f,d,p,h,m,g,v,y,b,_,w,k=this.fin?0:2048,S=this.h[0],x=this.h[1],E=this.h[2],j=this.h[3],C=this.h[4],O=this.h[5],A=this.h[6],T=this.h[7],R=this.h[8],P=this.h[9],M=this.r[0],I=this.r[1],N=this.r[2],D=this.r[3],L=this.r[4],F=this.r[5],B=this.r[6],z=this.r[7],U=this.r[8],q=this.r[9];n>=16;)d=f=0,d+=(S+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,d+=(x+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*q),d+=(E+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),d+=(j+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),f=(d+=(C+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*B))>>>13,d&=8191,d+=(O+=s>>>1&8191)*(5*F),d+=(A+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),d+=(T+=8191&(u>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*D),d+=(R+=8191&(c>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*N),p=f+=(d+=(P+=l>>>5|k)*(5*I))>>>13,p+=S*I,p+=x*M,p+=E*(5*q),p+=j*(5*U),f=(p+=C*(5*z))>>>13,p&=8191,p+=O*(5*B),p+=A*(5*F),p+=T*(5*L),p+=R*(5*D),f+=(p+=P*(5*N))>>>13,p&=8191,h=f,h+=S*N,h+=x*I,h+=E*M,h+=j*(5*q),f=(h+=C*(5*U))>>>13,h&=8191,h+=O*(5*z),h+=A*(5*B),h+=T*(5*F),h+=R*(5*L),m=f+=(h+=P*(5*D))>>>13,m+=S*D,m+=x*N,m+=E*I,m+=j*M,f=(m+=C*(5*q))>>>13,m&=8191,m+=O*(5*U),m+=A*(5*z),m+=T*(5*B),m+=R*(5*F),g=f+=(m+=P*(5*L))>>>13,g+=S*L,g+=x*D,g+=E*N,g+=j*I,f=(g+=C*M)>>>13,g&=8191,g+=O*(5*q),g+=A*(5*U),g+=T*(5*z),g+=R*(5*B),v=f+=(g+=P*(5*F))>>>13,v+=S*F,v+=x*L,v+=E*D,v+=j*N,f=(v+=C*I)>>>13,v&=8191,v+=O*M,v+=A*(5*q),v+=T*(5*U),v+=R*(5*z),y=f+=(v+=P*(5*B))>>>13,y+=S*B,y+=x*F,y+=E*L,y+=j*D,f=(y+=C*N)>>>13,y&=8191,y+=O*I,y+=A*M,y+=T*(5*q),y+=R*(5*U),b=f+=(y+=P*(5*z))>>>13,b+=S*z,b+=x*B,b+=E*F,b+=j*L,f=(b+=C*D)>>>13,b&=8191,b+=O*N,b+=A*I,b+=T*M,b+=R*(5*q),_=f+=(b+=P*(5*U))>>>13,_+=S*U,_+=x*z,_+=E*B,_+=j*F,f=(_+=C*L)>>>13,_&=8191,_+=O*D,_+=A*N,_+=T*I,_+=R*M,w=f+=(_+=P*(5*q))>>>13,w+=S*q,w+=x*U,w+=E*z,w+=j*B,f=(w+=C*F)>>>13,w&=8191,w+=O*L,w+=A*D,w+=T*N,w+=R*I,S=d=8191&(f=(f=((f+=(w+=P*M)>>>13)<<2)+f|0)+(d&=8191)|0),x=p+=f>>>=13,E=h&=8191,j=m&=8191,C=g&=8191,O=v&=8191,A=y&=8191,T=b&=8191,R=_&=8191,P=w&=8191,t+=16,n-=16;this.h[0]=S,this.h[1]=x,this.h[2]=E,this.h[3]=j,this.h[4]=C,this.h[5]=O,this.h[6]=A,this.h[7]=T,this.h[8]=R,this.h[9]=P},E.prototype.finish=function(e,t){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r=128;){for(k=0;k<16;k++)S=8*k+Y,T[k]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],R[k]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(k=0;k<80;k++)if(i=P,o=M,a=I,s=N,u=D,c=L,l=F,B,d=z,p=U,h=q,m=H,g=W,v=V,y=K,$,j=65535&(E=$),C=E>>>16,O=65535&(x=B),A=x>>>16,j+=65535&(E=(W>>>14|D<<18)^(W>>>18|D<<14)^(D>>>9|W<<23)),C+=E>>>16,O+=65535&(x=(D>>>14|W<<18)^(D>>>18|W<<14)^(W>>>9|D<<23)),A+=x>>>16,j+=65535&(E=W&V^~W&K),C+=E>>>16,O+=65535&(x=D&L^~D&F),A+=x>>>16,j+=65535&(E=G[2*k+1]),C+=E>>>16,O+=65535&(x=G[2*k]),A+=x>>>16,x=T[k%16],C+=(E=R[k%16])>>>16,O+=65535&x,A+=x>>>16,O+=(C+=(j+=65535&E)>>>16)>>>16,j=65535&(E=w=65535&j|C<<16),C=E>>>16,O=65535&(x=_=65535&O|(A+=O>>>16)<<16),A=x>>>16,j+=65535&(E=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),C+=E>>>16,O+=65535&(x=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),A+=x>>>16,C+=(E=z&U^z&q^U&q)>>>16,O+=65535&(x=P&M^P&I^M&I),A+=x>>>16,f=65535&(O+=(C+=(j+=65535&E)>>>16)>>>16)|(A+=O>>>16)<<16,b=65535&j|C<<16,j=65535&(E=m),C=E>>>16,O=65535&(x=s),A=x>>>16,C+=(E=w)>>>16,O+=65535&(x=_),A+=x>>>16,M=i,I=o,N=a,D=s=65535&(O+=(C+=(j+=65535&E)>>>16)>>>16)|(A+=O>>>16)<<16,L=u,F=c,B=l,P=f,U=d,q=p,H=h,W=m=65535&j|C<<16,V=g,K=v,$=y,z=b,k%16==15)for(S=0;S<16;S++)x=T[S],j=65535&(E=R[S]),C=E>>>16,O=65535&x,A=x>>>16,x=T[(S+9)%16],j+=65535&(E=R[(S+9)%16]),C+=E>>>16,O+=65535&x,A+=x>>>16,_=T[(S+1)%16],j+=65535&(E=((w=R[(S+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),C+=E>>>16,O+=65535&(x=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),A+=x>>>16,_=T[(S+14)%16],C+=(E=((w=R[(S+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,O+=65535&(x=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,T[S]=65535&O|A<<16,R[S]=65535&j|C<<16;j=65535&(E=z),C=E>>>16,O=65535&(x=P),A=x>>>16,x=e[0],C+=(E=t[0])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[0]=P=65535&O|A<<16,t[0]=z=65535&j|C<<16,j=65535&(E=U),C=E>>>16,O=65535&(x=M),A=x>>>16,x=e[1],C+=(E=t[1])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&O|A<<16,t[1]=U=65535&j|C<<16,j=65535&(E=q),C=E>>>16,O=65535&(x=I),A=x>>>16,x=e[2],C+=(E=t[2])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[2]=I=65535&O|A<<16,t[2]=q=65535&j|C<<16,j=65535&(E=H),C=E>>>16,O=65535&(x=N),A=x>>>16,x=e[3],C+=(E=t[3])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[3]=N=65535&O|A<<16,t[3]=H=65535&j|C<<16,j=65535&(E=W),C=E>>>16,O=65535&(x=D),A=x>>>16,x=e[4],C+=(E=t[4])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[4]=D=65535&O|A<<16,t[4]=W=65535&j|C<<16,j=65535&(E=V),C=E>>>16,O=65535&(x=L),A=x>>>16,x=e[5],C+=(E=t[5])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[5]=L=65535&O|A<<16,t[5]=V=65535&j|C<<16,j=65535&(E=K),C=E>>>16,O=65535&(x=F),A=x>>>16,x=e[6],C+=(E=t[6])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[6]=F=65535&O|A<<16,t[6]=K=65535&j|C<<16,j=65535&(E=$),C=E>>>16,O=65535&(x=B),A=x>>>16,x=e[7],C+=(E=t[7])>>>16,O+=65535&x,A+=x>>>16,A+=(O+=(C+=(j+=65535&E)>>>16)>>>16)>>>16,e[7]=B=65535&O|A<<16,t[7]=$=65535&j|C<<16,Y+=128,r-=128}return r}function Z(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,t,n),n%=128,r=0;r=0;--i)Q(e,t,r=n[i/8|0]>>(7&i)&1),X(t,e),X(e,e),Q(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];T(r[0],f),T(r[1],d),T(r[2],s),B(r[3],f,d),ee(e,r,n)}function ne(e,n,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),Z(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),o=0;o<32;o++)n[o+32]=e[o];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*re[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*re[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function oe(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function ae(e,n,r,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),f=[t(),t(),t(),t()];Z(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=r+64;for(o=0;o=0;r--)z(i,i),1!==r&&B(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}(r,r),B(r,r,o),B(r,r,u),B(r,r,u),B(e[0],r,u),z(i,e[0]),B(i,i,u),I(i,o)&&B(e[0],e[0],p),z(i,e[0]),B(i,i,u),I(i,o)?-1:(N(e[0])===n[31]>>7&&F(e[0],a,e[0]),B(e[3],e[0],e[1]),0)}function ue(e,n,r,i){var o,a=new Uint8Array(32),s=new Uint8Array(64),u=[t(),t(),t(),t()],c=[t(),t(),t(),t()];if(-1,r<64)return-1;if(se(c,i))return-1;for(o=0;o=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(le(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),n=0;n=this.validFrom.getTime()&&e.getTime()0&&-1===this.issuer.purposes.indexOf("ca"))&&this.isSignedByKey(e.subjectKey))},g.prototype.getExtension=function(e){return r.string(e,"keyOrOid"),this.getExtensions().filter((function(t){return"x509"===t.format?t.oid===e:"openssh"===t.format&&t.name===e}))[0]},g.prototype.getExtensions=function(){var e=[],t=this.signatures.x509;t&&t.extras&&t.extras.exts&&t.extras.exts.forEach((function(t){t.format="x509",e.push(t)}));var n=this.signatures.openssh;return n&&n.exts&&n.exts.forEach((function(t){t.format="openssh",e.push(t)})),e},g.prototype.isSignedByKey=function(e){if(c.assertCompatible(e,l,[1,2],"issuerKey"),void 0!==this.issuerKey)return this.issuerKey.fingerprint("sha512").matches(e);var t=Object.keys(this.signatures)[0],n=p[t].verify(this,e);return n&&(this.issuerKey=e),n},g.prototype.signWith=function(e){c.assertCompatible(e,f,[1,2],"key");for(var t=Object.keys(p),n=!1,r=0;r0&&-1===p.indexOf("serverAuth")&&p.push("serverAuth"),m.length>0&&-1===p.indexOf("clientAuth")&&p.push("clientAuth"),(m.length>0||h.length>0)&&(-1===p.indexOf("keyAgreement")&&p.push("keyAgreement"),"rsa"===t.type&&-1===p.indexOf("encryption")&&p.push("encryption"))}var v=new g({subjects:o,issuer:o[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:l,validFrom:a,validUntil:s,purposes:p});return v.signWith(t),v},g.create=function(e,t,n,o,a){var s;s=Array.isArray(e)?e:[e],r.arrayOfObject(s),s.forEach((function(e){c.assertCompatible(e,d,[1,0],"subject")})),c.assertCompatible(t,l,[1,0],"key"),f.isPrivateKey(t)&&(t=t.toPublic()),c.assertCompatible(n,d,[1,0],"issuer"),c.assertCompatible(o,f,[1,2],"issuer key"),r.optionalObject(a,"options"),void 0===a&&(a={}),r.optionalObject(a.validFrom,"options.validFrom"),r.optionalObject(a.validUntil,"options.validUntil");var u=a.validFrom,p=a.validUntil;if(void 0===u&&(u=new Date),void 0===p){r.optionalNumber(a.lifetime,"options.lifetime");var h=a.lifetime;void 0===h&&(h=31536e4),(p=new Date).setTime(p.getTime()+1e3*h)}r.optionalBuffer(a.serial,"options.serial");var m=a.serial;void 0===m&&(m=i.from("0000000000000001","hex"));var v=a.purposes;void 0===v&&(v=[]),-1===v.indexOf("signature")&&v.push("signature"),!0===a.ca&&(-1===v.indexOf("ca")&&v.push("ca"),-1===v.indexOf("crl")&&v.push("crl"));var y=s.filter((function(e){return"host"===e.type})),b=s.filter((function(e){return"user"===e.type}));y.length>0&&-1===v.indexOf("serverAuth")&&v.push("serverAuth"),b.length>0&&-1===v.indexOf("clientAuth")&&v.push("clientAuth"),(b.length>0||y.length>0)&&(-1===v.indexOf("keyAgreement")&&v.push("keyAgreement"),"rsa"===t.type&&-1===v.indexOf("encryption")&&v.push("encryption"));var _=new g({subjects:s,issuer:n,subjectKey:t,issuerKey:o.toPublic(),signatures:{},serial:m,validFrom:u,validUntil:p,purposes:v});return _.signWith(o),_},g.parse=function(e,t,n){"string"!=typeof e&&r.buffer(e,"data"),void 0===t&&(t="auto"),r.string(t,"format"),"string"==typeof n&&(n={filename:n}),r.optionalObject(n,"options"),void 0===n&&(n={}),r.optionalString(n.filename,"options.filename"),void 0===n.filename&&(n.filename="(unnamed)"),r.object(p[t],"formats[format]");try{return p[t].read(e,n)}catch(e){throw new h(n.filename,t,e)}},g.isCertificate=function(e,t){return c.isCompatible(e,g,t)},g.prototype._sshpkApiVersion=[1,1],g._oldVersionDetect=function(e){return[1,0]}},function(e,t,n){e.exports=l;var r=n(10),i=(n(27),n(15),n(84),n(42),n(39),n(14),n(23)),o=n(43),a=n(12).Buffer,s=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,u={cn:"2.5.4.3",o:"2.5.4.10",ou:"2.5.4.11",l:"2.5.4.7",s:"2.5.4.8",c:"2.5.4.6",sn:"2.5.4.4",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",street:"2.5.4.9",x500UniqueIdentifier:"2.5.4.45",role:"2.5.4.72",telephoneNumber:"2.5.4.20",description:"2.5.4.13",dc:"0.9.2342.19200300.100.1.25",uid:"0.9.2342.19200300.100.1.1",mail:"0.9.2342.19200300.100.1.3",title:"2.5.4.12",gn:"2.5.4.42",initials:"2.5.4.43",pseudonym:"2.5.4.65",emailAddress:"1.2.840.113549.1.9.1"},c={};function l(e){var t=this;if(r.object(e,"options"),r.arrayOfObject(e.components,"options.components"),this.components=e.components,this.componentLookup={},this.components.forEach((function(e){e.name&&!e.oid&&(e.oid=u[e.name]),e.oid&&!e.name&&(e.name=c[e.oid]),void 0===t.componentLookup[e.name]&&(t.componentLookup[e.name]=[]),t.componentLookup[e.name].push(e)})),this.componentLookup.cn&&this.componentLookup.cn.length>0&&(this.cn=this.componentLookup.cn[0].value),r.optionalString(e.type,"options.type"),void 0===e.type)1===this.components.length&&this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(s)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length?(this.type="host",this.hostname=this.componentLookup.dc.map((function(e){return e.value})).join(".")):this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length&&this.componentLookup.cn[0].value.match(s)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.uid&&1===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.mail&&1===this.componentLookup.mail.length?(this.type="email",this.email=this.componentLookup.mail[0].value):this.componentLookup.cn&&1===this.componentLookup.cn.length?(this.type="user",this.uid=this.componentLookup.cn[0].value):this.type="unknown";else if(this.type=e.type,"host"===this.type)this.hostname=e.hostname;else if("user"===this.type)this.uid=e.uid;else{if("email"!==this.type)throw new Error("Unknown type "+this.type);this.email=e.email}}Object.keys(u).forEach((function(e){c[u[e]]=e})),l.prototype.toString=function(){return this.components.map((function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var n=e.value;return t+"="+(n=n.replace(/,/g,"\\,"))})).join(", ")},l.prototype.get=function(e,t){r.string(e,"name");var n=this.componentLookup[e];if(void 0!==n&&0!==n.length){if(!t&&n.length>1)throw new Error("Multiple values for attribute "+e);return t?n.map((function(e){return e.value})):n[0].value}},l.prototype.toArray=function(e){return this.components.map((function(e){return{name:e.name,value:e.value}}))};var f=/[^a-zA-Z0-9 '(),+.\/:=?-]/,d=/[^\x00-\x7f]/;function p(e,t){if("**"===e||"**"===t)return!0;var n=e.split("."),r=t.split(".");if(n.length!==r.length)return!1;for(var i=0;i0;){var o;if(null!==(o=/^,/.exec(i)))t[++n]="",i=i.slice(o[0].length);else if(null!==(o=/^\\,/.exec(i)))t[n]+=",",i=i.slice(o[0].length);else if(null!==(o=/^\\./.exec(i)))t[n]+=o[0],i=i.slice(o[0].length);else{if(null===(o=/^[^\\,]+/.exec(i)))throw new Error("Failed to parse DN");t[n]+=o[0],i=i.slice(o[0].length)}}return new l({components:t.map((function(e){for(var t=(e=e.trim()).indexOf("=");t>0&&"\\"===e.charAt(t-1);)t=e.indexOf("=",t+1);if(-1===t)throw new Error("Failed to parse DN");return{name:e.slice(0,t).toLowerCase().replace(/\\=/g,"="),value:e.slice(t+1)}}))})},l.fromArray=function(e){return r.arrayOfObject(e,"components"),e.forEach((function(e){if(r.object(e,"component"),r.string(e.name,"component.name"),!a.isBuffer(e.value)&&"string"!=typeof e.value)throw new Error("Invalid component value")})),new l({components:e})},l.parseAsn1=function(e,t){var n=[];e.readSequence(t);for(var r=e.offset+e.length;e.offset=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(7),n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));n(60);var r=n(8),i=n(711),o=n(1),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,u=e.step,c=void 0===u?5:u,l=Object(r.a)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return Object(o.a)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)}var u=n(323),c=n(324),l=n(117),f=n(124),d=n(125),p=n(126),h=n(127),m=n(128),g=n(129),v=n(130),y=n(36),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.a.white,default:f.a[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:l.a.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.a[800],default:"#303030"},action:{active:l.a.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.j)(e.main,i):"dark"===t&&(e.dark=Object(y.b)(e.main,o)))}function k(e){var t=e.primary,n=void 0===t?{light:d.a[300],main:d.a[500],dark:d.a[700]}:t,a=e.secondary,s=void 0===a?{light:p.a.A200,main:p.a.A400,dark:p.a.A700}:a,u=e.error,k=void 0===u?{light:h.a[300],main:h.a[500],dark:h.a[700]}:u,S=e.warning,x=void 0===S?{light:m.a[300],main:m.a[500],dark:m.a[700]}:S,E=e.info,j=void 0===E?{light:g.a[300],main:g.a[500],dark:g.a[700]}:E,C=e.success,O=void 0===C?{light:v.a[300],main:v.a[500],dark:v.a[700]}:C,A=e.type,T=void 0===A?"light":A,R=e.contrastThreshold,P=void 0===R?3:R,M=e.tonalOffset,I=void 0===M?.2:M,N=Object(r.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return Object(y.f)(e,_.text.primary)>=P?_.text.primary:b.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(c.a)(4,t));if("string"!=typeof e.main)throw new Error(Object(c.a)(5,JSON.stringify(e.main)));return w(e,"light",n,I),w(e,"dark",r,I),e.contrastText||(e.contrastText=D(e.main)),e},F={dark:_,light:b};return Object(i.a)(Object(o.a)({common:l.a,type:T,primary:L(n),secondary:L(s,"A400","A200","A700"),error:L(k),warning:L(x),info:L(j),success:L(O),grey:f.a,contrastThreshold:P,getContrastText:D,augmentColor:L,tonalOffset:I},F[T]),N)}function S(e){return Math.round(1e5*e)/1e5}function x(e){return S(e)}var E={textTransform:"uppercase"};function j(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,s=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,w=n.pxToRem,k=Object(r.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var j=c/14,C=w||function(e){return"".concat(e/b*j,"rem")},O=function(e,t,n,r,i){return Object(o.a)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===s?{letterSpacing:"".concat(S(r/t),"em")}:{},i,_)},A={h1:O(f,96,1.167,-1.5),h2:O(f,60,1.2,-.5),h3:O(p,48,1.167,0),h4:O(p,34,1.235,.25),h5:O(p,24,1.334,0),h6:O(m,20,1.6,.15),subtitle1:O(p,16,1.75,.15),subtitle2:O(m,14,1.57,.1),body1:O(p,16,1.5,.15),body2:O(p,14,1.43,.15),button:O(m,14,1.75,.4,E),caption:O(p,12,1.66,.4),overline:O(p,12,2.66,1,E)};return Object(i.a)(Object(o.a)({htmlFontSize:b,pxToRem:C,round:x,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},A),k,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},T=n(193),R=(n(95),n(52));var P=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},M={xs:0,sm:600,md:960,lg:1280,xl:1920},I={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(M[e],"px)")}};var N,D,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=(N=function(e){if(e.length>2){if(!B[e])return[e];e=B[e]}var t=e.split(""),n=Object(T.a)(t,2),r=n[0],i=n[1],o=L[r],a=F[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]},D={},function(e){return void 0===D[e]&&(D[e]=N(e)),D[e]}),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function q(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function W(e){var t=q(e.theme);return Object.keys(e).map((function(n){if(-1===U.indexOf(n))return null;var r=H(z(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||I;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===Object(R.a)(t)){var i=e.theme.breakpoints||I;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(P,{})}W.propTypes={},W.filterProps=U;function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=q({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.mixins,a=void 0===o?{}:o,c=e.palette,l=void 0===c?{}:c,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=Object(r.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=k(l),g=s(n),v=V(f),y=Object(i.a)({breakpoints:g,direction:"ltr",mixins:Object(u.a)(g,v,a),overrides:{},palette:m,props:{},shadows:O,typography:j(m,p),spacing:v,shape:A,transitions:K.a,zIndex:$.a},h),b=arguments.length,_=new Array(b>1?b-1:0),w=1;w>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function x(){return!0}function E(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(e,t){return O(e,t,0)}function C(e,t){return O(e,t,t)}function O(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A,T,R,P="function"==typeof Symbol&&Symbol.iterator,M=P||"@@iterator";function I(e){this.next=e}function N(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function D(){return{value:void 0,done:!0}}function L(e){return!!z(e)}function F(e){return e&&"function"==typeof e.next}function B(e){var t=z(e);return t&&t.call(e)}function z(e){var t=e&&(P&&e[P]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function q(e){return null==e?X():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new $(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function H(e){return null==e?X().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():Q(e)}function W(e){return null==e?X():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():J(e)}function V(e){return(null==e?X():a(e)?s(e)?e.entrySeq():e:J(e)).toSetSeq()}function K(e){this._array=e,this.size=e.length}function $(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function G(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return A||(A=new K([]))}function Q(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():F(e)?new Y(e).fromEntrySeq():L(e)?new G(e).fromEntrySeq():"object"==typeof e?new $(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function J(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new K(e):F(e)?new Y(e):L(e)?new G(e):void 0}function te(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new I((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:N(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,W(n).map((function(r,i){return e(t,r,i,n)}))):oe(n)?t.call(i,r,H(n).map((function(r,i){return e(t,r,i,n)}))):n}(t,e,"",{"":e}):ie(e)}function ie(e){return Array.isArray(e)?W(e).map(ie).toList():oe(e)?H(e).map(ie).toMap():e}function oe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ae(i[1],e)&&(n||ae(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):i?!ae(t,e.get(r,m)):!ae(e.get(r,m),t))return f=!1,!1}));return f&&e.size===d}function ue(e,t){if(!(this instanceof ue))return new ue(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(T)return T;T=this}}function ce(e,t){if(!e)throw new Error(t)}function le(e,t,n){if(!(this instanceof le))return new le(e,t,n);if(ce(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:N(e,i,n[t?r-i++:i++])}))},t($,H),$.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},$.prototype.has=function(e){return this._object.hasOwnProperty(e)},$.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},$.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new I((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:N(e,a,n[a])}))},$.prototype[h]=!0,t(G,W),G.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},G.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!F(n))return new I(D);var r=0;return new I((function(){var t=n.next();return t.done?t:N(e,r++,t.value)}))},t(Y,W),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return N(e,i,r[i++])}))},t(ue,W),ue.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ue.prototype.get=function(e,t){return this.has(e)?this._value:t},ue.prototype.includes=function(e){return ae(this._value,e)},ue.prototype.slice=function(e,t){var n=this.size;return E(e,t,n)?this:new ue(this._value,C(t,n)-j(e,n))},ue.prototype.reverse=function(){return this},ue.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},ue.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},ue.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:N(e,o++,a)}))},le.prototype.equals=function(e){return e instanceof le?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(fe,n),t(de,fe),t(pe,fe),t(he,fe),fe.Keyed=de,fe.Indexed=pe,fe.Set=he;var me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}function ve(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ge(n)}if("string"===t)return e.length>Ee?function(e){var t=Oe[e];return void 0===t&&(t=ye(e),Ce===je&&(Ce=0,Oe={}),Ce++,Oe[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(ke&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[xe]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[xe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),ke)be.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,xe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[xe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[xe]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Te.prototype.toString=function(){return this.__toString("Map {","}")},Te.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Te.prototype.set=function(e,t){return Ve(this,e,t)},Te.prototype.setIn=function(e,t){return this.updateIn(e,m,(function(){return t}))},Te.prototype.remove=function(e){return Ve(this,e,m)},Te.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return m}))},Te.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Te.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===m,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}ce(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?m:t.get(c,m),f=e(l,n,r,i);return f===l?t:f===m?t.remove(c):(o?We():t).set(c,f)}(this,Yt(e),t,n);return r===m?void 0:r},Te.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},Te.prototype.merge=function(){return Ye(this,void 0,arguments)},Te.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ye(this,t,n)},Te.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Te.prototype.mergeDeep=function(){return Ye(this,Ze,arguments)},Te.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ye(this,Xe(t),n)},Te.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Te.prototype.sort=function(e){return wt(Ft(this,e))},Te.prototype.sortBy=function(e,t){return wt(Ft(this,t,e))},Te.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Te.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Te.prototype.asImmutable=function(){return this.__ensureOwner()},Te.prototype.wasAltered=function(){return this.__altered},Te.prototype.__iterator=function(e,t){return new ze(this,e,t)},Te.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Te.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?He(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Te.isMap=Re;var Pe,Me="@@__IMMUTABLE_MAP__@@",Ie=Te.prototype;function Ne(e,t){this.ownerID=e,this.entries=t}function De(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Le(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ze(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function Ue(e,t){return N(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function He(e,t,n,r){var i=Object.create(Ie);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function We(){return Pe||(Pe=He(0))}function Ve(e,t,n){var r,i;if(e._root){var o=y(g),a=y(v);if(r=Ke(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===m?-1:1:0)}else{if(n===m)return e;i=1,r=new Ne(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?He(i,r):We()}function Ke(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===m?e:(b(s),b(a),new Be(t,r,[i,o]))}function $e(e){return e.constructor===Be||e.constructor===Fe}function Ge(e,t,n,r,i){if(e.keyHash===r)return new Fe(t,r,[e.entry,i]);var o,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n);return new De(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var i=r?e:w(e);return i[t]=n,i}Ie[Me]=!0,Ie.delete=Ie.remove,Ie.removeIn=Ie.deleteIn,Ne.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=tt)return function(e,t,n,r){e||(e=new _);for(var i=new Be(e,ve(n),[n,r]),o=0;o>>e)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Je(o&i-1)].get(e+5,t,n,r)},De.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),u=1<=nt)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Le(e,o+1,a)}(e,d,c,s,h);if(l&&!h&&2===d.length&&$e(d[1^f]))return d[1^f];if(l&&h&&1===d.length&&$e(h))return h;var g=e&&e===this.ownerID,v=l?h?c:c^u:c|u,y=l?h?et(d,f,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},Le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),u=i===m,c=this.nodes,l=c[s];if(u&&!l)return this;var f=Ke(l,e,t+5,n,r,i,o,a);if(f===l)return this;var d=this.count;if(l){if(!f&&--d0&&r<32?pt(0,r,5,null,new ut(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function ot(e){return!(!e||!e[at])}t(it,pe),it.of=function(){return this(arguments)},it.prototype.toString=function(){return this.__toString("List [","]")},it.prototype.get=function(e,t){if((e=S(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?yt(e,t).set(0,n):yt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=y(v);return t>=_t(e._capacity)?r=mt(r,e.__ownerID,0,t,n,o):i=mt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},it.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},it.prototype.insert=function(e,t){return this.splice(e,0,t)},it.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},it.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){yt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new ut([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=gt(this,e);if(!o)for(var u=0;u>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=gt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ct,lt,ft={};function dt(e,t){var n=e._origin,r=e._capacity,i=_t(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,u){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,u=a>n?0:n-a,c=r-a;return c>32&&(c=32),function(){if(u===c)return ft;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,i,o){var s,u=e&&e.array,c=o>n?0:n-o>>i,l=1+(r-o>>i);return l>32&&(l=32),function(){for(;;){if(s){var e=s();if(e!==ft)return e;s=null}if(c===l)return ft;var n=t?--l:c++;s=a(u&&u[n],i-5,o+(n<>>n&31,u=e&&s0){var c=e&&e.array[s],l=mt(c,t,n-5,r,i,o);return l===c?e:((a=gt(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(b(o),a=gt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function gt(e,t){return t&&e&&t===e.ownerID?e:new ut(e?e.array.slice():[],t)}function vt(e,t){if(t>=_t(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function yt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new ut(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=5);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=_t(o),d=_t(s);d>=1<f?new ut([],r):p;if(p&&d>f&&a5;g-=5){var v=f>>>g&31;m=m.array[v]=gt(m.array[v],r)}m.array[f>>>5&31]=p}if(s=d)a-=d,s-=d,u=5,c=null,h=h&&h.removeBefore(r,0,a);else if(a>i||d>>u&31;if(y!==d>>>u&31)break;y&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&do&&(o=c.size),a(u)||(c=c.map((function(e){return re(e)}))),r.push(c)}return o>e.size&&(e=e.setSize(o)),Qe(e,t,r)}function _t(e){return e<32?0:e-1>>>5<<5}function wt(e){return null==e?xt():kt(e)?e:xt().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function kt(e){return Re(e)&&l(e)}function St(e,t,n,r){var i=Object.create(wt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function xt(){return lt||(lt=St(We(),ht()))}function Et(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),u=void 0!==s;if(n===m){if(!u)return e;a.size>=32&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):St(r,i)}function jt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function Tt(e){var t=Kt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=$t,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new I((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Rt(e,t,n){var r=Kt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,m);return o===m?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new I((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return N(r,s,t.call(n,a[1],s,e),i)}))},r}function Pt(e,t){var n=Kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Tt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=$t,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Mt(e,t,n,r){var i=Kt(e);return r&&(i.has=function(r){var i=e.get(r,m);return i!==m&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,m);return o!==m&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new I((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return N(i,r?c:s++,l,o)}}))},i}function It(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),E(t,n,i))return e;var o=j(t,i),a=C(n,i);if(o!=o||a!=a)return It(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=Kt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&Z(e)&&s>=0&&(c.get=function(t,n){return(t=S(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||1===t?e:N(t,u-1,0===t?void 0:e.value[1],e)}))},c}function Nt(e,t,n,r){var i=Kt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),u=!0,c=0;return new I((function(){var e,o,l;do{if((e=s.next()).done)return r||1===i?e:N(i,c++,0===i?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return 2===i?e:N(i,o,l,e)}))},i}function Dt(e,t){var n=s(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?Q(e):J(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||u(e)&&u(o))return o}var c=new K(i);return n?c=c.toKeyedSeq():u(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function Lt(e,t,n){var r=Kt(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(u,c){var l=this;u.__iterate((function(i,u){return(!t||c0}function Ut(e,t,r){var i=Kt(e);return i.size=new K(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),B(i?e.reverse():e)})),a=0,s=!1;return new I((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:N(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function qt(e,t){return Z(e)?t:e.constructor(t)}function Ht(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return Ae(e.size),k(e)}function Vt(e){return s(e)?r:u(e)?i:o}function Kt(e){return Object.create((s(e)?H:u(e)?W:V).prototype)}function $t(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Gt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):wn(e,t)},gn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ae(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):wn(t,n)},gn.prototype.pop=function(){return this.slice(1)},gn.prototype.unshift=function(){return this.push.apply(this,arguments)},gn.prototype.unshiftAll=function(e){return this.pushAll(e)},gn.prototype.shift=function(){return this.pop.apply(this,arguments)},gn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kn()},gn.prototype.slice=function(e,t){if(E(e,t,this.size))return this;var n=j(e,this.size);if(C(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):wn(r,i)},gn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},gn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},gn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new I((function(){if(r){var t=r.value;return r=r.next,N(e,n++,t)}return{value:void 0,done:!0}}))},gn.isStack=vn;var yn,bn="@@__IMMUTABLE_STACK__@@",_n=gn.prototype;function wn(e,t,n,r){var i=Object.create(_n);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kn(){return yn||(yn=wn(0))}function Sn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}_n[bn]=!0,_n.withMutations=Ie.withMutations,_n.asMutable=Ie.asMutable,_n.asImmutable=Ie.asImmutable,_n.wasAltered=Ie.wasAltered,n.Iterator=I,Sn(n,{toArray:function(){Ae(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ct(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new jt(this,!0)},toMap:function(){return Te(this.toKeyedSeq())},toObject:function(){Ae(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return wt(this.toKeyedSeq())},toOrderedSet:function(){return ln(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ot(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(s(this)?this.valueSeq():this)},toList:function(){return it(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return qt(this,Dt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ae(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return qt(this,Mt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ae(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ae(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qt(this,Rt(this,e,t))},reduce:function(e,t,n){var r,i;return Ae(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return qt(this,Pt(this,!0))},slice:function(e,t){return qt(this,It(this,e,t,!0))},some:function(e,t){return!this.every(On(e),t)},sort:function(e){return qt(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Te().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new K(e._cache);var t=e.toSeq().map(Cn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(On(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(x)},flatMap:function(e,t){return qt(this,function(e,t,n){var r=Vt(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qt(this,Lt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=Yt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,m):m)===m)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(l(e)?wt():Te()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=Vt(e);return i.map((function(t){return qt(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,m)!==m},hasIn:function(e){return this.getIn(e,m)!==m},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(jn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?An(e):Pn)},minBy:function(e,t){return Bt(this,t?An(t):Pn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return qt(this,Nt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(On(e),t)},sortBy:function(e,t){return qt(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return qt(this,function(e,t,n){var r=Kt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new I((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?2===r?e:N(r,u,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(On(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0;return function(e,t){return t=me(t,3432918353),t=me(t<<15|t>>>-15,461845907),t=me(t<<13|t>>>-13,5),t=me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ge((t=me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Mn(ve(e),ve(t))|0}:function(e,t){r=r+Mn(ve(e),ve(t))|0}:t?function(e){r=31*r+ve(e)|0}:function(e){r=r+ve(e)|0}),r)}(this))}});var xn=n.prototype;xn[f]=!0,xn[M]=xn.values,xn.__toJS=xn.toArray,xn.__toStringMapper=Tn,xn.inspect=xn.toSource=function(){return this.toString()},xn.chain=xn.flatMap,xn.contains=xn.includes,Sn(r,{flip:function(){return qt(this,Tt(this))},mapEntries:function(e,t){var n=this,r=0;return qt(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var En=r.prototype;function jn(e,t){return t}function Cn(e,t){return[t,e]}function On(e){return function(){return!e.apply(this,arguments)}}function An(e){return function(){return-e.apply(this,arguments)}}function Tn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Rn(){return w(arguments)}function Pn(e,t){return et?-1:0}function Mn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return En[d]=!0,En[M]=xn.entries,En.__toJS=xn.toObject,En.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Tn(e)},Sn(i,{toKeyedSeq:function(){return new jt(this,!1)},filter:function(e,t){return qt(this,Mt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qt(this,Pt(this,!1))},slice:function(e,t){return qt(this,It(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return qt(this,1===n?r:r.concat(w(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return qt(this,Lt(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e>>24]^l[h>>>16&255]^f[m>>>8&255]^d[255&g]^t[v++],a=c[h>>>24]^l[m>>>16&255]^f[g>>>8&255]^d[255&p]^t[v++],s=c[m>>>24]^l[g>>>16&255]^f[p>>>8&255]^d[255&h]^t[v++],u=c[g>>>24]^l[p>>>16&255]^f[h>>>8&255]^d[255&m]^t[v++],p=o,h=a,m=s,g=u;return o=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[h>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&p])^t[v++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[v++],u=(r[g>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var l=e[a],f=e[l],d=e[f],p=257*e[c]^16843008*c;i[0][a]=p<<24|p>>>8,i[1][a]=p<<16|p>>>16,i[2][a]=p<<8|p>>>24,i[3][a]=p,p=16843009*d^65537*f^257*l^16843008*a,o[0][c]=p<<24|p>>>8,o[1][c]=p<<16|p>>>16,o[2][c]=p<<8|p>>>24,o[3][c]=p,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,n){var r=n(3).Buffer,i=n(140);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var l=new i;l.update(c),l.update(e),t&&l.update(t),c=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f0){var p=u.length-o,h=Math.min(o,c.length-f);c.copy(u,p,f,f+h),o-=h}}return c.fill(0),{key:s,iv:u}}},function(e,t,n){"use strict";var r=n(16),i=n(32),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<=a;l--)u=(u<<1)+r[l];c.push(u)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=i;p>0;p--){for(a=0;a=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++;if(c>=0&&l++,u=u.dblp(l),c<0)break;var f=a[c];s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,n,r,i){var s,u,c,l=this._wnafT1,f=this._wnafT2,d=this._wnafT3,p=0;for(s=0;s=1;s-=2){var m=s-1,g=s;if(1===l[m]&&1===l[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=a(n[m],n[g]);for(p=Math.max(b[0].length,p),d[m]=new Array(p),d[g]=new Array(p),u=0;u=0;s--){for(var x=0;s>=0;){var E=!0;for(u=0;u=0&&x++,k=k.dblp(x),s<0)break;for(u=0;u0?c=f[u][j-1>>1]:j<0&&(c=f[u][-j-1>>1].neg()),k="affine"===c.type?k.mixedAdd(c):k.add(c))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i0;--t){a=a.twice();var s=i.testBit(t);s!=n.testBit(t)&&(a=a.add(s?this:o))}return a},a.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},s.prototype.getQ=function(){return this.q},s.prototype.getA=function(){return this.a},s.prototype.getB=function(){return this.b},s.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},s.prototype.getInfinity=function(){return this.infinity},s.prototype.fromBigInteger=function(e){return new o(this.q,e)},s.prototype.reduce=function(e){this.reducer.reduce(e)},s.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),n=e.getY().toBigInteger().toString(16),r=this.getQ().toString(16).length;for(r%2!=0&&r++;t.length128&&(-1==this.q.shiftRight(e-64).intValue()&&(this.r=r.ONE.shiftLeft(e).subtract(this.q)));return this.r},o.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))},o.prototype.modReduce=function(e){if(null!=this.getR()){for(var t=q.bitLength();e.bitLength()>t+1;){var n=e.shiftRight(t),i=e.subtract(n.shiftLeft(t));this.getR().equals(r.ONE)||(n=n.multiply(this.getR())),e=n.add(i)}for(;e.compareTo(q)>=0;)e=e.subtract(q)}else e=e.mod(q);return e},o.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new o(this.q,this.x.modPow(this.q.shiftRight(2).add(r.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(r.ONE),n=t.shiftRight(1);if(!this.x.modPow(n,this.q).equals(r.ONE))return null;var i,a,s=t.shiftRight(2).shiftLeft(1).add(r.ONE),u=this.x,c=modDouble(modDouble(u));do{var l;do{l=new r(this.q.bitLength(),new SecureRandom)}while(l.compareTo(this.q)>=0||!l.multiply(l).subtract(c).modPow(n,this.q).equals(t));var f=this.lucasSequence(l,u,s);if(i=f[0],a=f[1],this.modMult(a,a).equals(c))return a.testBit(0)&&(a=a.add(q)),a=a.shiftRight(1),new o(q,a)}while(i.equals(r.ONE)||i.equals(t));return null},o.prototype.lucasSequence=function(e,t,n){for(var i=n.bitLength(),o=n.getLowestSetBit(),a=r.ONE,s=r.TWO,u=e,c=r.ONE,l=r.ONE,f=i-1;f>=o+1;--f)c=this.modMult(c,l),n.testBit(f)?(l=this.modMult(c,t),a=this.modMult(a,u),s=this.modReduce(u.multiply(s).subtract(e.multiply(c))),u=this.modReduce(u.multiply(u).subtract(l.shiftLeft(1)))):(l=c,a=this.modReduce(a.multiply(s).subtract(c)),u=this.modReduce(u.multiply(s).subtract(e.multiply(c))),s=this.modReduce(s.multiply(s).subtract(c.shiftLeft(1))));c=this.modMult(c,l),l=this.modMult(c,t),a=this.modReduce(a.multiply(s).subtract(c)),s=this.modReduce(u.multiply(s).subtract(e.multiply(c))),c=this.modMult(c,l);for(f=1;f<=o;++f)a=this.modMult(a,s),s=this.modReduce(s.multiply(s).subtract(c.shiftLeft(1))),c=this.modMult(c,c);return[a,s]};t={ECCurveFp:s,ECPointFp:a,ECFieldElementFp:o};e.exports=t},function(e,t,n){e.exports={read:function(e,t){return c.read(e,t)},readSSHPrivate:function(e,t,u){var c=(t=new f({buffer:t})).readCString();i.strictEqual(c,"openssh-key-v1","bad magic string");var p=t.readString(),h=t.readString(),m=t.readBuffer();if(1!==t.readInt())throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var g=t.readBuffer();if("public"===e)return i.ok(t.atEnd(),"excess bytes left after key"),l.read(g);var v=t.readBuffer();i.ok(t.atEnd(),"excess bytes left after key");var y=new f({buffer:m});switch(h){case"none":if("none"!==p)throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var b=y.readBuffer(),_=y.readInt(),w=a.opensshCipherInfo(p);if(void 0===r&&(r=n(272)),"string"==typeof u.passphrase&&(u.passphrase=o.from(u.passphrase,"utf-8")),!o.isBuffer(u.passphrase))throw new d.KeyEncryptedError(u.filename,"OpenSSH");var k=new Uint8Array(u.passphrase),S=new Uint8Array(b),x=new Uint8Array(w.keySize+w.blockSize);if(0!==r.pbkdf(k,k.length,S,S.length,x,x.length,_))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var E=(x=o.from(x)).slice(0,w.keySize),j=x.slice(w.keySize,w.keySize+w.blockSize),C=s.createDecipheriv(w.opensslName,E,j);C.setAutoPadding(!1);var O,A=[];for(C.once("error",(function(e){if(-1!==e.toString().indexOf("bad decrypt"))throw new Error("Incorrect passphrase supplied, could not decrypt key");throw e})),C.write(v),C.end();null!==(O=C.read());)A.push(O);v=o.concat(A);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+h+'"')}var T=(t=new f({buffer:v})).readInt(),R=t.readInt();if(T!==R)throw new Error("Incorrect passphrase supplied, could not decrypt key");var P={},M=l.readInternal(P,"private",t.remainder());t.skip(P.consumed);var I=t.readString();return M.comment=I,M},write:function(e,t){var c;c=u.isPrivateKey(e)?e.toPublic():e;var l,d,p="none",h="none",m=o.alloc(0),g={blockSize:8};void 0!==t&&("string"==typeof(l=t.passphrase)&&(l=o.from(l,"utf-8")),void 0!==l&&(i.buffer(l,"options.passphrase"),i.optionalString(t.cipher,"options.cipher"),void 0===(p=t.cipher)&&(p="aes128-ctr"),g=a.opensshCipherInfo(p),h="bcrypt"));if(u.isPrivateKey(e)){d=new f({});var v=s.randomBytes(4).readUInt32BE(0);d.writeInt(v),d.writeInt(v),d.write(e.toBuffer("rfc4253")),d.writeString(e.comment||"");for(var y=1;d._offset%g.blockSize!=0;)d.writeChar(y++);d=d.toBuffer()}switch(h){case"none":break;case"bcrypt":var b=s.randomBytes(16),_=new f({});_.writeBuffer(b),_.writeInt(16),m=_.toBuffer(),void 0===r&&(r=n(272));var w=new Uint8Array(l),k=new Uint8Array(b),S=new Uint8Array(g.keySize+g.blockSize);if(0!==r.pbkdf(w,w.length,k,k.length,S,S.length,16))throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");var x=(S=o.from(S)).slice(0,g.keySize),E=S.slice(g.keySize,g.keySize+g.blockSize),j=s.createCipheriv(g.opensslName,x,E);j.setAutoPadding(!1);var C,O=[];for(j.once("error",(function(e){throw e})),j.write(d),j.end();null!==(C=j.read());)O.push(C);d=o.concat(O);break;default:throw new Error("Unsupported kdf "+h)}var A,T=new f({});T.writeCString("openssh-key-v1"),T.writeString(p),T.writeString(h),T.writeBuffer(m),T.writeInt(1),T.writeBuffer(c.toBuffer("rfc4253")),d&&T.writeBuffer(d);T=T.toBuffer(),A=u.isPrivateKey(e)?"OPENSSH PRIVATE KEY":"OPENSSH PUBLIC KEY";var R=T.toString("base64"),P=R.length+R.length/70+18+16+2*A.length+10;T=o.alloc(P);var M=0;M+=T.write("-----BEGIN "+A+"-----\n",M);for(var I=0;IR.length&&(N=R.length),M+=T.write(R.slice(I,N),M),T[M++]=10,I=N}return M+=T.write("-----END "+A+"-----\n",M),T.slice(0,M)}};var r,i=n(10),o=(n(43),n(12).Buffer),a=(n(27),n(23)),s=n(15),u=(n(21),n(22)),c=n(49),l=n(50),f=n(69),d=n(39)},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(7),n(5))},function(e,t,n){"use strict";t.a={black:"#000",white:"#fff"}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return f}));var r=n(1),i=n(8),o=n(0),a=n(17),s=n(28),u=n(192),c=Object(u.a)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var l=o.forwardRef((function(e,t){var n=e.alt,s=e.children,u=e.classes,l=e.className,f=e.component,d=void 0===f?"div":f,p=e.imgProps,h=e.sizes,m=e.src,g=e.srcSet,v=e.variant,y=void 0===v?"circular":v,b=Object(i.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),_=null,w=function(e){var t=e.src,n=e.srcSet,r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),i}({src:m,srcSet:g}),k=m||g,S=k&&"error"!==w;return _=S?o.createElement("img",Object(r.a)({alt:n,src:m,srcSet:g,sizes:h,className:u.img},p)):null!=s?s:k&&n?n[0]:o.createElement(c,{className:u.fallback}),o.createElement(d,Object(r.a)({className:Object(a.a)(u.root,u.system,u[y],l,!S&&u.colorDefault),ref:t},b),_)})),f=Object(s.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(l)},function(e,t,n){"use strict";(function(e){t.a=function(e,t){}}).call(this,n(7))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n9?parseInt(window.mooConfig.mooChat.number_of_messages_fetched_window_first_time):10},setChatSoundState:function(e){window.mooConfig.mooChat.settings.sound=e==o.default.SOUND_ENABLE},setFirsTimeUsing:function(e){window.mooConfig.mooChat.load_bar_in_offline_mode_for_all_first_time_users=o.default.NO_STRING},setChatStatus:function(e){window.mooConfig.mooChat.settings.status=e},setIsMobile:function(e){window.hasOwnProperty("mooConfig")&&window.mooConfig.hasOwnProperty("mooChat")&&(window.mooConfig.mooChat.isMobile=e)},waitingVideoCallTimeout:function(){var e=parseInt(window.mooConfig.mooChat.chat_waiting_video_call_time_out);return e>0?e:30},isRTL:function(){if(window.hasOwnProperty("mooConfig"))return window.mooConfig.mooChat.isRTL},isApp:function(){if(window.hasOwnProperty("mooConfig"))return window.mooConfig.mooChat.isApp},isAndroid:function(){if(window.hasOwnProperty("mooConfig"))return window.mooConfig.mooChat.isAndroid},isIOS:function(){if(window.hasOwnProperty("mooConfig"))return window.mooConfig.mooChat.isIOS},getVideoSetting:function(e){if(a.hasOwnProperty(e))return a[e];var t=document.getElementById("root");return null!=t&&t.getAttribute(e)?(a[e]=t.getAttribute(e),a[e]):null},isActiveMobiRoom:function(){return void 0!==window.mooConfig.mooChat.active_mobi_room},getActiveMobiRoom:function(){return parseInt(window.mooConfig.mooChat.active_mobi_room)},getTypeActiveMobiRoom:function(){return window.mooConfig.mooChat.active_mobi_room_type}};t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"F",(function(){return r})),n.d(t,"T",(function(){return i})),n.d(t,"__",(function(){return o})),n.d(t,"add",(function(){return c})),n.d(t,"addIndex",(function(){return h})),n.d(t,"adjust",(function(){return g})),n.d(t,"all",(function(){return S})),n.d(t,"allPass",(function(){return X})),n.d(t,"always",(function(){return Q})),n.d(t,"and",(function(){return J})),n.d(t,"any",(function(){return te})),n.d(t,"anyPass",(function(){return ne})),n.d(t,"ap",(function(){return re})),n.d(t,"aperture",(function(){return ae})),n.d(t,"append",(function(){return se})),n.d(t,"apply",(function(){return ue})),n.d(t,"applySpec",(function(){return fe})),n.d(t,"applyTo",(function(){return de})),n.d(t,"ascend",(function(){return pe})),n.d(t,"assoc",(function(){return ve})),n.d(t,"assocPath",(function(){return ge})),n.d(t,"binary",(function(){return be})),n.d(t,"bind",(function(){return T})),n.d(t,"both",(function(){return Se})),n.d(t,"call",(function(){return xe})),n.d(t,"chain",(function(){return Ce})),n.d(t,"clamp",(function(){return Oe})),n.d(t,"clone",(function(){return Pe})),n.d(t,"collectBy",(function(){return Me})),n.d(t,"comparator",(function(){return Ie})),n.d(t,"complement",(function(){return De})),n.d(t,"compose",(function(){return He})),n.d(t,"composeWith",(function(){return Ge})),n.d(t,"concat",(function(){return ht})),n.d(t,"cond",(function(){return mt})),n.d(t,"construct",(function(){return yt})),n.d(t,"constructN",(function(){return vt})),n.d(t,"converge",(function(){return bt})),n.d(t,"count",(function(){return _t})),n.d(t,"countBy",(function(){return St})),n.d(t,"curry",(function(){return gt})),n.d(t,"curryN",(function(){return p})),n.d(t,"dec",(function(){return xt})),n.d(t,"defaultTo",(function(){return Et})),n.d(t,"descend",(function(){return jt})),n.d(t,"difference",(function(){return At})),n.d(t,"differenceWith",(function(){return Tt})),n.d(t,"dissoc",(function(){return Mt})),n.d(t,"dissocPath",(function(){return Pt})),n.d(t,"divide",(function(){return It})),n.d(t,"drop",(function(){return Dt})),n.d(t,"dropLast",(function(){return Ut})),n.d(t,"dropLastWhile",(function(){return Wt})),n.d(t,"dropRepeats",(function(){return Yt})),n.d(t,"dropRepeatsWith",(function(){return Gt})),n.d(t,"dropWhile",(function(){return Xt})),n.d(t,"either",(function(){return Jt})),n.d(t,"empty",(function(){return en})),n.d(t,"endsWith",(function(){return nn})),n.d(t,"eqBy",(function(){return rn})),n.d(t,"eqProps",(function(){return on})),n.d(t,"equals",(function(){return et})),n.d(t,"evolve",(function(){return an})),n.d(t,"filter",(function(){return lt})),n.d(t,"find",(function(){return un})),n.d(t,"findIndex",(function(){return ln})),n.d(t,"findLast",(function(){return dn})),n.d(t,"findLastIndex",(function(){return hn})),n.d(t,"flatten",(function(){return mn})),n.d(t,"flip",(function(){return gn})),n.d(t,"forEach",(function(){return vn})),n.d(t,"forEachObjIndexed",(function(){return yn})),n.d(t,"fromPairs",(function(){return bn})),n.d(t,"groupBy",(function(){return _n})),n.d(t,"groupWith",(function(){return wn})),n.d(t,"gt",(function(){return kn})),n.d(t,"gte",(function(){return Sn})),n.d(t,"has",(function(){return En})),n.d(t,"hasIn",(function(){return jn})),n.d(t,"hasPath",(function(){return xn})),n.d(t,"head",(function(){return We})),n.d(t,"identical",(function(){return Cn})),n.d(t,"identity",(function(){return Ke})),n.d(t,"ifElse",(function(){return On})),n.d(t,"inc",(function(){return An})),n.d(t,"includes",(function(){return Tn})),n.d(t,"indexBy",(function(){return Rn})),n.d(t,"indexOf",(function(){return Pn})),n.d(t,"init",(function(){return Mn})),n.d(t,"innerJoin",(function(){return In})),n.d(t,"insert",(function(){return Nn})),n.d(t,"insertAll",(function(){return Dn})),n.d(t,"intersection",(function(){return zn})),n.d(t,"intersperse",(function(){return Un})),n.d(t,"into",(function(){return $n})),n.d(t,"invert",(function(){return Gn})),n.d(t,"invertObj",(function(){return Yn})),n.d(t,"invoker",(function(){return Zn})),n.d(t,"is",(function(){return Xn})),n.d(t,"isEmpty",(function(){return Qn})),n.d(t,"isNil",(function(){return me})),n.d(t,"join",(function(){return Jn})),n.d(t,"juxt",(function(){return er})),n.d(t,"keys",(function(){return W})),n.d(t,"keysIn",(function(){return tr})),n.d(t,"last",(function(){return $t})),n.d(t,"lastIndexOf",(function(){return nr})),n.d(t,"length",(function(){return ir})),n.d(t,"lens",(function(){return or})),n.d(t,"lensIndex",(function(){return sr})),n.d(t,"lensPath",(function(){return lr})),n.d(t,"lensProp",(function(){return fr})),n.d(t,"lift",(function(){return ke})),n.d(t,"liftN",(function(){return we})),n.d(t,"lt",(function(){return dr})),n.d(t,"lte",(function(){return pr})),n.d(t,"map",(function(){return V})),n.d(t,"mapAccum",(function(){return hr})),n.d(t,"mapAccumRight",(function(){return mr})),n.d(t,"mapObjIndexed",(function(){return gr})),n.d(t,"match",(function(){return vr})),n.d(t,"mathMod",(function(){return yr})),n.d(t,"max",(function(){return x})),n.d(t,"maxBy",(function(){return br})),n.d(t,"mean",(function(){return wr})),n.d(t,"median",(function(){return kr})),n.d(t,"memoizeWith",(function(){return Sr})),n.d(t,"mergeAll",(function(){return xr})),n.d(t,"mergeDeepLeft",(function(){return Cr})),n.d(t,"mergeDeepRight",(function(){return Or})),n.d(t,"mergeDeepWith",(function(){return Ar})),n.d(t,"mergeDeepWithKey",(function(){return jr})),n.d(t,"mergeLeft",(function(){return Tr})),n.d(t,"mergeRight",(function(){return Rr})),n.d(t,"mergeWith",(function(){return Pr})),n.d(t,"mergeWithKey",(function(){return Er})),n.d(t,"min",(function(){return Mr})),n.d(t,"minBy",(function(){return Ir})),n.d(t,"modify",(function(){return Dr})),n.d(t,"modifyPath",(function(){return Nr})),n.d(t,"modulo",(function(){return Lr})),n.d(t,"move",(function(){return Fr})),n.d(t,"multiply",(function(){return Br})),n.d(t,"nAry",(function(){return ye})),n.d(t,"partialObject",(function(){return zr})),n.d(t,"negate",(function(){return Ur})),n.d(t,"none",(function(){return qr})),n.d(t,"not",(function(){return Ne})),n.d(t,"nth",(function(){return $})),n.d(t,"nthArg",(function(){return Hr})),n.d(t,"o",(function(){return Wr})),n.d(t,"objOf",(function(){return Hn})),n.d(t,"of",(function(){return Kr})),n.d(t,"omit",(function(){return $r})),n.d(t,"on",(function(){return Gr})),n.d(t,"once",(function(){return Yr})),n.d(t,"or",(function(){return Qt})),n.d(t,"otherwise",(function(){return Xr})),n.d(t,"over",(function(){return Jr})),n.d(t,"pair",(function(){return ei})),n.d(t,"partial",(function(){return ni})),n.d(t,"partialRight",(function(){return ri})),n.d(t,"partition",(function(){return ii})),n.d(t,"path",(function(){return cr})),n.d(t,"paths",(function(){return ur})),n.d(t,"pathEq",(function(){return oi})),n.d(t,"pathOr",(function(){return ai})),n.d(t,"pathSatisfies",(function(){return si})),n.d(t,"pick",(function(){return ui})),n.d(t,"pickAll",(function(){return ci})),n.d(t,"pickBy",(function(){return li})),n.d(t,"pipe",(function(){return Ue})),n.d(t,"pipeWith",(function(){return $e})),n.d(t,"pluck",(function(){return Y})),n.d(t,"prepend",(function(){return fi})),n.d(t,"product",(function(){return di})),n.d(t,"project",(function(){return hi})),n.d(t,"promap",(function(){return vi})),n.d(t,"prop",(function(){return G})),n.d(t,"propEq",(function(){return yi})),n.d(t,"propIs",(function(){return bi})),n.d(t,"propOr",(function(){return _i})),n.d(t,"propSatisfies",(function(){return wi})),n.d(t,"props",(function(){return ki})),n.d(t,"range",(function(){return Si})),n.d(t,"reduce",(function(){return Z})),n.d(t,"reduceBy",(function(){return kt})),n.d(t,"reduceRight",(function(){return xi})),n.d(t,"reduceWhile",(function(){return Ei})),n.d(t,"reduced",(function(){return ji})),n.d(t,"reject",(function(){return ft})),n.d(t,"remove",(function(){return Rt})),n.d(t,"repeat",(function(){return Oi})),n.d(t,"replace",(function(){return Ai})),n.d(t,"reverse",(function(){return qe})),n.d(t,"scan",(function(){return Ti})),n.d(t,"sequence",(function(){return Ri})),n.d(t,"set",(function(){return Pi})),n.d(t,"slice",(function(){return Be})),n.d(t,"sort",(function(){return Mi})),n.d(t,"sortBy",(function(){return Ii})),n.d(t,"sortWith",(function(){return Ni})),n.d(t,"split",(function(){return Di})),n.d(t,"splitAt",(function(){return Li})),n.d(t,"splitEvery",(function(){return Fi})),n.d(t,"splitWhen",(function(){return Bi})),n.d(t,"splitWhenever",(function(){return zi})),n.d(t,"startsWith",(function(){return Ui})),n.d(t,"subtract",(function(){return qi})),n.d(t,"sum",(function(){return _r})),n.d(t,"symmetricDifference",(function(){return Hi})),n.d(t,"symmetricDifferenceWith",(function(){return Wi})),n.d(t,"tail",(function(){return ze})),n.d(t,"take",(function(){return Ft})),n.d(t,"takeLast",(function(){return tn})),n.d(t,"takeLastWhile",(function(){return Vi})),n.d(t,"takeWhile",(function(){return $i})),n.d(t,"tap",(function(){return Yi})),n.d(t,"test",(function(){return Zi})),n.d(t,"andThen",(function(){return Xi})),n.d(t,"times",(function(){return Ci})),n.d(t,"toLower",(function(){return Qi})),n.d(t,"toPairs",(function(){return Ji})),n.d(t,"toPairsIn",(function(){return eo})),n.d(t,"toString",(function(){return pt})),n.d(t,"toUpper",(function(){return to})),n.d(t,"transduce",(function(){return no})),n.d(t,"transpose",(function(){return ro})),n.d(t,"traverse",(function(){return io})),n.d(t,"trim",(function(){return ao})),n.d(t,"tryCatch",(function(){return so})),n.d(t,"type",(function(){return Te})),n.d(t,"unapply",(function(){return uo})),n.d(t,"unary",(function(){return co})),n.d(t,"uncurryN",(function(){return lo})),n.d(t,"unfold",(function(){return fo})),n.d(t,"union",(function(){return po})),n.d(t,"unionWith",(function(){return go})),n.d(t,"uniq",(function(){return Bn})),n.d(t,"uniqBy",(function(){return Fn})),n.d(t,"uniqWith",(function(){return mo})),n.d(t,"unless",(function(){return vo})),n.d(t,"unnest",(function(){return yo})),n.d(t,"until",(function(){return bo})),n.d(t,"unwind",(function(){return _o})),n.d(t,"update",(function(){return ar})),n.d(t,"useWith",(function(){return pi})),n.d(t,"values",(function(){return ce})),n.d(t,"valuesIn",(function(){return wo})),n.d(t,"view",(function(){return So})),n.d(t,"when",(function(){return xo})),n.d(t,"where",(function(){return Eo})),n.d(t,"whereAny",(function(){return jo})),n.d(t,"whereEq",(function(){return Co})),n.d(t,"without",(function(){return Oo})),n.d(t,"xor",(function(){return Ao})),n.d(t,"xprod",(function(){return To})),n.d(t,"zip",(function(){return Ro})),n.d(t,"zipObj",(function(){return Po})),n.d(t,"zipWith",(function(){return Mo})),n.d(t,"thunkify",(function(){return Io}));var r=function(){return!1},i=function(){return!0},o={"@@functional/placeholder":!0};function a(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function s(e){return function t(n){return 0===arguments.length||a(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return a(n)?t:s((function(t){return e(n,t)}));default:return a(n)&&a(r)?t:a(n)?s((function(t){return e(t,r)})):a(r)?s((function(t){return e(n,t)})):e(n,r)}}}var c=u((function(e,t){return Number(e)+Number(t)}));function l(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n=arguments.length)?u=t[s]:(u=arguments[i],i+=1),r[s]=u,a(u)||(o-=1),s+=1}return o<=0?n.apply(this,r):f(o,d(e,r,n))}}var p=u((function(e,t){return 1===e?s(t):f(e,d(e,[],t))})),h=s((function(e){return p(e.length,(function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,l(arguments,[t,r]));return t+=1,e},e.apply(this,i)}))}));function m(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return a(n)?t:u((function(t,r){return e(n,t,r)}));case 2:return a(n)&&a(r)?t:a(n)?u((function(t,n){return e(t,r,n)})):a(r)?u((function(t,r){return e(n,t,r)})):s((function(t){return e(n,r,t)}));default:return a(n)&&a(r)&&a(i)?t:a(n)&&a(r)?u((function(t,n){return e(t,n,i)})):a(n)&&a(i)?u((function(t,n){return e(t,r,n)})):a(r)&&a(i)?u((function(t,r){return e(n,t,r)})):a(n)?s((function(t){return e(t,r,i)})):a(r)?s((function(t){return e(n,t,i)})):a(i)?s((function(t){return e(n,r,t)})):e(n,r,i)}}}var g=m((function(e,t,n){var r=n.length;if(e>=r||e<-r)return n;var i=(r+e)%r,o=l(n);return o[i]=t(n[i]),o})),v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function y(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function b(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var i=0;ie?t:e}));function E(e,t){for(var n=0,r=t.length,i=Array(r);n0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),O=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function A(e){return new O(e)}var T=u((function(e,t){return f(e.length,(function(){return e.apply(t,arguments)}))}));function R(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function P(e,t,n,r){return e["@@transducer/result"](n[r](T(e["@@transducer/step"],e),t))}var M="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function I(e,t,n){if("function"==typeof e&&(e=A(e)),C(n))return function(e,t,n){for(var r=0,i=n.length;r=0;)L(t=U[n],e)&&!H(r,t)&&(r[r.length]=t),n-=1;return r})):s((function(e){return Object(e)!==e?[]:Object.keys(e)})),V=u(b(["fantasy-land/map","map"],D,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return p(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return I((function(n,r){return n[r]=e(t[r]),n}),{},W(t));default:return E(e,t)}}))),K=Number.isInteger||function(e){return e<<0===e},$=u((function(e,t){var n=e<0?t.length+e:e;return j(t)?t.charAt(n):t[n]})),G=u((function(e,t){if(null!=t)return K(e)?$(e,t):t[e]})),Y=u((function(e,t){return V(G(e),t)})),Z=m(I),X=s((function(e){return p(Z(x,0,Y("length",e)),(function(){for(var t=0,n=e.length;t=0?r:0);ni?1:0}));function he(e,t,n){if(K(e)&&v(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}var me=s((function(e){return null==e})),ge=m((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var o=!me(r)&&L(i,r)?r[i]:K(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}return he(i,n,r)})),ve=m((function(e,t,n){return ge([e],t,n)})),ye=u((function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,u){return t.call(this,e,n,r,i,o,a,s,u)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.call(this,e,n,r,i,o,a,s,u,c)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.call(this,e,n,r,i,o,a,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),be=s((function(e){return ye(2,e)}));function _e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var we=u((function(e,t){var n=p(e,t);return p(e,(function(){return I(re,V(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),ke=s((function(e){return we(e.length,e)})),Se=u((function(e,t){return _e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ke(J)(e,t)})),xe=s((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))}));function Ee(e){return function t(n){for(var r,i,o,a=[],s=0,u=n.length;st)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n}));function Ae(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var Te=s((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Re(e,t,n,r){var i=function(i){for(var o=t.length,a=0;a=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size===t.size&&Qe(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Qe(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=W(e);if(a.length!==W(t).length)return!1;var s=n.concat([e]),u=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!L(c,t)||!Je(t[c],e[c],s,u))return!1;o-=1}return!0}var et=u((function(e,t){return Je(e,t,[],[])}));function tt(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}function rt(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var it=function(e){return(e<10?"0":"")+e},ot="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+it(e.getUTCMonth()+1)+"-"+it(e.getUTCDate())+"T"+it(e.getUTCHours())+":"+it(e.getUTCMinutes())+":"+it(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function at(e){return function(){return!e.apply(this,arguments)}}function st(e,t){for(var n=0,r=t.length,i=[];n":dt(n,r)},r=function(e,t){return E((function(t){return rt(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+E(n,e).join(", ")+"))";case"[object Array]":return"["+E(n,e).concat(r(e,ft((function(e){return/^\d+$/.test(e)}),W(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):rt(ot(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":rt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,W(e)).join(", ")+"}"}}var pt=s((function(e){return dt(e,[])})),ht=u((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(pt(t)+" is not an array")}if(j(e)){if(j(t))return e+t;throw new TypeError(pt(t)+" is not a string")}if(null!=e&&_e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&_e(e.concat))return e.concat(t);throw new TypeError(pt(e)+' does not have a method named "concat" or "fantasy-land/concat"')})),mt=s((function(e){return f(Z(x,0,V((function(e){return e[0].length}),e)),(function(){for(var t=0;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:gt(ye(e,(function(e,n,r,i,o,a,s,u,c,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,o);case 6:return new t(e,n,r,i,o,a);case 7:return new t(e,n,r,i,o,a,s);case 8:return new t(e,n,r,i,o,a,s,u);case 9:return new t(e,n,r,i,o,a,s,u,c);case 10:return new t(e,n,r,i,o,a,s,u,c,l)}})))})),yt=s((function(e){return vt(e.length,e)})),bt=u((function(e,t){return p(Z(x,0,Y("length",t)),(function(){var n=arguments,r=this;return e.apply(r,E((function(e){return e.apply(r,n)}),t))}))})),_t=gt((function(e,t){return I((function(t,n){return e(n)?t+1:t}),0,t)})),wt=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(L(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),kt=d(4,[],b([],d(4,[],(function(e,t,n,r){return new wt(e,t,n,r)})),(function(e,t,n,r){return I((function(r,i){var o=n(i),a=e(L(o,r)?r[o]:Re(t,[],[],!1),i);return a&&a["@@transducer/reduced"]?_(r):(r[o]=a,r)}),{},r)}))),St=kt((function(e,t){return e+1}),0),xt=c(-1),Et=u((function(e,t){return null==t||t!=t?e:t})),jt=m((function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),Dt=u(b(["drop"],u((function(e,t){return new Nt(e,t)})),(function(e,t){return Be(Math.max(0,e),1/0,t)}))),Lt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?_(n):n},e}(),Ft=u(b(["take"],u((function(e,t){return new Lt(e,t)})),(function(e,t){return Be(0,e<0?1/0:e,t)})));function Bt(e,t){return Ft(e=0&&e(t[n]);)n-=1;return Be(0,n+1,t)}var Ht=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=I(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}(),Wt=u(b([],u((function(e,t){return new Ht(e,t)})),qt)),Vt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),Kt=u((function(e,t){return new Vt(e,t)})),$t=$(-1),Gt=u(b([],Kt,(function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r=0?t.length-e:0,t)})),nn=u((function(e,t){return et(tn(e.length,t),e)})),rn=m((function(e,t,n){return et(e(t),e(n))})),on=m((function(e,t,n){return et(t[e],n[e])})),an=u((function e(t,n){if(!ut(n)&&!v(n))return n;var r,i,o,a=n instanceof Array?[]:{};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a})),sn=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=_(this.xf["@@transducer/step"](e,t))),e},e}(),un=u(b(["find"],u((function(e,t){return new sn(e,t)})),(function(e,t){for(var n=0,r=t.length;n=0;){if(e(t[n]))return t[n];n-=1}}))),pn=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),hn=u(b([],u((function(e,t){return new pn(e,t)})),(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))),mn=s(Ee(!0)),gn=s((function(e){return p(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),vn=u(Fe("forEach",(function(e,t){for(var n=t.length,r=0;rt})),Sn=u((function(e,t){return e>=t})),xn=u((function(e,t){if(0===e.length||me(t))return!1;for(var n=t,r=0;r=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})),Dn=m((function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})),Ln=function(){function e(e,t){this.xf=t,this.f=e,this.set=new Ot}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}(),Fn=u(b([],u((function(e,t){return new Ln(e,t)})),(function(e,t){for(var n,r,i=new Ot,o=[],a=0;at.length?(n=e,r=t):(n=t,r=e),Bn(st(gn(nt)(n),r))})),Un=u(Fe("intersperse",(function(e,t){for(var n=[],r=0,i=t.length;r=0;){if(et(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)}));function rr(e){return"[object Number]"===Object.prototype.toString.call(e)}var ir=s((function(e){return null!=e&&rr(e.length)?e.length:NaN})),or=u((function(e,t){return function(n){return function(r){return V((function(e){return t(e,r)}),n(e(r)))}}})),ar=m((function(e,t,n){return g(e,Q(t),n)})),sr=s((function(e){return or($(e),ar(e))})),ur=u((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i=0;)o=e(o[0],n[r]),i[r]=o[1],r-=1;return[o[0],i]})),gr=u((function(e,t){return I((function(n,r){return n[r]=e(t[r],r,t),n}),{},W(t))})),vr=u((function(e,t){return t.match(e)||[]})),yr=u((function(e,t){return K(e)?!K(t)||t<1?NaN:(e%t+t)%t:NaN})),br=m((function(e,t,n){return e(n)>e(t)?n:t})),_r=Z(c,0),wr=s((function(e){return _r(e)/e.length})),kr=s((function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return wr(Array.prototype.slice.call(e,0).sort((function(e,t){return et?1:0})).slice(r,r+n))})),Sr=u((function(e,t){var n={};return f(t.length,(function(){var r=e.apply(this,arguments);return L(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),xr=s((function(e){return qn.apply(null,[{}].concat(e))})),Er=m((function(e,t,n){var r,i={};for(r in t)L(r,t)&&(i[r]=L(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)L(r,n)&&!L(r,i)&&(i[r]=n[r]);return i})),jr=m((function e(t,n,r){return Er((function(n,r,i){return ut(r)&&ut(i)?e(t,r,i):t(n,r,i)}),n,r)})),Cr=u((function(e,t){return jr((function(e,t,n){return t}),e,t)})),Or=u((function(e,t){return jr((function(e,t,n){return n}),e,t)})),Ar=m((function(e,t,n){return jr((function(t,n,r){return e(n,r)}),t,n)})),Tr=u((function(e,t){return qn({},t,e)})),Rr=u((function(e,t){return qn({},e,t)})),Pr=m((function(e,t,n){return Er((function(t,n,r){return e(n,r)}),t,n)})),Mr=u((function(e,t){return t=n.length||a<0||a>=n.length?n:[].concat(i.slice(0,a)).concat(s).concat(i.slice(a,n.length))})),Br=u((function(e,t){return e*t})),zr=u((e,t)=>n=>e.call(void 0,Or(t,n))),Ur=s((function(e){return-e})),qr=u((function(e,t){return S(at(e),t)})),Hr=s((function(e){return p(e<0?1:e+1,(function(){return $(e,arguments)}))})),Wr=m((function(e,t,n){return e(t(n))}));function Vr(e){return[e]}var Kr=s(Vr),$r=u((function(e,t){for(var n={},r={},i=0,o=e.length;i=0;){if((t=e(n[r],t))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r-=1}return t})),Ei=d(4,[],(function(e,t,n,r){return I((function(n,r){return e(n,r)?t(n,r):_(n)}),n,r)})),ji=s(_),Ci=u((function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);ii?1:0}))})),Ni=u((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){for(var r=0,i=0;0===r&&i0&&(n.push(r),r=[]);return n})),Ui=u((function(e,t){return et(Ft(e.length,t),e)})),qi=u((function(e,t){return Number(e)-Number(t)})),Hi=u((function(e,t){return ht(At(e,t),At(t,e))})),Wi=m((function(e,t,n){return ht(Tt(e,t,n),Tt(e,n,t))})),Vi=u((function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Be(n+1,1/0,t)})),Ki=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=w.init,e.prototype["@@transducer/result"]=w.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):_(e)},e}(),$i=u(b(["takeWhile"],u((function(e,t){return new Ki(e,t)})),(function(e,t){for(var n=0,r=t.length;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(f,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function k(e){var t,n,r,i,o,a,s,c,l,f,d,h=[],g=e.length,v=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=g&&m("invalid-input"),((c=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||c>p((u-v)/a))&&m("overflow"),v+=c*a,!(c<(l=s<=_?1:s>=_+26?26:s-_));s+=36)a>p(u/(f=36-l))&&m("overflow"),a*=f;_=w(v-o,t=h.length+1,0==o),p(v/t)>u-y&&m("overflow"),y+=p(v/t),v%=t,h.splice(v++,0,y)}return b(h)}function S(e){var t,n,r,i,o,a,s,c,l,f,d,g,v,b,k,S=[];for(g=(e=y(e)).length,t=128,n=0,o=72,a=0;a=t&&dp((u-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,a=0;au&&m("overflow"),d==t){for(c=n,l=36;!(c<(f=l<=o?1:l>=o+26?26:l-o));l+=36)k=c-f,b=36-f,S.push(h(_(f+k%b,0))),c=p(k/b);S.push(h(_(c,0))),o=w(n,v,r==i),n=0,++r}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:k,encode:S,toASCII:function(e){return v(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return c.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(118)(e),n(11))},function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var u=function(){throw new o},c=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(e){return u}}}():u,l=n(365)(),f=n(367)(),d=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),p={},h="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&d?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(d)try{null.error}catch(e){var g=d(d(e));m["%Error.prototype%"]=g}var v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(137),b=n(369),_=y.call(Function.call,Array.prototype.concat),w=y.call(Function.apply,Array.prototype.splice),k=y.call(Function.call,String.prototype.replace),S=y.call(Function.call,String.prototype.slice),x=y.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,C=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return k(e,E,(function(e,t,n,r){i[i.length]=n?k(r,j,"$1"):t||e})),i},O=function(e,t){var n,i=e;if(b(v,i)&&(i="%"+(n=v[i])[0]+"%"),b(m,i)){var s=m[i];if(s===p&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return m[t]=n,n}(i)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(e),i=n.length>0?n[0]:"",a=O("%"+i+"%",t),u=a.name,c=a.value,l=!1,f=a.alias;f&&(i=f[0],w(n,_([0,1],f)));for(var d=1,p=!0;d=n.length){var y=s(c,h);c=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else p=b(c,h),c=c[h];p&&!l&&(m[u]=c)}}return c}},function(e,t,n){"use strict";var r=n(368);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},function(e,t,n){"use strict";(function(e,r){var i=n(380),o=n(15),a=n(3).Buffer,s=void 0===e?r.nextTick:e;t.paramsHaveRequestBody=function(e){return e.body||e.requestBodyStream||e.json&&"boolean"!=typeof e.json||e.multipart},t.safeStringify=function(e,t){var n;try{n=JSON.stringify(e,t)}catch(r){n=i(e,t)}return n},t.md5=function(e){return o.createHash("md5").update(e).digest("hex")},t.isReadStream=function(e){return e.readable&&e.path&&e.mode},t.toBase64=function(e){return a.from(e||"","utf8").toString("base64")},t.copy=function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t},t.version=function(){var e=r.version.replace("v","").split(".");return{major:parseInt(e[0],10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}},t.defer=s}).call(this,n(215).setImmediate,n(5))},function(e,t,n){"use strict";var r=n(2),i=n(216),o=n(3).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function c(e,t,n,r,i,o,a){return u(e+(t&n|~t&r)+i+o|0,a)+t|0}function l(e,t,n,r,i,o,a){return u(e+(t&r|n&~r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return u(e+(t^n^r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return u(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=l(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),n=f(n,r=l(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,n,r,i,e[8],2272392833,11),i=f(i,o,n,r,e[11],1839030562,16),r=f(r,i,o,n,e[14],4259657740,23),n=f(n,r,i,o,e[1],2763975236,4),o=f(o,n,r,i,e[4],1272893353,11),i=f(i,o,n,r,e[7],4139469664,16),r=f(r,i,o,n,e[10],3200236656,23),n=f(n,r,i,o,e[13],681279174,4),o=f(o,n,r,i,e[0],3936430074,11),i=f(i,o,n,r,e[3],3572445317,16),r=f(r,i,o,n,e[6],76029189,23),n=f(n,r,i,o,e[9],3654602809,4),o=f(o,n,r,i,e[12],3873151461,11),i=f(i,o,n,r,e[15],530742520,16),n=d(n,r=f(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var r=n(64).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i>>32-t}function m(e,t,n,r,i,o,a,s){return h(e+(t^n^r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return h(e+(t&n|~t&r)+o+a|0,s)+i|0}function v(e,t,n,r,i,o,a,s){return h(e+((t|~n)^r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return h(e+(t&r|n&~r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return h(e+(t^(n|~r))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,S=0|this._d,x=0|this._e,E=0;E<80;E+=1){var j,C;E<16?(j=m(n,r,i,o,p,e[s[E]],f[0],c[E]),C=b(_,w,k,S,x,e[u[E]],d[0],l[E])):E<32?(j=g(n,r,i,o,p,e[s[E]],f[1],c[E]),C=y(_,w,k,S,x,e[u[E]],d[1],l[E])):E<48?(j=v(n,r,i,o,p,e[s[E]],f[2],c[E]),C=v(_,w,k,S,x,e[u[E]],d[2],l[E])):E<64?(j=y(n,r,i,o,p,e[s[E]],f[3],c[E]),C=g(_,w,k,S,x,e[u[E]],d[3],l[E])):(j=b(n,r,i,o,p,e[s[E]],f[4],c[E]),C=m(_,w,k,S,x,e[u[E]],d[4],l[E])),n=p,p=o,o=h(i,10),i=r,r=j,_=x,x=S,S=h(k,10),k=w,w=C}var O=this._b+i+S|0;this._b=this._c+o+x|0,this._c=this._d+p+_|0,this._d=this._e+n+w|0,this._e=this._a+r+k|0,this._a=O},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(390),t.sha1=n(391),t.sha224=n(392),t.sha256=n(223),t.sha384=n(393),t.sha512=n(224)},function(e,t,n){"use strict";(function(t,r,i){var o=n(105);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=v;var c=Object.create(n(79));c.inherits=n(2);var l={deprecate:n(104)},f=n(226),d=n(3).Buffer,p=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,m=n(227);function g(){}function v(e,t){s=s||n(56),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),x(e,t))}(e,n,r,t,i);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?u(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(56),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,f),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof v)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,x(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(5),n(215).setImmediate,n(11))},function(e,t,n){"use strict";var r=n(31);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t */ var r=n(4),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(67).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(n.modulus),u=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),l=n.coefficient,f=n.prime1,d=n.prime2,p=u.redPow(n.exponent1).fromRed(),h=c.redPow(n.exponent2).fromRed(),m=p.isub(h).imul(l).umod(f).imul(d);return h.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,n(4).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(435).version,r.utils=n(32),r.rand=n(148),r.curve=n(253),r.curves=n(153),r.ec=n(446),r.eddsa=n(450)},function(e,t,n){"use strict";var r,i=t,o=n(154),a=n(253),s=n(32).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(445)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(38),r.common=n(81),r.sha=n(439),r.ripemd=n(443),r.hmac=n(444),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";const r=n(156).Reporter,i=n(82).EncoderBuffer,o=n(82).DecoderBuffer,a=n(31),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};l.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){const e=this._baseState;u.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(a(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}})),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(a=this._peekTag(e,r,n.any),e.isError(a))return a}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(r)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},c.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=e.save(),s=n.choice[o];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},c.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,n,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,n){"use strict";const r=n(2);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},function(e,t,n){var r=n(83),i=n(41),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},function(e,t,n){"use strict";t.decode=t.parse=n(485),t.encode=t.stringify=n(486)},function(e,t,n){var r=n(21),i=n(84),o=n(42),a=n(22),s=n(88),u=n(89),c=n(39);e.exports={Key:r,parseKey:r.parse,Fingerprint:i,parseFingerprint:i.parse,Signature:o,parseSignature:o.parse,PrivateKey:a,parsePrivateKey:a.parse,generatePrivateKey:a.generate,Certificate:s,parseCertificate:s.parse,createSelfSignedCertificate:s.createSelfSigned,createCertificate:s.create,Identity:u,identityFromDN:u.parseDN,identityForHost:u.forHost,identityForUser:u.forUser,identityForEmail:u.forEmail,identityFromArray:u.fromArray,FingerprintFormatError:c.FingerprintFormatError,InvalidAlgorithmError:c.InvalidAlgorithmError,KeyParseError:c.KeyParseError,SignatureParseError:c.SignatureParseError,KeyEncryptedError:c.KeyEncryptedError,CertificateParseError:c.CertificateParseError}},function(e,t){e.exports={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}}},function(e,t){e.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},function(e,t,n){e.exports={DiffieHellman:h,generateECDSA:function(e){var t=[];if(f){var n={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e],r=i.createECDH(n);return r.generateKeys(),t.push({name:"curve",data:o.from(e)}),t.push({name:"Q",data:r.getPublicKey()}),t.push({name:"d",data:r.getPrivateKey()}),new l({type:"ecdsa",curve:e,parts:t})}var a=new m(e),s=a.getN(),u=Math.ceil((s.bitLength()+64)/8),c=new p(i.randomBytes(u)),d=s.subtract(p.ONE),h=c.mod(d).add(p.ONE),g=a.getG().multiply(h);return h=o.from(h.toByteArray()),g=o.from(a.getCurve().encodePointHex(g),"hex"),t.push({name:"curve",data:o.from(e)}),t.push({name:"Q",data:g}),t.push({name:"d",data:h}),new l({type:"ecdsa",curve:e,parts:t})},generateED25519:function(){var e=u.sign.keyPair(),t=o.from(e.secretKey),n=o.from(e.publicKey);r.strictEqual(t.length,64),r.strictEqual(n.length,32);var i=[];return i.push({name:"A",data:n}),i.push({name:"k",data:t.slice(0,32)}),new l({type:"ed25519",parts:i})}};var r=n(10),i=n(15),o=n(12).Buffer,a=n(27),s=n(23),u=n(86),c=n(21),l=n(22),f=void 0!==i.createECDH,d=(n(494),n(112)),p=n(85).BigInteger;function h(e){if(s.assertCompatible(e,c,[1,4],"key"),this._isPriv=l.isPrivateKey(e,[1,3]),this._algo=e.type,this._curve=e.curve,this._key=e,"dsa"===e.type){if(!f)throw new Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=i.createDiffieHellman(e.part.p.data,void 0,e.part.g.data,void 0),this._p=e.part.p,this._g=e.part.g,this._isPriv&&this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data)}else if("ecdsa"===e.type){if(!f)return this._ecParams=new m(this._curve),void(this._isPriv&&(this._priv=new v(this._ecParams,e.part.d.data)));var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];if(this._dh=i.createECDH(t),"object"!=typeof this._dh||"function"!=typeof this._dh.setPrivateKey)return f=!1,void h.call(this,e);this._isPriv&&this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)}else{if("curve25519"!==e.type)throw new Error("DH not supported for "+e.type+" keys");this._isPriv&&(s.assertCompatible(e,l,[1,5],"key"),this._priv=e.part.k.data)}}function m(e){var t=a.curves[e];r.object(t);var n=new p(t.p),i=new p(t.a),o=new p(t.b),s=new p(t.n),u=p.ONE,c=new d.ECCurveFp(n,i,o),l=c.decodePointHex(t.G.toString("hex"));this.curve=c,this.g=l,this.n=s,this.h=u}function g(e,t){this._params=e,0===t[0]&&(t=t.slice(1)),this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function v(e,t){this._params=e,this._priv=new p(s.mpNormalize(t))}h.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic():this._key},h.prototype.getPrivateKey=function(){return this._isPriv?this._key:void 0},h.prototype.getKey=h.prototype.getPrivateKey,h.prototype._keyCheck=function(e,t){if(r.object(e,"key"),t||s.assertCompatible(e,l,[1,3],"key"),s.assertCompatible(e,c,[1,4],"key"),e.type!==this._algo)throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(e.curve!==this._curve)throw new Error("A key from the "+e.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");"dsa"===e.type&&(r.deepEqual(e.part.p,this._p,"DSA key prime does not match"),r.deepEqual(e.part.g,this._g,"DSA key generator does not match"))},h.prototype.setKey=function(e){if(this._keyCheck(e),"dsa"===e.type)this._dh.setPrivateKey(e.part.x.data),this._dh.setPublicKey(e.part.y.data);else if("ecdsa"===e.type)f?(this._dh.setPrivateKey(e.part.d.data),this._dh.setPublicKey(e.part.Q.data)):this._priv=new v(this._ecParams,e.part.d.data);else if("curve25519"===e.type){var t=e.part.k;e.part.k||(t=e.part.r),this._priv=t.data,0===this._priv[0]&&(this._priv=this._priv.slice(1)),this._priv=this._priv.slice(0,32)}this._key=e,this._isPriv=!0},h.prototype.setPrivateKey=h.prototype.setKey,h.prototype.computeSecret=function(e){if(this._keyCheck(e,!0),!this._isPriv)throw new Error("DH exchange has not been initialized with a private key yet");var t;if("dsa"===this._algo)return this._dh.computeSecret(e.part.y.data);if("ecdsa"===this._algo)return f?this._dh.computeSecret(e.part.Q.data):(t=new g(this._ecParams,e.part.Q.data),this._priv.deriveSharedSecret(t));if("curve25519"===this._algo){for(t=e.part.A.data;0===t[0]&&t.length>32;)t=t.slice(1);var n=this._priv;r.strictEqual(t.length,32),r.strictEqual(n.length,32);var i=u.box.before(new Uint8Array(t),new Uint8Array(n));return o.from(i)}throw new Error("Invalid algorithm: "+this._algo)},h.prototype.generateKey=function(){var e,t,n=[];if("dsa"===this._algo)return this._dh.generateKeys(),n.push({name:"p",data:this._p.data}),n.push({name:"q",data:this._key.part.q.data}),n.push({name:"g",data:this._g.data}),n.push({name:"y",data:this._dh.getPublicKey()}),n.push({name:"x",data:this._dh.getPrivateKey()}),this._key=new l({type:"dsa",parts:n}),this._isPriv=!0,this._key;if("ecdsa"===this._algo){if(f)return this._dh.generateKeys(),n.push({name:"curve",data:o.from(this._curve)}),n.push({name:"Q",data:this._dh.getPublicKey()}),n.push({name:"d",data:this._dh.getPrivateKey()}),this._key=new l({type:"ecdsa",curve:this._curve,parts:n}),this._isPriv=!0,this._key;var a=this._ecParams.getN(),s=new p(i.randomBytes(a.bitLength())),c=a.subtract(p.ONE);return e=s.mod(c).add(p.ONE),t=this._ecParams.getG().multiply(e),e=o.from(e.toByteArray()),t=o.from(this._ecParams.getCurve().encodePointHex(t),"hex"),this._priv=new v(this._ecParams,e),n.push({name:"curve",data:o.from(this._curve)}),n.push({name:"Q",data:t}),n.push({name:"d",data:e}),this._key=new l({type:"ecdsa",curve:this._curve,parts:n}),this._isPriv=!0,this._key}if("curve25519"===this._algo){var d=u.box.keyPair();return e=o.from(d.secretKey),t=o.from(d.publicKey),e=o.concat([e,t]),r.strictEqual(e.length,64),r.strictEqual(t.length,32),n.push({name:"A",data:t}),n.push({name:"k",data:e}),this._key=new l({type:"curve25519",parts:n}),this._isPriv=!0,this._key}throw new Error("Invalid algorithm: "+this._algo)},h.prototype.generateKeys=h.prototype.generateKey,m.prototype.getCurve=function(){return this.curve},m.prototype.getG=function(){return this.g},m.prototype.getN=function(){return this.n},m.prototype.getH=function(){return this.h},v.prototype.deriveSharedSecret=function(e){r.ok(e instanceof g);var t=e._pub.multiply(this._priv);return o.from(t.getX().toBigInteger().toByteArray())}},function(e,t,n){e.exports={read:function(e,t){return l.read(e,t,"pkcs1")},readPkcs1:function(e,t,n){switch(e){case"RSA":if("public"===t)return function(e){var t=d(e,"modulus"),n=d(e,"exponent");return new u({type:"rsa",parts:[{name:"e",data:n},{name:"n",data:t}]})}(n);if("private"===t)return function(e){var t=d(e,"version");r.strictEqual(t[0],0);var n=d(e,"modulus"),i=d(e,"public exponent"),o=d(e,"private exponent"),a=d(e,"prime1"),s=d(e,"prime2"),u=d(e,"exponent1"),l=d(e,"exponent2"),f=d(e,"iqmp");return new c({type:"rsa",parts:[{name:"n",data:n},{name:"e",data:i},{name:"d",data:o},{name:"iqmp",data:f},{name:"p",data:a},{name:"q",data:s},{name:"dmodp",data:u},{name:"dmodq",data:l}]})}(n);throw new Error("Unknown key type: "+t);case"DSA":if("public"===t)return function(e){var t=d(e,"y"),n=d(e,"p"),r=d(e,"q"),i=d(e,"g");return new u({type:"dsa",parts:[{name:"y",data:t},{name:"p",data:n},{name:"q",data:r},{name:"g",data:i}]})}(n);if("private"===t)return function(e){var t=d(e,"version");r.strictEqual(t.readUInt8(0),0);var n=d(e,"p"),i=d(e,"q"),o=d(e,"g"),a=d(e,"y"),s=d(e,"x");return new c({type:"dsa",parts:[{name:"p",data:n},{name:"q",data:i},{name:"g",data:o},{name:"y",data:a},{name:"x",data:s}]})}(n);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if("private"===t)return function(e){var t=d(e,"version");r.strictEqual(t.readUInt8(0),1);var n=e.readString(i.Ber.OctetString,!0);e.readSequence(160);var a=f(e);r.string(a,"a known elliptic curve"),e.readSequence(161);var u=e.readString(i.Ber.BitString,!0);u=s.ecNormalize(u);var l={type:"ecdsa",parts:[{name:"curve",data:o.from(a)},{name:"Q",data:u},{name:"d",data:n}]};return new c(l)}(n);if("public"===t)return function(e){e.readSequence();var t=e.readOID();r.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");for(var n,c=e.readOID(),l=Object.keys(a.curves),f=0;fd.length)throw new Error("Invalid public-lines count");var b=i.from(d.slice(h,h+y).join(""),"base64"),_=o.algToKeyType(m),w=o.read(b);if(w.type!==_)throw new Error("Outer key algorithm mismatch");if(d[h+=y]){n=f(d[h++]),r.equal(n[0].toLowerCase(),"private-lines");var k=parseInt(n[1],10);if(!isFinite(k)||k<0||k>d.length)throw new Error("Invalid private-lines count");var S=i.from(d.slice(h,h+k).join(""),"base64");if("none"!==g&&3===a)throw new Error("Encrypted keys arenot supported for PuTTY format version 3");if("aes256-cbc"===g){if(!t.passphrase)throw new l.KeyEncryptedError(t.filename,"PEM");var x=i.alloc(16,0),E=u.createDecipheriv("aes-256-cbc",(O=t.passphrase,A=u.createHash("sha1").update(i.concat([i.from([0,0,0,0]),i.from(O)])).digest(),T=u.createHash("sha1").update(i.concat([i.from([0,0,0,1]),i.from(O)])).digest(),i.concat([A,T]).slice(0,32)),x);E.setAutoPadding(!1),S=i.concat([E.update(S),E.final()])}if((w=new c(w)).type!==_)throw new Error("Outer key algorithm mismatch");var j,C=new s({buffer:S});if("ssh-dss"===m)j=[{name:"x",data:C.readBuffer()}];else if("ssh-rsa"===m)j=[{name:"d",data:C.readBuffer()},{name:"p",data:C.readBuffer()},{name:"q",data:C.readBuffer()},{name:"iqmp",data:C.readBuffer()}];else if(m.match(/^ecdsa-sha2-nistp/))j=[{name:"d",data:C.readBuffer()}];else{if("ssh-ed25519"!==m)throw new Error("Unsupported PPK key type: "+m);j=[{name:"k",data:C.readBuffer()}]}w=new c({type:w.type,parts:w.parts.concat(j)})}var O,A,T;return w.comment=v,w},write:function(e,t){if(r.object(e),!a.isKey(e))throw new Error("Must be a public key");var n=o.keyTypeToAlg(e),s=o.write(e),u=e.comment||"",c=function(e,t){var n=[],r=0;for(;r=0,d=u.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(u.userAgent),p=/^((?!chrome|android).)*safari/i.test(u.userAgent),h=!!window.chrome&&!f,m="undefined"!=typeof document&&!!document.documentMode&&!l;function g(e,t){var n=0,r=!1,i=window.setInterval((function(){e()&&(window.clearInterval(i),t(r)),n++>50&&(window.clearInterval(i),t(r=!0))}),10)}var v={Android:function(){return u.userAgent.match(/Android/i)},BlackBerry:function(){return u.userAgent.match(/BlackBerry|BB10/i)},iOS:function(){return u.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return u.userAgent.match(/Opera Mini/i)},Windows:function(){return u.userAgent.match(/IEMobile/i)},any:function(){return v.Android()||v.BlackBerry()||v.iOS()||v.Opera()||v.Windows()},getOsName:function(){var e="Unknown OS";return v.Android()&&(e="Android"),v.BlackBerry()&&(e="BlackBerry"),v.iOS()&&(e="iOS"),v.Opera()&&(e="Opera Mini"),v.Windows()&&(e="Windows"),e}};var y="Unknown OS",b="Unknown OS Version";var _,w,k=function(){for(var e,t=u.appVersion,n=u.userAgent,r="-",i=[{s:"Chrome OS",r:/CrOS/},{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],o=0;e=i[o];o++)if(e.r.test(n)){r=e.s;break}var a="-";switch(/Windows/.test(r)&&(/Windows (.*)/.test(r)&&(a=/Windows (.*)/.exec(r)[1]),r="Windows"),r){case"Mac OS X":/Mac OS X (10[\.\_\d]+)/.test(n)&&(a=/Mac OS X (10[\.\_\d]+)/.exec(n)[1]);break;case"Android":/Android ([\.\_\d]+)/.test(n)&&(a=/Android ([\.\_\d]+)/.exec(n)[1]);break;case"iOS":/OS (\d+)_(\d+)_?(\d+)?/.test(n)&&(a=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))&&a.length>3&&(a=a[1]+"."+a[2]+"."+(0|a[3]))}return{osName:r,osVersion:a}}();k&&k.osName&&"-"!=k.osName?(y=k.osName,b=k.osVersion):v.any()&&"Android"==(y=v.getOsName())&&(b=!!(w=(_=(_||u.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&w[1]);var S="object"==typeof n&&"object"==typeof n.versions&&n.versions.node;"Unknown OS"===y&&S&&(y="Nodejs",b=n.versions.node.toString().replace("v",""));var x=!1,E=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach((function(e){"undefined"!=typeof document&&"function"==typeof document.createElement&&(!x&&e in document.createElement("canvas")&&(x=!0),!E&&e in document.createElement("video")&&(E=!0))}));var j=/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/,C=/([0-9]{1,3}(\.[0-9]{1,3}){3})/,O=/[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}/;var A=[],T=[],R=[],P=[];u.mediaDevices&&u.mediaDevices.enumerateDevices&&(u.enumerateDevices=function(e){var t=u.mediaDevices.enumerateDevices();t&&t.then?u.mediaDevices.enumerateDevices().then(e).catch((function(){e([])})):e([])});var M=!1;("undefined"!=typeof MediaStreamTrack&&"getSources"in MediaStreamTrack||u.mediaDevices&&u.mediaDevices.enumerateDevices)&&(M=!0);var I=!1,N=!1,D=!1,L=!1,F=!1;function B(e){if(M)if(!u.enumerateDevices&&window.MediaStreamTrack&&window.MediaStreamTrack.getSources&&(u.enumerateDevices=window.MediaStreamTrack.getSources.bind(window.MediaStreamTrack)),!u.enumerateDevices&&u.enumerateDevices&&(u.enumerateDevices=u.enumerateDevices.bind(u)),u.enumerateDevices){A=[],T=[],R=[],P=[],I=!1,N=!1,D=!1,L=!1,F=!1;var t={};u.enumerateDevices((function(n){A=[],T=[],R=[],P=[],n.forEach((function(e){var n={};for(var r in e)try{"function"!=typeof e[r]&&(n[r]=e[r])}catch(e){}t[n.deviceId+n.label+n.kind]||("audio"===n.kind&&(n.kind="audioinput"),"video"===n.kind&&(n.kind="videoinput"),n.deviceId||(n.deviceId=n.id),n.id||(n.id=n.deviceId),n.label?("videoinput"!==n.kind||F||(F=!0),"audioinput"!==n.kind||L||(L=!0)):(n.isCustomLabel=!0,"videoinput"===n.kind?n.label="Camera "+(P.length+1):"audioinput"===n.kind?n.label="Microphone "+(T.length+1):"audiooutput"===n.kind?n.label="Speaker "+(R.length+1):n.label="Please invoke getUserMedia once.",void 0!==z&&z.browser.isChrome&&z.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(n.label="HTTPs is required to get label of this "+n.kind+" device.")),"audioinput"===n.kind&&(I=!0,-1===T.indexOf(n)&&T.push(n)),"audiooutput"===n.kind&&(N=!0,-1===R.indexOf(n)&&R.push(n)),"videoinput"===n.kind&&(D=!0,-1===P.indexOf(n)&&P.push(n)),A.push(n),t[n.deviceId+n.label+n.kind]=n)})),void 0!==z&&(z.MediaDevices=A,z.hasMicrophone=I,z.hasSpeakers=N,z.hasWebcam=D,z.isWebsiteHasWebcamPermissions=F,z.isWebsiteHasMicrophonePermissions=L,z.audioInputDevices=T,z.audioOutputDevices=R,z.videoInputDevices=P),e&&e()}))}else e&&e();else e&&e()}var z=window.DetectRTC||{};z.browser=function(){u.appVersion;var e,t,n,r=u.userAgent,i=u.appName,o=""+parseFloat(u.appVersion),a=parseInt(u.appVersion,10);if(f){i="Opera";try{a=(o=u.userAgent.split("OPR/")[1].split(" ")[0]).split(".")[0]}catch(e){o="0.0.0.0",a=0}}else m?((t=r.indexOf("rv:"))>0?o=r.substring(t+3):(t=r.indexOf("MSIE"),o=r.substring(t+5)),i="IE"):h?(t=r.indexOf("Chrome"),i="Chrome",o=r.substring(t+7)):p?-1!==r.indexOf("CriOS")?(t=r.indexOf("CriOS"),i="Chrome",o=r.substring(t+6)):-1!==r.indexOf("FxiOS")?(t=r.indexOf("FxiOS"),i="Firefox",o=r.substring(t+6)):(t=r.indexOf("Safari"),i="Safari",o=r.substring(t+7),-1!==(t=r.indexOf("Version"))&&(o=r.substring(t+8)),-1!==u.userAgent.indexOf("Version/")&&(o=u.userAgent.split("Version/")[1].split(" ")[0])):d?(t=r.indexOf("Firefox"),i="Firefox",o=r.substring(t+8)):(e=r.lastIndexOf(" ")+1)<(t=r.lastIndexOf("/"))&&(i=r.substring(e,t),o=r.substring(t+1),i.toLowerCase()===i.toUpperCase()&&(i=u.appName));return l&&(i="Edge",o=u.userAgent.split("Edge/")[1]),-1!==(n=o.search(/[; \)]/))&&(o=o.substring(0,n)),a=parseInt(""+o,10),isNaN(a)&&(o=""+parseFloat(u.appVersion),a=parseInt(u.appVersion,10)),{fullVersion:o,version:a,name:i,isPrivateBrowsing:!1}}(),function(e){var t;try{if(window.webkitRequestFileSystem)window.webkitRequestFileSystem(window.TEMPORARY,1,(function(){t=!1}),(function(e){t=!0}));else if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var n;try{(n=window.indexedDB.open("test")).onerror=function(){return!0}}catch(e){t=!0}void 0===t&&g((function(){return"done"===n.readyState}),(function(e){e||(t=!n.result)}))}else if(function(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var n=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);return!!(n&&parseInt(n[1],10)>=10)}(window.navigator.userAgent)){t=!1;try{window.indexedDB||(t=!0)}catch(e){t=!0}}else if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem("test",1)}catch(e){t=!0}void 0===t&&(t=!1,window.localStorage.removeItem("test"))}}catch(e){t=!1}g((function(){return void 0!==t}),(function(n){e(t)}))}((function(e){z.browser.isPrivateBrowsing=!!e})),z.browser["is"+z.browser.name]=!0,z.osName=y,z.osVersion=b;"object"==typeof n&&"object"==typeof n.versions&&n.versions["node-webkit"];var U=!1;["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","RTCIceGatherer"].forEach((function(e){U||e in window&&(U=!0)})),z.isWebRTCSupported=U,z.isORTCSupported="undefined"!=typeof RTCIceGatherer;var q=!1;((z.browser.isChrome&&z.browser.version>=35||z.browser.isFirefox&&z.browser.version>=34||z.browser.isEdge&&z.browser.version>=17||"Android"===z.osName&&z.browser.isChrome)&&(q=!0),(u.getDisplayMedia||u.mediaDevices&&u.mediaDevices.getDisplayMedia)&&(q=!0),/^(https:|chrome-extension:)$/g.test(location.protocol||""))||("undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(z.browser.isChrome||z.browser.isEdge||z.browser.isOpera)||z.browser.isFirefox)&&(q=!1);z.isScreenCapturingSupported=q;var H={isSupported:!1,isCreateMediaStreamSourceSupported:!1};["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"].forEach((function(e){H.isSupported||e in window&&(H.isSupported=!0,window[e]&&"createMediaStreamSource"in window[e].prototype&&(H.isCreateMediaStreamSourceSupported=!0))})),z.isAudioContextSupported=H.isSupported,z.isCreateMediaStreamSourceSupported=H.isCreateMediaStreamSourceSupported;var W=!1;z.browser.isChrome&&z.browser.version>31&&(W=!0),z.isRtpDataChannelsSupported=W;var V=!1;(z.browser.isFirefox&&z.browser.version>28||z.browser.isChrome&&z.browser.version>25||z.browser.isOpera&&z.browser.version>=11)&&(V=!0),z.isSctpDataChannelsSupported=V,z.isMobileDevice=c;var K=!1;(u.getUserMedia||u.mediaDevices&&u.mediaDevices.getUserMedia)&&(K=!0),z.browser.isChrome&&z.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(K="Requires HTTPs"),"Nodejs"===z.osName&&(K=!1),z.isGetUserMediaSupported=K;var $,G,Y,Z="";screen.width&&(Z+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:""));z.displayResolution=Z,z.displayAspectRatio=($=screen.width,G=screen.height,Y=function e(t,n){return 0==n?t:e(n,t%n)}($,G),$/Y/(G/Y)).toFixed(2),z.isCanvasSupportsStreamCapturing=x,z.isVideoSupportsStreamCapturing=E,"Chrome"==z.browser.name&&z.browser.version>=53&&(z.isCanvasSupportsStreamCapturing||(z.isCanvasSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features"),z.isVideoSupportsStreamCapturing||(z.isVideoSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features")),z.DetectLocalIPAddress=function(e,t){if(z.isWebRTCSupported){var n=!0,r=!0;!function(e,t){if("undefined"==typeof document||"function"!=typeof document.getElementById)return;var n={},r=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!r){var i=document.getElementById("iframe");if(!i)return;var o=i.contentWindow;r=o.RTCPeerConnection||o.mozRTCPeerConnection||o.webkitRTCPeerConnection}if(!r)return;var a=null;"Chrome"===z.browser&&z.browser.version<58&&(a={optional:[{RtpDataChannels:!0}]});var s=new r({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},a);t&&(s.addStream?s.addStream(t):s.addTrack&&t.getTracks()[0]&&s.addTrack(t.getTracks()[0],t));function u(t){if(t){var r=C.exec(t);if(r){var i=r[1],o=t.match(j);void 0===n[i]&&e(i,o,!0),n[i]=!0}}else e()}if(s.onicecandidate=function(e){e.candidate&&e.candidate.candidate?u(e.candidate.candidate):u()},!t)try{s.createDataChannel("sctp",{})}catch(e){}z.isPromisesSupported?s.createOffer().then((function(e){s.setLocalDescription(e).then(c)})):s.createOffer((function(e){s.setLocalDescription(e,c,(function(){}))}),(function(){}));function c(){s.localDescription.sdp.split("\n").forEach((function(e){e&&0===e.indexOf("a=candidate:")&&u(e)}))}}((function(t){t?t.match(j)?e("Local: "+t,n=!1,r):t.match(O)?e("Public: "+t,n,r=!1):e("Public: "+t,n,r):e()}),t)}},z.isWebSocketsSupported="WebSocket"in window&&2===window.WebSocket.CLOSING,z.isWebSocketsBlocked=!z.isWebSocketsSupported,"Nodejs"===z.osName&&(z.isWebSocketsSupported=!0,z.isWebSocketsBlocked=!1),z.checkWebSocketsSupport=function(e){e=e||function(){};try{var t,n=new WebSocket("wss://echo.websocket.org:443/");n.onopen=function(){z.isWebSocketsBlocked=!1,t=(new Date).getTime(),n.send("ping")},n.onmessage=function(){z.WebsocketLatency=(new Date).getTime()-t+"ms",e(),n.close(),n=null},n.onerror=function(){z.isWebSocketsBlocked=!0,e()}}catch(t){z.isWebSocketsBlocked=!0,e()}},z.load=function(e){B(e=e||function(){})},z.MediaDevices=void 0!==A?A:[],z.hasMicrophone=I,z.hasSpeakers=N,z.hasWebcam=D,z.isWebsiteHasWebcamPermissions=F,z.isWebsiteHasMicrophonePermissions=L,z.audioInputDevices=T,z.audioOutputDevices=R,z.videoInputDevices=P;var X=!1;"undefined"!=typeof document&&"function"==typeof document.createElement&&"setSinkId"in document.createElement("video")&&(X=!0),z.isSetSinkIdSupported=X;var Q=!1;z.browser.isFirefox&&"undefined"!=typeof mozRTCPeerConnection?"getSenders"in mozRTCPeerConnection.prototype&&(Q=!0):z.browser.isChrome&&"undefined"!=typeof webkitRTCPeerConnection&&"getSenders"in webkitRTCPeerConnection.prototype&&(Q=!0),z.isRTPSenderReplaceTracksSupported=Q;var J=!1;z.browser.isFirefox&&z.browser.version>38&&(J=!0),z.isRemoteStreamProcessingSupported=J;var ee=!1;"undefined"!=typeof MediaStreamTrack&&"applyConstraints"in MediaStreamTrack.prototype&&(ee=!0),z.isApplyConstraintsSupported=ee;var te=!1;z.browser.isFirefox&&z.browser.version>=43&&(te=!0),z.isMultiMonitorScreenCapturingSupported=te,z.isPromisesSupported=!!("Promise"in window),z.version="1.4.1",void 0===z&&(window.DetectRTC={});var ne=window.MediaStream;void 0===ne&&"undefined"!=typeof webkitMediaStream&&(ne=webkitMediaStream),z.MediaStream=void 0!==ne&&"function"==typeof ne&&Object.keys(ne.prototype),"undefined"!=typeof MediaStreamTrack?z.MediaStreamTrack=Object.keys(MediaStreamTrack.prototype):z.MediaStreamTrack=!1;var re=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;z.RTCPeerConnection=void 0!==re&&Object.keys(re.prototype),window.DetectRTC=z,e.exports=z,void 0===(i=function(){return z}.apply(t,[]))||(e.exports=i)}()}).call(this,n(5),n(11))},function(e,t,n){var r=n(90)("socket.io-parser"),i=n(57),o=n(593),a=n(291),s=n(292);function u(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=u,t.Decoder=f;var c=t.ERROR+'"encode error"';function l(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var i=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===i)return c;n+=i}return r("encoded %j as %s",e,n),n}function f(){this.reconstructor=null}function d(e){this.reconPack=e,this.buffers=[]}function p(e){return{type:t.ERROR,data:"parser error: "+e}}u.prototype.encode=function(e,n){(r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){o.removeBlobs(e,(function(e){var n=o.deconstructPacket(e),r=l(n.packet),i=n.buffers;i.unshift(r),t(i)}))}(e,n):n([l(e)])},i(f.prototype),f.prototype.add=function(e){var n;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=function(e){var n=0,i={type:Number(e.charAt(0))};if(null==t.types[i.type])return p("unknown packet type "+i.type);if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var o=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var s=e.substring(o,n);if(s!=Number(s)||"-"!==e.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(s)}if("/"===e.charAt(n+1)){for(o=n+1;++n;){if(","===(c=e.charAt(n)))break;if(n===e.length)break}i.nsp=e.substring(o,n)}else i.nsp="/";var u=e.charAt(n+1);if(""!==u&&Number(u)==u){for(o=n+1;++n;){var c;if(null==(c=e.charAt(n))||Number(c)!=c){--n;break}if(n===e.length)break}i.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!(!1!==l&&(i.type===t.ERROR||a(l))))return p("invalid payload");i.data=l}return r("decoded %s as %j",e,i),i}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new d(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n)}else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){var r=n(596),i=n(175);e.exports=function(e){var t=e.xdomain,n=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(e){}if(!t)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,n){var r=n(71),i=n(57);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=o,i(o.prototype),o.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(18)),i=p(n(9)),o=p(n(30)),a=p(n(333)),s=p(n(46)),u=p(n(13)),c=p(n(100)),l=p(n(33)),f=p(n(24)),d=p(n(189));function p(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var h=n(20).EventEmitter,m=[],g=c.default.Record({id:0,avatar:"",gender:"",is_hidden:0,is_logged:0,name:"",roomId:0,url:"",chat_online_status:""}),v=c.default.Map(),y=i.default.ActionTypes,b=new a.default({initialize:!1,local:[],queryTokenizer:a.default.tokenizers.whitespace,datumTokenizer:a.default.tokenizers.obj.whitespace("name")}),_="",w=function(e){if(E(k()),e.length)for(var t=0;t0&&(v=v.update(e[t],(function(e){return e.set("is_hidden",i.default.ITEM_SHOW)})))}():j(k()),R.emitChange()):l.default.includes(m,e)?b.search(e,w.bind(this),w.bind(this)):u.default.sendRequestSearchName(e)}function T(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&b.clear(),b.add(e),e.length&&mooConfig)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,c=void 0===u?i.easeInOut:u,l=t.delay,f=void 0===l?0:l;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(c," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),i=n(35),o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function l(){o=!1}function f(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return o||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!u[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(121);function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52);function i(e){var t=function(e,t){if("object"!==Object(r.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(r.a)(t)?t:String(t)}},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var r=n(1),i=n(8),o=n(0),a=n(17),s=n(28),u=n(36),c=n(728),l=n(34),f=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,m=e.disabled,g=void 0!==m&&m,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.size,_=void 0===b?"medium":b,w=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(c.a,Object(r.a)({className:Object(a.a)(f.root,d,"default"!==h&&f["color".concat(Object(l.a)(h))],g&&f.disabled,"small"===_&&f["size".concat(Object(l.a)(_))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:g,ref:t},w),o.createElement("span",{className:f.label},u))})),d=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n',":(":'',":D":'',"(cool)":'',":O":'',";(":'',"(:|":'',":|":'',"(kiss)":'',":P":'',";)":'',":$":'',":^)":'',"|-)":'',"(inlove)":'',":)":'',"(yawn)":'',"(puke)":'',"(angry)":'',"(wasntme)":'',"(worry)":'',":x":'',"(devil)":'',"(angel)":'',"(envy)":'',"(meh)":'',"(rofl)":'',"(happy)":'',"(smirk)":'',"(beer)":'',"(clap)":'',"(sun)":'',"(flex)":'',"(n)":'',"(y)":'',"(ok)":'',"(punch)":'',"(*)":'',"(car)":'',"(poop)":'',"(um)":'',"(^)":'',"(d)":'',"(f)":'',"(mad)":'',"(silly)":'',"(flu)":'',"(ex)":'',"(pained)":'',"(cup)":'',"(m)":'',"(candy)":'',"(chicken)":'',"(cow)":'',"(dog)":'',"(hih)":'',"(e)":'',"(bike)":'',"(time)":'',"(u)":'',"(slow)":'',"(eat)":'',"(corn)":'',":evil:":'',":sad:":'',":laugh:":'',":cool:":'',":surprised:":'',":crying:":'',":sweating:":'',":speechless:":'',":kiss:":'',":cheeky:":'',":wink:":'',":blushing:":'',":wondering:":'',":sleepy:":'',":inlove:":'',":smile:":'',":yawn:":'',":puke:":'',":angry:":'',":wasntme:":'',":worry:":'',":love:":'',":devil:":'',":angel:":'',":envy:":'',":meh:":'',":rofl:":'',":happy:":'',":smirk:":'',":beer:":'',":clap:":'',":sun:":'',":flex:":'',":no:":'',":yes:":'',":ok:":'',":punch:":'',":star:":'',":car:":'',":poop:":'',":umbrella:":'',":cake:":'',":drink:":'',":football:":'',":mad:":'',":silly:":'',":flu:":'',":excited:":'',":pained:":'',":cup:":'',":music:":'',":candy:":'',":chicken:":'',":cow:":'',":dog:":'',":hih:":'',":email:":'',":bike:":'',":time:":'',":brokenheart:":'',":slow:":'',":eat:":'',":corn:":''},o=[{emoji:"]:)",text:"evil",class:"iconos a48"},{emoji:":(",text:"sad",class:"iconos a20"},{emoji:":D",text:"Laugh",class:"iconos a1"},{emoji:"(cool)",text:"Cool",class:"iconos a41"},{emoji:":O",text:"Surprised",class:"iconos a50"},{emoji:";(",text:"Crying",class:"iconos a24"},{emoji:"(:|",text:"Sweating",class:"iconos a29"},{emoji:":|",text:"Speechless",class:"iconos a52"},{emoji:"(kiss)",text:"Kiss",class:"iconos a8"},{emoji:":P",text:"Cheeky",class:"iconos a39"},{emoji:";)",text:"Wink",class:"iconos a6"},{emoji:":$",text:"Blushing",class:"iconos a4"},{emoji:":^)",class:"iconos a47"},{emoji:"|-)",text:"Sleepy",class:"iconos a42"},{emoji:"(inlove)",text:"in love",class:"iconos a7"},{emoji:":)",text:"smile",class:"iconos a3"},{emoji:"(yawn)",text:"yawn",class:"iconos a43"},{emoji:"(puke)",text:"puke",class:"iconos a37"},{emoji:"(angry)",text:"angry",class:"iconos a35"},{emoji:"(wasntme)",text:"wasntme",class:"iconos a15"},{emoji:"(worry)",text:"worry",class:"iconos a33"},{emoji:":x",class:"iconos a8"},{emoji:"(angel)",text:"angel",class:"iconos a72"},{emoji:"(envy)",text:"envy",class:"iconos a19"},{emoji:"(meh)",text:"meh",class:"iconos a53"},{emoji:"(rofl)",text:"rofl",class:"iconos a23"},{emoji:"(happy)",class:"iconos a18"},{emoji:"(smirk)",class:"iconos a57"},{emoji:"(beer)",class:"iconos a77"},{emoji:"(clap)",class:"iconos a76"},{emoji:"(sun)",class:"iconos a2"},{emoji:"(flex)",class:"iconos a5"},{emoji:"(n)",class:"iconos a9"},{emoji:"(y)",class:"iconos a10"},{emoji:"(ok)",class:"iconos a11"},{emoji:"(punch)",class:"iconos a12"},{emoji:"(*)",class:"iconos a13"},{emoji:"(car)",class:"iconos a14"},{emoji:"(poop)",text:"poop",class:"iconos a16"},{emoji:"(um)",text:"umbrella",class:"iconos a17"},{emoji:"(^)",text:"cake",class:"iconos a21"},{emoji:"(d)",text:"drink",class:"iconos a22"},{emoji:"(f)",text:"football",class:"iconos a25"},{emoji:"(mad)",text:"mad",class:"iconos a26"},{emoji:"(silly)",text:"Silly",class:"iconos a27"},{emoji:"(flu)",text:"Flu",class:"iconos a28"},{emoji:"(ex)",text:"Excited",class:"iconos a30"},{emoji:"(pained)",text:"pained",class:"iconos a31"},{emoji:"(cup)",text:"cup",class:"iconos a32"},{emoji:"(m)",text:"music",class:"iconos a34"},{emoji:"(candy)",text:"candy",class:"iconos a36"},{emoji:"(chicken)",text:"chicken",class:"iconos a38"},{emoji:"(cow)",text:"cow",class:"iconos a40"},{emoji:"(dog)",text:"dog",class:"iconos a44"},{emoji:"(hih)",text:"hand in hand",class:"iconos a45"},{emoji:"(e)",text:"Mail",class:"iconos a46"},{emoji:"(bike)",text:"Bike",class:"iconos a49"},{emoji:"(u)",text:"Broken heart",class:"iconos a51"},{emoji:"(slow)",text:"slow",class:"iconos a54"},{emoji:"(eat)",text:"eat",class:"iconos a55"},{emoji:"(corn)",text:"corn",class:"iconos a56"}];e.exports={replace:function(e){return e=e.replace(r,(function(e){return i[e]}))},getEmojiHtml:function(){return''},getEmojiJson:function(){return o},isOneEmojiOnly:function(e){return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(18)),i=u(n(9)),o=u(n(30)),a=u(n(13)),s=u(n(100));function u(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var c=n(20).EventEmitter;c.prototype._maxListeners=100;var l=i.default.ActionTypes,f=s.default.Record({counter:0}),d=s.default.Map(),p=(0,o.default)({},c.prototype,{emitChange:function(e){e=void 0!==e?e:0,a.default.updateConversationCounter(this.getTotalCounter()),this.emit("change",e)},addChangeListener:function(e){this.on("change",e)},removeChangeListener:function(e){this.removeListener("change",e)},get:function(e){return d.get(e,new f).counter},set:function(e,t){d=d.set(e,new f({counter:t}))},addOne:function(e){return e=parseInt(e),this.set(e,this.get(e)+1),this},getAll:function(){return d.toObject()},getTotalCounter:function(){var e=0;return d.forEach((function(t){e+=t.counter>0?1:0})),e},markReadAllMessages:function(){d=s.default.Map()}});p.dispatchToken=r.default.register((function(e){switch(e.type){case l.COUNTER_UNSEEN_MESSAGES_FROM_RAW_DATA:break;case l.SET_ROOM_MESSAGES_IS_SEEN:p.set(e.roomId,0),p.emitChange();break;case l.MARK_READ_ALL_MESSAGES:p.markReadAllMessages(),p.emitChange()}}));var h=p;t.default=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(673),i=(n(0),n(53));function o(){return Object(r.a)()||i.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(75);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),i=n(0),o=n.n(i),a=n(8),s=n(17),u=n(28),c=n(34),l=i.forwardRef((function(e,t){var n=e.children,o=e.classes,u=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"medium":h,g=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,_=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,Object(r.a)({className:Object(s.a)(o.root,u,"inherit"!==f&&o["color".concat(Object(c.a)(f))],"default"!==m&&"medium"!==m&&o["fontSize".concat(Object(c.a)(m))]),focusable:"false",viewBox:b,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},_),n,v?i.createElement("title",null,v):null)}));l.muiName="SvgIcon";var f=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function d(e,t){var n=function(t,n){return o.a.createElement(f,Object(r.a)({ref:n},t),e)};return n.muiName=f.muiName,o.a.memo(o.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},,function(e,t,n){e.exports.Dispatcher=n(332)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={receiveAll:function(e){r.default.dispatch({type:o.RECEIVE_RAW_FRIENDS,rawFriends:e})},add:function(e){r.default.dispatch({type:o.ADD_RAW_FRIENDS,rawFriends:e})},setOnline:function(e){r.default.dispatch({type:o.SET_ONLINE_FRIENDS,friends:e})},setOffline:function(e){r.default.dispatch({type:o.SET_OFFLINE_FRIENDS,friends:e})},filter:function(e){r.default.dispatch({type:o.FIND_A_FRIENDS,name:e})},searchFriendCallback:function(e){r.default.dispatch({type:o.SEARCH_FRIEND_CALLBACK,data:e})},addByKeyword:function(e){r.default.dispatch({type:o.ADD_RAW_FRIENDS_BY_KEYWORD,data:e})},friendChangeOnlineStatusCallback:function(e){r.default.dispatch({type:o.FRIEND_CHANGE_ONLINE_STATUS_CALLBACK,friend:e})}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={receiveAll:function(e){r.default.dispatch({type:o.RECEIVE_RAW_GROUPS,rawGroups:e})}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={createForAUser:function(e){r.default.dispatch({type:o.CREATE_A_ROOM_FOR_A_USER,userId:e})},createByRoomId:function(e){r.default.dispatch({type:o.CREATE_A_ROOM_BY_ROOM_ID,rId:e})},refeshStatusARoom:function(e){r.default.dispatch({type:o.REFESH_A_ROOM_BY_ROOM_ID_CALLBACK,data:e})},createForAUserByUserCallback:function(e){r.default.dispatch({type:o.CREATE_A_ROOM_FOR_A_USER_BY_USER_CALLBACK,data:e})},createForAUserBySystemCallback:function(e){r.default.dispatch({type:o.CREATE_A_ROOM_FOR_A_USER_BY_SYSTEM_CALLBACK,data:e})},addUsersToARoomCallback:function(e,t){r.default.dispatch({type:o.ADD_USERS_TO_A_ROOM_BY_SYSTEM_CALLBACK,roomId:e,users:t})},markMessagesIsSeenInRoomsCallback:function(e){r.default.dispatch({type:o.MARK_MESSAGES_IS_SEEN_IN_ROOMS_CALLBACK,ids:e})},markSeenInRoomsCallback:function(e){r.default.dispatch({type:o.MARK_SEEN_IN_ROOMS_CALLBACK,ids:e})},activeARoom:function(e){r.default.dispatch({type:o.ACTIVE_A_ROOM,roomId:e})},destroyARoom:function(e){r.default.dispatch({type:o.DESTROY_A_ROOM,roomId:e})},destroyAllRoom:function(){r.default.dispatch({type:o.DESTROY_ALL_ROOM})},reRenderAllRooms:function(){r.default.dispatch({type:o.RERENDER_ALL_ROOMS})},minimizeARoom:function(e,t){r.default.dispatch({type:o.MINIMIZE_A_ROOM,roomId:e,isMinimized:t})},rename:function(e,t){r.default.dispatch({type:o.RENAME_A_ROOM,rId:e,title:t})},caculateNewMessages:function(){r.default.dispatch({type:o.CACULATE_NEW_MESSAGES_FOR_ALL_ROOM})},refeshARoom:function(e){r.default.dispatch({type:o.REFESH_A_ROOM_BY_ROOM_ID,roomId:e})},startTyping:function(e){r.default.dispatch({type:o.USER_IS_START_TYPING_IN_A_ROOM,data:e})},stopTyping:function(e){r.default.dispatch({type:o.USER_IS_STOP_TYPING_IN_A_ROOM,data:e})},markMessagesIsLoaded:function(e){r.default.dispatch({type:o.MARK_MESSAGES_IS_LOADED_FOR_A_ROOM,roomId:e})},setRoomHasUnreadMsg:function(e){r.default.dispatch({type:o.SET_ROOM_HAS_UNREAD_MESSAGE,rooms:e})},removeUser:function(e,t){r.default.dispatch({type:o.REMOVE_A_USER_IN_A_ROOM,rId:e,uId:t})}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={add:function(e){r.default.dispatch({type:o.USER_ADD_CALLBACK,users:e})},stopUpdateMissingUser:function(e){r.default.dispatch({type:o.STOP_UPDATE_MISSING_USER,yes:e})}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={openReportModal:function(e){r.default.dispatch({type:o.POUP_OPEN_REPORT_MODAL,rId:e})},openRenameModal:function(e){r.default.dispatch({type:o.POUP_OPEN_RENAME_MODAL,rId:e})},openAlertModal:function(e){r.default.dispatch({type:o.POUP_OPEN_ALERT_MODAL,config:e})},openAlertYesNoModal:function(e){r.default.dispatch({type:o.POUP_OPEN_ALERT_YES_NO_MODAL,config:e})},openRTCSupportedAlertModal:function(e){r.default.dispatch({type:o.POUP_OPEN_RTC_SUPPORTED_ALERT_MODAL,config:e})},closeRTCSupportedAlertModal:function(){r.default.dispatch({type:o.POUP_CLOSE_RTC_SUPPORTED_ALERT_MODAL})},openVideoCallSettingModal:function(e){r.default.dispatch({type:o.POPUP_OPEN_VIDEO_CALL_SETTING_MODAL,config:e})},closeVideoCallSettingModal:function(){r.default.dispatch({type:o.POPUP_CLOSE_VIDEO_CALL_SETTING_MODAL})},closeModal:function(e){r.default.dispatch({type:o.POPUP_CLOSE_MODAL,closeType:e})}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(18));function i(e){return e&&e.__esModule?e:{default:e}} /* Copyright (c) SocialLOFT LLC * mooSocial - The Web 2.0 Social Network Software * @website: http://www.moosocial.com * @author: mooSocial * @license: https://moosocial.com/license/ */var o=i(n(9)).default.ActionTypes,a={setMessagesIsSeen:function(e){r.default.dispatch({type:o.SET_ROOM_MESSAGES_IS_SEEN,roomId:e})},markReadAllMessagesCallback:function(){r.default.dispatch({type:o.MARK_READ_ALL_MESSAGES})}};t.default=a},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,r){var i;e.exports=E,E.ReadableState=x;n(20).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(204),s=n(4).Buffer,u=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=n(351);c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,p,h=n(352),m=n(205),g=n(206).getHighWaterMark,v=n(61).codes,y=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,_=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2)(E,a);var k=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){i=i||n(62),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(40).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function E(e){if(i=i||n(62),!(this instanceof E))return new E(e);var t=this instanceof i;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function j(e,t,n,r,i){c("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?k(e,new w):C(e,a,t,!0);else if(a.ended)k(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?C(e,a,t,!1):R(e,a)):C(e,a,t,!1)}else r||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(T,e))}function T(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):A(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){k(this,new _("_read()"))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:g;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",g),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",l);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),g(),e.removeListener("error",p),0===o(e,"error")&&k(e,t)}function h(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?A(this):i.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(M,this),n},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n(11),n(5))},function(e,t,n){"use strict";e.exports=l;var r=n(61).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(62);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(379),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){"use strict";var r=n(381).Buffer,i=n(382).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(2)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,n){"use strict";(function(t,r){var i;e.exports=E,E.ReadableState=x;n(20).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(218),s=n(4).Buffer,u=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,l=n(383);c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,p,h=n(384),m=n(219),g=n(220).getHighWaterMark,v=n(64).codes,y=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,_=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2)(E,a);var k=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,r){i=i||n(65),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(40).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function E(e){if(i=i||n(65),!(this instanceof E))return new E(e);var t=this instanceof i;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function j(e,t,n,r,i){c("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?k(e,new w):C(e,a,t,!0);else if(a.ended)k(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?C(e,a,t,!1):R(e,a)):C(e,a,t,!1)}else r||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(T,e))}function T(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):A(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){k(this,new _("_read()"))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:g;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",g),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",l);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),g(),e.removeListener("error",p),0===o(e,"error")&&k(e,t)}function h(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?A(this):i.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(M,this),n},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n(11),n(5))},function(e,t,n){"use strict";e.exports=l;var r=n(64).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(65);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+p(n[v-15])+n[v-16];for(var y=0;y<64;++y){var b=g+d(u)+c(u,h,m)+a[y]+n[y]|0,_=f(r)+l(r,i,o)|0;g=m,m=h,h=u,u=s+b|0,s=o,o=i,i=r,r=b+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,n){var r=n(2),i=n(66),o=n(3).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,y=0|this._gh,b=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,S=0|this._dl,x=0|this._el,E=0|this._fl,j=0|this._gl,C=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var A=t[O-30],T=t[O-30+1],R=p(A,T),P=h(T,A),M=m(A=t[O-4],T=t[O-4+1]),I=g(T,A),N=t[O-14],D=t[O-14+1],L=t[O-32],F=t[O-32+1],B=P+D|0,z=R+N+v(B,P)|0;z=(z=z+M+v(B=B+I|0,I)|0)+L+v(B=B+F|0,F)|0,t[O]=z,t[O+1]=B}for(var U=0;U<160;U+=2){z=t[U],B=t[U+1];var q=l(n,r,i),H=l(_,w,k),W=f(n,_),V=f(_,n),K=d(s,x),$=d(x,s),G=a[U],Y=a[U+1],Z=c(s,u,y),X=c(x,E,j),Q=C+$|0,J=b+K+v(Q,C)|0;J=(J=(J=J+Z+v(Q=Q+X|0,X)|0)+G+v(Q=Q+Y|0,Y)|0)+z+v(Q=Q+B|0,B)|0;var ee=V+H|0,te=W+q+v(ee,V)|0;b=y,C=j,y=u,j=E,u=s,E=x,s=o+J+v(x=S+Q|0,S)|0,o=i,S=k,i=r,k=w,r=n,w=_,n=J+te+v(_=Q+ee|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+j|0,this._hl=this._hl+C|0,this._ah=this._ah+n+v(this._al,_)|0,this._bh=this._bh+r+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,k)|0,this._dh=this._dh+o+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,x)|0,this._fh=this._fh+u+v(this._fl,E)|0,this._gh=this._gh+y+v(this._gl,j)|0,this._hh=this._hh+b+v(this._hl,C)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,n){"use strict";(function(t,r){var i=n(105);e.exports=b;var o,a=n(202);b.ReadableState=y;n(20).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(226),c=n(3).Buffer,l=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(79));f.inherits=n(2);var d=n(394),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n(395),g=n(227);f.inherits(b,u);var v=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(56));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(40).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(56),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):E(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){p("emit readable"),e.emit("readable"),A(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){p("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!d&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",v),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;on)?t=("rmd160"===e?new u:c(e)).update(t).digest():t.lengthn||t!=t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t,n){var r;if(t.process&&t.process.browser)r="utf-8";else if(t.process&&t.process.version){r=parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,n(11),n(5))},function(e,t,n){var r=n(230),i=n(142),o=n(143),a=n(3).Buffer,s=n(233),u=n(234),c=n(236),l=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var s=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},t.rip=function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.pc1=function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u>>r[u]&1;for(u=s;u>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>o[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,e.keys,a)}},u.prototype._update=function(e,t,n,r){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r>>0,a=d}o.rip(s,a,r,i)},u.prototype._decrypt=function(e,t,n,r,i){for(var a=n,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=o.substitute(c,l),d=a;a=(s^o.permute(f))>>>0,s=d}o.rip(a,s,r,i)}},function(e,t,n){var r=n(80),i=n(3).Buffer,o=n(240);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;se;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;n.mod(l).cmp(f);)n.iadd(p)}else for(;n.mod(o).cmp(d);)n.iadd(p);if(g(h=n.shrn(1))&&g(n)&&v(h)&&v(n)&&a.test(h)&&a.test(n))return n}}},function(e,t,n){var r=n(16),i=n(148);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(o);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var p=1;p0;t--){var l=this._randrange(new r(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var p=1;p0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?k(e,new w):C(e,a,t,!0);else if(a.ended)k(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?C(e,a,t,!1):R(e,a)):C(e,a,t,!1)}else r||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(T,e))}function T(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):A(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){k(this,new _("_read()"))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:g;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",g),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",l);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),g(),e.removeListener("error",p),0===o(e,"error")&&k(e,t)}function h(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?A(this):i.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(M,this),n},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n(11),n(5))},function(e,t,n){"use strict";e.exports=l;var r=n(67).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(68);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(108),r.short=n(436),r.mont=n(437),r.edwards=n(438)},function(e,t,n){"use strict";var r=n(38).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(38),i=n(81),o=n(254),a=n(31),s=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[n||"universal"]<<6,i}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=o,e[1]=r.length,this._createEncoderBuffer([e,r])}let s=1;for(let e=r.length;e>=256;e>>=8)s++;const u=i.alloc(2+s);u[0]=o,u[1]=128|s;for(let e=1+s,t=r.length;t>0;e--,t>>=8)u[e]=255&t;return this._createEncoderBuffer([u,r])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;n>>=7)r++}const o=i.alloc(r);let a=o.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(o[a--]=127&n;(n>>=7)>0;)o[a--]=128|127&n}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;te._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(5),n(4).Buffer,n(11))},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},function(e,t,n){e.exports={Verifier:c,Signer:l};var r=n(86),i=n(48),o=n(14),a=n(10),s=n(12).Buffer,u=n(42);function c(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],i.Writable.call(this,{})}function l(e,t){if("sha512"!==t.toLowerCase())throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=e,this.chunks=[],i.Writable.call(this,{})}o.inherits(c,i.Writable),c.prototype._write=function(e,t,n){this.chunks.push(e),n()},c.prototype.update=function(e){"string"==typeof e&&(e=s.from(e,"binary")),this.chunks.push(e)},c.prototype.verify=function(e,t){var n;if(u.isSignature(e,[2,0])){if("ed25519"!==e.type)return!1;n=e.toBuffer("raw")}else if("string"==typeof e)n=s.from(e,"base64");else if(u.isSignature(e,[1,0]))throw new Error("signature was created by too old a version of sshpk and cannot be verified");return a.buffer(n),r.sign.detached.verify(new Uint8Array(s.concat(this.chunks)),new Uint8Array(n),new Uint8Array(this.key.part.A.data))},o.inherits(l,i.Writable),l.prototype._write=function(e,t,n){this.chunks.push(e),n()},l.prototype.update=function(e){"string"==typeof e&&(e=s.from(e,"binary")),this.chunks.push(e)},l.prototype.sign=function(){var e=r.sign.detached(new Uint8Array(s.concat(this.chunks)),new Uint8Array(s.concat([this.key.part.k.data,this.key.part.A.data]))),t=s.from(e),n=u.parse(t,"ed25519","raw");return n.hashAlgorithm="sha512",n}},function(e,t,n){e.exports={read:function(e,t){if("string"==typeof e){if(e.trim().match(/^[-]+[ ]*BEGIN/))return o.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return a.read(e,t);if(e.match(/^\s*ecdsa-/))return a.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return c.read(e,t);if(l(e))return u.read(e,t);e=i.from(e,"binary")}else{if(r.buffer(e),function(e){var t=0;for(;te.length||"BEGIN"!==e.slice(t,t+5).toString("ascii"))}(e))return o.read(e,t);if(function(e){var t=0;for(;t=t&&(i=0),r=r<<8|e[i];return r}o.prototype.encipher=function(e,t){void 0===t&&(t=new Uint8Array(e.buffer),0!==e.byteOffset&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var n=1;n<16;n+=2)e[1]^=a(this.S,t,0)^this.P[n],e[0]^=a(this.S,t,4)^this.P[n+1];var r=e[0];e[0]=e[1]^this.P[17],e[1]=r},o.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);0!==e.byteOffset&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var n=16;n>0;n-=2)e[1]^=a(this.S,t,0)^this.P[n],e[0]^=a(this.S,t,4)^this.P[n-1];var r=e[0];e[0]=e[1]^this.P[0],e[1]=r},o.prototype.expand0state=function(e,t){var n,r,o=new Uint32Array(2),a=new Uint8Array(o.buffer);for(n=0,i=0;n<18;n++)this.P[n]^=s(e,t);for(i=0,n=0;n<18;n+=2)this.encipher(o,a),this.P[n]=o[0],this.P[n+1]=o[1];for(n=0;n<4;n++)for(r=0;r<256;r+=2)this.encipher(o,a),this.S[n][r]=o[0],this.S[n][r+1]=o[1]},o.prototype.expandstate=function(e,t,n,r){var o,a,u=new Uint32Array(2);for(o=0,i=0;o<18;o++)this.P[o]^=s(n,r);for(o=0,i=0;o<18;o+=2)u[0]^=s(e,t),u[1]^=s(e,t),this.encipher(u),this.P[o]=u[0],this.P[o+1]=u[1];for(o=0;o<4;o++)for(a=0;a<256;a+=2)u[0]^=s(e,t),u[1]^=s(e,t),this.encipher(u),this.S[o][a]=u[0],this.S[o][a+1]=u[1];i=0},o.prototype.enc=function(e,t){for(var n=0;n>>24,n[4*r+2]=a[r]>>>16,n[4*r+1]=a[r]>>>8,n[4*r+0]=a[r]}e.exports={BLOCKS:8,HASHSIZE:32,hash:u,pbkdf:function(e,t,n,i,o,a,s){var c,l,f,d,p,h,m=new Uint8Array(64),g=new Uint8Array(64),v=new Uint8Array(32),y=new Uint8Array(32),b=new Uint8Array(i+4),_=a;if(s<1)return-1;if(0===t||0===i||0===a||a>v.byteLength*v.byteLength||i>1<<20)return-1;for(d=Math.floor((a+v.byteLength-1)/v.byteLength),f=Math.floor((a+d-1)/d),c=0;c0;h++){for(b[i+0]=h>>>24,b[i+1]=h>>>16,b[i+2]=h>>>8,b[i+3]=h,r(g,b,i+4),u(m,g,y),c=v.byteLength;c--;)v[c]=y[c];for(c=1;c=_);c++)o[p]=v[c];a-=c}return 0}}},function(e,t,n){e.exports={read:function(e,t){"string"!=typeof e&&(r.buffer(e,"buf"),e=e.toString("ascii"));var n=e.trim().replace(/[\\\r]/g,""),a=n.match(s);a||(a=n.match(u));r.ok(a,"key must match regex");var c,l=o.algToKeyType(a[1]),f=i.from(a[2],"base64"),d={};if(a[4])try{c=o.read(f)}catch(e){a=n.match(u),r.ok(a,"key must match regex"),f=i.from(a[2],"base64"),c=o.readInternal(d,"public",f)}else c=o.readInternal(d,"public",f);if(r.strictEqual(l,c.type),a[4]&&a[4].length>0)c.comment=a[4];else if(d.consumed){var p=a[2]+(a[3]?a[3]:""),h=4*Math.ceil(d.consumed/3);for(p=p.slice(0,h-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+p.slice(h-2),d.consumed%3>0&&"="!==p.slice(h-1,h)&&h--;"="===p.slice(h,h+1);)h++;var m=p.slice(h);(m=m.replace(/[\r\n]/g," ").replace(/^\s+/,"")).match(/^[a-zA-Z0-9]/)&&(c.comment=m)}return c},write:function(e,t){if(r.object(e),!a.isKey(e))throw new Error("Must be a public key");var n=[],s=o.keyTypeToAlg(e);n.push(s);var u=o.write(e);n.push(u.toString("base64")),e.comment&&n.push(e.comment);return i.from(n.join(" "))}};var r=n(10),i=n(12).Buffer,o=n(50),a=(n(23),n(21)),s=(n(22),n(113),/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/),u=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/},function(e,t,n){e.exports={read:function(e,t){"string"==typeof e&&(e=o.from(e,"binary"));r.buffer(e,"buf");var n=new i.BerReader(e);if(n.readSequence(),Math.abs(n.length-n.remain)>1)throw new Error("DER sequence does not contain whole byte stream");var d=n.offset;n.readSequence();var h=n.offset+n.length,m=h;if(n.peek()===f(0)){n.readSequence(f(0));var g=n.readInt();r.ok(g<=3,"only x.509 versions up to v3 supported")}var v={signatures:{}},b=v.signatures.x509={};b.extras={},v.serial=function(e,t){return r.strictEqual(e.peek(),i.Ber.Integer,t+" is not an Integer"),a.mpNormalize(e.readString(i.Ber.Integer,!0))}(n,"serial"),n.readSequence();var _=n.offset+n.length,w=n.readOID();if(void 0===p[w])throw new Error("unknown signature algorithm "+w);n._offset=_,v.issuer=s.parseAsn1(n),n.readSequence(),v.validFrom=y(n),v.validUntil=y(n),v.subjects=[s.parseAsn1(n)],n.readSequence(),_=n.offset+n.length,v.subjectKey=l.readPkcs8(void 0,"public",n),n._offset=_,n.peek()===f(1)&&(n.readSequence(f(1)),b.extras.issuerUniqueID=e.slice(n.offset,n.offset+n.length),n._offset+=n.length);n.peek()===f(2)&&(n.readSequence(f(2)),b.extras.subjectUniqueID=e.slice(n.offset,n.offset+n.length),n._offset+=n.length);if(n.peek()===f(3)){n.readSequence(f(3));var k=n.offset+n.length;for(n.readSequence();n.offset=60?o-1:o;n.setUTCFullYear(a,parseInt(t[2],10)-1,parseInt(t[3],10)),n.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&t[6].length>0&&n.setUTCSeconds(parseInt(t[6],10));return n}(e.readString(i.Ber.UTCTime));if(e.peek()===i.Ber.GeneralizedTime)return function(e){var t=e.match(j);r.ok(t);var n=new Date;n.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10)),n.setUTCHours(parseInt(t[4],10),parseInt(t[5],10)),t[6]&&t[6].length>0&&n.setUTCSeconds(parseInt(t[6],10));return n}(e.readString(i.Ber.GeneralizedTime));throw new Error("Unsupported date format")}function b(e,t){var n,r;t.getUTCFullYear()>=2050||t.getUTCFullYear()<1950?e.writeString((r="",r+=C((n=t).getUTCFullYear(),4),r+=C(n.getUTCMonth()+1),r+=C(n.getUTCDate()),r+=C(n.getUTCHours()),r+=C(n.getUTCMinutes()),r+=C(n.getUTCSeconds()),r+="Z"),i.Ber.GeneralizedTime):e.writeString(function(e){var t="";return t+=C(e.getUTCFullYear()%100),t+=C(e.getUTCMonth()+1),t+=C(e.getUTCDate()),t+=C(e.getUTCHours()),t+=C(e.getUTCMinutes()),t+=C(e.getUTCSeconds()),t+="Z"}(t),i.Ber.UTCTime)}var _={OtherName:f(0),RFC822Name:d(1),DNSName:d(2),X400Address:f(3),DirectoryName:f(4),EDIPartyName:f(5),URI:d(6),IPAddress:d(7),OID:d(8)},w={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"},k={};Object.keys(w).forEach((function(e){k[w[e]]=e}));var S=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function x(e,t,n){n.readSequence();var r,o,a=n.offset+n.length,u=n.readOID(),c=e.signatures.x509;switch(c.extras.exts||(c.extras.exts=[]),n.peek()===i.Ber.Boolean&&(o=n.readBoolean()),u){case m:n.readSequence(i.Ber.OctetString),n.readSequence();var l=n.offset+n.length,f=!1;n.peek()===i.Ber.Boolean&&(f=n.readBoolean()),void 0===e.purposes&&(e.purposes=[]),!0===f&&e.purposes.push("ca");var d={oid:u,critical:o};n.offset0||"host"===o.type||void 0!==e.purposes&&e.purposes.length>0||n.extras&&n.extras.exts){t.startSequence(f(3)),t.startSequence();var u=[];void 0!==e.purposes&&e.purposes.length>0&&(u.push({oid:m,critical:!0}),u.push({oid:g,critical:!0}),u.push({oid:v,critical:!0})),u.push({oid:h}),n.extras&&n.extras.exts&&(u=n.extras.exts);for(var c=0;c0)throw new Error("non-zero precision not supported");switch(t.match(/-/)&&(c=!0),t.match(/0/)&&(l="0"),t.match(/\+/)&&(f=!0),a){case"s":if(null==d)throw new Error("argument "+y+": attempted to print undefined or null as a string");v+=s(l,n,c,d.toString());break;case"d":d=Math.floor(d);case"f":v+=(f=f&&d>0?"+":"")+s(l,n,c,d.toString());break;case"x":v+=s(l,n,c,d.toString(16));break;case"j":0===n&&(n=10),v+=i.inspect(d,!1,n);break;case"r":v+=u(d);break;default:throw new Error("unsupported conversion: "+a)}}else v+="%";return v+=e}function a(e){var t=Array.prototype.slice.call(arguments,1);return e.write(o.apply(this,t))}function s(e,t,n,r){for(var i=r;i.length=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Array.isArray(t)&&!Array.isArray(n)&&(a=o(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),a)}}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){"use strict";var r=n(70);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n",y=p?">":"<",b=void 0;if(!d&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(h+" must be number or boolean");if(g){var _=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,k="exclType"+o,S="exclIsNumber"+o,x="' + "+(C="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+_+"; ",i+=" var "+w+"; var "+k+" = typeof "+(_="schemaExcl"+o)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { ";var E;b=h;(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var j=i;i=E.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+j+"]); ":i+=" validate.errors = ["+j+"]; return false; ":i+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+k+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+_+" "+v+"= "+r+") ? "+f+" "+y+"= "+_+" : "+f+" "+y+" "+r+" ) : ( ("+w+" = "+_+" === true) ? "+f+" "+y+"= "+r+" : "+f+" "+y+" "+r+" ) || "+f+" !== "+f+") { var op"+o+" = "+w+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(b=h,c=e.errSchemaPath+"/"+h,r=_,d=g)}else{x=v;if((S="number"==typeof m)&&d){var C="'"+x+"'";i+=" if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+m+" "+v+"= "+r+" ? "+f+" "+y+"= "+m+" : "+f+" "+y+" "+r+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=h,c=e.errSchemaPath+"/"+h,r=m,y+="="):(S&&(r=Math[p?"min":"max"](m,s)),m===(!S||r)?(w=!0,b=h,c=e.errSchemaPath+"/"+h,y+="="):(w=!1,x+="="));C="'"+x+"'";i+=" if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+" "+y+" "+r+" || "+f+" !== "+f+") { "}}b=b||t,(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+C+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+x+" ",i+=d?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";j=i;return i=E.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+j+"]); ":i+=" validate.errors = ["+j+"]; return false; ":i+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var p=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+p+" "+r+") { ";var h=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var p=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},S=v;S.l=w,S.i=_,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(174),i=n(597),o=n(607),a=n(608);t.polling=function(e){var t=!1,n=!1,a=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,u=location.port;u||(u=s?443:80),t=e.hostname!==location.hostname||u!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new i(e);if(!a)throw new Error("JSONP disabled");return new o(e)},t.websocket=a},function(e,t,n){var r=n(176),i=n(114),o=n(71),a=n(115),s=n(297),u=n(116)("engine.io-client:polling");e.exports=l;var c=null!=new(n(174))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}a(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){u("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--r||n()}))),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){u("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;u("polling got data %s",e);o.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){u("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};o.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var r=n(599),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,s=n.length;i0);return t}function c(){var e=u(+new Date);return e!==r?(a=0,r=e):e+"."+u(a++)}for(;s<64;s++)o[i[s]]=s;c.encode=u,c.decode=function(e){var t=0;for(s=0;s=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,a.ctx.currentTime);for(var n=0;n=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,h()),e},codecs:function(e){return(this||a)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||a;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||a,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",i=r.match(/OPR\/([0-6].)/g),o=i&&parseInt(i[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),u=r.match(/Version\/(.*?) /),c=s&&u&&parseInt(u[1],10)<15;return e._codecs={mp3:!(o||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(c||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(c||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||a;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length0?s._seek:n._sprite[e][0]/1e3),l=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-c),f=1e3*l/Math.abs(s._rate),d=n._sprite[e][0]/1e3,p=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var h=function(){s._paused=!1,s._seek=c,s._start=d,s._stop=p,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(c>=p)){var m=s._node;if(n._webAudio){var g=function(){n._playLock=!1,h(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,a.ctx.currentTime),s._playStart=a.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,c,86400):m.bufferSource.noteGrainOn(0,c,l):s._loop?m.bufferSource.start(0,c,86400):m.bufferSource.start(0,c,l),f!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),f)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===a.state&&"interrupted"!==a.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(s._id))}else{var v=function(){m.currentTime=c,m.muted=s._muted||n._muted||a._muted||m.muted,m.volume=s._volume*a.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,h(),r.then((function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,h(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),f):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&a._navigator.isCocoonJS;if(m.readyState>=3||y)v();else{n._playLock=!0,n._state="loading";var b=function(){n._state="loaded",v(),m.removeEventListener(a._canPlayEvent,b,!1)};m.addEventListener(a._canPlayEvent,b,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var u=0;u0?r/c:r),f=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var i=(Date.now()-f)/r;f=Date.now(),s+=u*i,s=Math.round(100*s)/100,s=u<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(nt&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),l)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(a.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;e=i[0],r._loop=e}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var o=r._getSoundIds(t),a=0;a=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var u=0;u=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var u=n.playing(t)?a.ctx.currentTime-s._playStart:0,c=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(c+u*Math.abs(s._rate))}return s._node.currentTime}var l=n.playing(t);l&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var f=function(){l&&n.play(t,!0),n._emit("seek",t)};if(l&&!n._webAudio){var d=function(){n._playLock?setTimeout(d,0):f()};setTimeout(d,0)}else f()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n=0&&a._howls.splice(r,1);var i=!0;for(n=0;n=0){i=!1;break}return c&&i&&delete c[e._src],a.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n=0;if(a._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=a._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(a._navigator&&a._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var u=function(e){this._parent=e,this.init()};u.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=a._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),this._node.gain.setValueAtTime(t,a.ctx.currentTime),this._node.paused=!0,this._node.connect(a.masterGain)):a.noAudio||(this._node=a._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(a._canPlayEvent,this._loadFn,!1),this._endFn=this._endListener.bind(this),this._node.addEventListener("ended",this._endFn,!1),this._node.src=e._src,this._node.preload=!0===e._preload?"auto":e._preload,this._node.volume=t*a.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(a._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}};var c={},l=function(e){var t=e._src;if(c[t])return e._duration=c[t].duration,void p(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i0?(c[t._src]=e,p(t,e)):n()};"undefined"!=typeof Promise&&1===a.ctx.decodeAudioData.length?a.ctx.decodeAudioData(e).then(r).catch(n):a.ctx.decodeAudioData(e,r,n)},p=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},h=function(){if(a.usingWebAudio){try{"undefined"!=typeof AudioContext?a.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?a.ctx=new webkitAudioContext:a.usingWebAudio=!1}catch(e){a.usingWebAudio=!1}a.ctx||(a.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(a._navigator&&a._navigator.platform),t=a._navigator&&a._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(a._navigator&&a._navigator.userAgent.toLowerCase());a._navigator&&!r&&(a.usingWebAudio=!1)}a.usingWebAudio&&(a.masterGain=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),a.masterGain.gain.setValueAtTime(a._muted?0:a._volume,a.ctx.currentTime),a.masterGain.connect(a.ctx.destination)),a._setup()}};void 0===(i=function(){return{Howler:a,Howl:s}}.apply(t,[]))||(e.exports=i),t.Howler=a,t.Howl=s,void 0!==r?(r.HowlerGlobal=o,r.Howler=a,r.Howl=s,r.Sound=u):"undefined"!=typeof window&&(window.HowlerGlobal=o,window.Howler=a,window.Howl=s,window.Sound=u)}(), /*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.2.3 * howlerjs.com * * (c) 2013-2020, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,o){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,r="number"!=typeof r?a[3]:r,i="number"!=typeof i?a[4]:i,o="number"!=typeof o?a[5]:o,"number"!=typeof e?a:(this._orientation=[e,t,n,r,i,o],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,o),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var o=r._getSoundIds(n),a=0;a0?t[0].get("id"):0}return 0},isScrollToBottom:function(e){return v.get(e,new g).get("isScrollToBottom")},isAllowedLoadMoreMessages:function(e){return v.get(e,new g).get("isAllowedLoadMoreMessages")},isMessageLoading:function(e){return v.get(e,new g).get("isMessageLoading")},setMessageLoading:function(e){b(e,{isMessageLoading:!0,isScrollToBottom:!1}),this.emitChange(e)}});S.dispatchToken=r.default.register((function(e){switch(e.type){case y.GET_MESSAGE_FOR_A_ROOM_CALLBACK:!function(e){if(e.hasOwnProperty("id")&&e.hasOwnProperty("messages")){var t=v.get(e.id,new g).get("messages");if(w(e.id,e.messages),b(e.id,{isScrollToBottom:!0,scrollToIfNeed:0,isAllowedLoadMoreMessages:!0,isMessageLoading:!1}),S.emitChange(e.id),0==t.size){var n=!1;c.default.isArray(e.messages)&&e.messages.forEach((function(e){e.unseen>0&&(n=!0)})),n&&l.default.emitChange()}}}(e.data);break;case y.GET_MESSAGE_MORE_FOR_A_ROOM_CALLBACK:!function(e){if(e.hasOwnProperty("id")&&e.hasOwnProperty("messages")){var t={};v.get(e.id,new g);c.default.isArray(e.messages)?(w(e.id,e.messages),t={isScrollToBottom:!1,scrollToIfNeed:e.scrollIfNeed}):t={isAllowedLoadMoreMessages:!1},t.isMessageLoading=!1,b(e.id,t),S.emitChange(e.id)}}(e.data);break;case y.UN_SEND_A_MESSAGE:t=e.messageId,n=e.roomId,r=v.get(n,new g),(i=r.get("messages",u.default.Map())).has(t)&&(i=i.update(t,(function(e){return e.set("type","unsend")})),r=r.set("messages",i),v=v.set(n,r),S.emitChange(n));break;case y.DELETE_ALL_MESSAGE_MORE_FOR_A_ROOM:!function(e){var t=v.get(e,new g);t=t.set("messages",u.default.Map()),v=v.set(e,t)}(e.rId)}var t,n,r,i})),t.default=S},function(e,t,n){"use strict";n.r(t),n.d(t,"hexToRgb",(function(){return r.h})),n.d(t,"rgbToHex",(function(){return r.l})),n.d(t,"hslToRgb",(function(){return r.i})),n.d(t,"decomposeColor",(function(){return r.c})),n.d(t,"recomposeColor",(function(){return r.k})),n.d(t,"getContrastRatio",(function(){return r.f})),n.d(t,"getLuminance",(function(){return r.g})),n.d(t,"emphasize",(function(){return r.d})),n.d(t,"fade",(function(){return r.e})),n.d(t,"alpha",(function(){return r.a})),n.d(t,"darken",(function(){return r.b})),n.d(t,"lighten",(function(){return r.j})),n.d(t,"createTheme",(function(){return i.b})),n.d(t,"createMuiTheme",(function(){return i.a})),n.d(t,"unstable_createMuiStrictModeTheme",(function(){return a})),n.d(t,"createStyles",(function(){return s})),n.d(t,"makeStyles",(function(){return f})),n.d(t,"responsiveFontSizes",(function(){return _})),n.d(t,"styled",(function(){return O})),n.d(t,"easing",(function(){return A.c})),n.d(t,"duration",(function(){return A.b})),n.d(t,"useTheme",(function(){return T.a})),n.d(t,"withStyles",(function(){return R.a})),n.d(t,"withTheme",(function(){return I})),n.d(t,"createGenerateClassName",(function(){return N.a})),n.d(t,"jssPreset",(function(){return D.a})),n.d(t,"ServerStyleSheets",(function(){return U})),n.d(t,"StylesProvider",(function(){return z.b})),n.d(t,"MuiThemeProvider",(function(){return W})),n.d(t,"ThemeProvider",(function(){return W}));var r=n(36),i=n(91),o=n(711);function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return Object(c.a)(e,Object(u.a)({defaultTheme:l.a},t))},d=n(324),p=n(60);function h(e){return String(parseFloat(e)).length===String(e).length}function m(e){return parseFloat(e)}function g(e){return function(t,n){var r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;var i=m(t);if("px"!==r)if("em"===r)i=m(t)*m(e);else if("rem"===r)return i=m(t)*m(e),t;var o=i;if("px"!==n)if("em"===n)o=i/m(e);else{if("rem"!==n)return t;o=i/m(e)}return parseFloat(o.toFixed(5))+n}}function v(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,r=void 0===n?["sm","md","lg"]:n,i=t.disableAlign,o=void 0!==i&&i,a=t.factor,s=void 0===a?2:a,c=t.variants,l=void 0===c?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:c,f=Object(u.a)({},e);f.typography=Object(u.a)({},f.typography);var p=f.typography,m=g(p.htmlFontSize),_=r.map((function(e){return f.breakpoints.values[e]}));return l.forEach((function(e){var t=p[e],n=parseFloat(m(t.fontSize,"rem"));if(!(n<=1)){var r=n,i=1+(r-1)/s,a=t.lineHeight;if(!h(a)&&!o)throw new Error(Object(d.a)(6));h(a)||(a=parseFloat(m(a,"rem"))/parseFloat(n));var c=null;o||(c=function(e){return v({size:e,grid:y({pixels:4,lineHeight:a,htmlFontSize:p.htmlFontSize})})}),p[e]=Object(u.a)({},t,b({cssProperty:"fontSize",min:i,max:r,unit:"rem",breakpoints:_,transform:c}))}})),f}var w=n(8),k=n(0),S=n.n(k),x=n(17),E=n(103),j=n.n(E);function C(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var O=function(e){var t=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,i=Object(w.a)(n,["name"]);var o,a=r,s="function"==typeof t?function(e){return{root:function(n){return t(Object(u.a)({theme:e},n))}}}:{root:t},l=Object(c.a)(s,Object(u.a)({Component:e,name:r||e.displayName,classNamePrefix:a},i));t.filterProps&&(o=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var f=S.a.forwardRef((function(t,n){var r=t.children,i=t.className,a=t.clone,s=t.component,c=Object(w.a)(t,["children","className","clone","component"]),f=l(t),d=Object(x.a)(f.root,i),p=c;if(o&&(p=C(p,o)),a)return S.a.cloneElement(r,Object(u.a)({className:Object(x.a)(r.props.className,d)},p));if("function"==typeof r)return r(Object(u.a)({className:d},p));var h=s||e;return S.a.createElement(h,Object(u.a)({ref:n,className:d},p),r)}));return j()(f,e),f}}(e);return function(e,n){return t(e,Object(u.a)({defaultTheme:l.a},n))}},A=n(179),T=n(190),R=n(28),P=n(673);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=S.a.forwardRef((function(n,r){var i=n.innerRef,o=Object(w.a)(n,["innerRef"]),a=Object(P.a)()||t;return S.a.createElement(e,Object(u.a)({theme:a,ref:i||r},o))}));return j()(n,e),n};return n}M();var I=M({defaultTheme:l.a}),N=n(674),D=n(325),L=n(310),F=n(96),B=n(29),z=n(712),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(L.a)(this,e),this.options=t}return Object(F.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new B.b;var n=Object(N.a)();return S.a.createElement(z.b,Object(u.a)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S.a.createElement("style",Object(u.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),q=n(182),H=n(183);var W=function(e){var t=e.children,n=e.theme,r=Object(P.a)(),i=S.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(u.a)({},e,t)}(r,n);return null!=e&&(e[H.a]=null!==r),e}),[n,r]);return S.a.createElement(q.a.Provider,{value:i},t)}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o */ const r=n(344)("simple-peer"),i=n(347),o=n(55),a=n(350),s=n(358),u=n(359),{Buffer:c}=n(4);function l(e){return e.replace(/a=ice-options:trickle\s\n/g,"")}class f extends a.Duplex{constructor(e){if(super(e=Object.assign({allowHalfOpen:!1},e)),this._id=o(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||o(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||f.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},f.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(e=>e),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=void 0===e.trickle||e.trickle,this.allowHalfTrickle=void 0!==e.allowHalfTrickle&&e.allowHalfTrickle,this.iceCompleteTimeout=e.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&"object"==typeof e.wrtc?e.wrtc:i(),!this._wrtc)throw"undefined"==typeof window?u(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):u(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(e){return void this.destroy(u(e,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc="number"==typeof this._pc._peerConnectionId,this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=e=>{this._onIceCandidate(e)},"object"==typeof this._pc.peerIdentity&&this._pc.peerIdentity.catch(e=>{this.destroy(u(e,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=e=>{this._setupData(e)},this.streams&&this.streams.forEach(e=>{this.addStream(e)}),this._pc.ontrack=e=>{this._onTrack(e)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&"open"===this._channel.readyState}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e={}}this._debug("signal()"),e.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),e.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(e.transceiverRequest.kind,e.transceiverRequest.init)),e.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(e.candidate):this._pendingCandidates.push(e.candidate)),e.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(e=>{this._addIceCandidate(e)}),this._pendingCandidates=[],"offer"===this._pc.remoteDescription.type&&this._createAnswer())}).catch(e=>{this.destroy(u(e,"ERR_SET_REMOTE_DESCRIPTION"))}),e.sdp||e.candidate||e.renegotiate||e.transceiverRequest||this.destroy(u(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(e){const n=new this._wrtc.RTCIceCandidate(e);this._pc.addIceCandidate(n).catch(e=>{var r;!n.address||n.address.endsWith(".local")?(r="Ignoring unsupported ICE candidate.",t.warn(r)):this.destroy(u(e,"ERR_ADD_ICE_CANDIDATE"))})}send(e){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(e)}}addTransceiver(e,t){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(e,t),this._needsNegotiation()}catch(e){this.destroy(u(e,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:e,init:t}})}}addStream(e){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),e.getTracks().forEach(t=>{this.addTrack(t,e)})}}addTrack(e,t){if(this.destroying)return;if(this.destroyed)throw u(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const n=this._senderMap.get(e)||new Map;let r=n.get(t);if(r)throw r.removed?u(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):u(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED");r=this._pc.addTrack(e,t),n.set(t,r),this._senderMap.set(e,n),this._needsNegotiation()}replaceTrack(e,t,n){if(this.destroying)return;if(this.destroyed)throw u(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const r=this._senderMap.get(e),i=r?r.get(n):null;if(!i)throw u(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");t&&this._senderMap.set(t,r),null!=i.replaceTrack?i.replaceTrack(t):this.destroy(u(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK"))}removeTrack(e,t){if(this.destroying)return;if(this.destroyed)throw u(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const n=this._senderMap.get(e),r=n?n.get(t):null;if(!r)throw u(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{r.removed=!0,this._pc.removeTrack(r)}catch(e){"NS_ERROR_UNEXPECTED"===e.name?this._sendersAwaitingStable.push(r):this.destroy(u(e,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(e){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),e.getTracks().forEach(t=>{this.removeTrack(t,e)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,s(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw u(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(e){this._destroy(e,()=>{})}_destroy(e,t){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",e&&(e.message||e)),s(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch(e){}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch(e){}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,e&&this.emit("error",e),this.emit("close"),t()}))}_setupData(e){if(!e.channel)return this.destroy(u(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=e.channel,this._channel.binaryType="arraybuffer","number"==typeof this._channel.bufferedAmountLowThreshold&&(this._channel.bufferedAmountLowThreshold=65536),this.channelName=this._channel.label,this._channel.onmessage=e=>{this._onChannelMessage(e)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=e=>{const t=e.error instanceof Error?e.error:new Error(`Datachannel error: ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);this.destroy(u(t,"ERR_DATA_CHANNEL"))};let t=!1;this._closingInterval=setInterval(()=>{this._channel&&"closing"===this._channel.readyState?(t&&this._onChannelClose(),t=!0):t=!1},5e3)}_read(){}_write(e,t,n){if(this.destroyed)return n(u(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(e)}catch(e){return this.destroy(u(e,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>65536?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=n):n(null)}else this._debug("write before connect"),this._chunk=e,this._cb=n}_onFinish(){if(this.destroyed)return;const e=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?e():this.once("connect",e)}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=l(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp})};this._pc.setLocalDescription(e).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(u(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(u(e,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(e=>{e.mid||!e.sender.track||e.requested||(e.requested=!0,this.addTransceiver(e.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=l(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp}),this.initiator||this._requestMissingTransceivers()};this._pc.setLocalDescription(e).then(()=>{this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(u(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(u(e,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||"failed"===this._pc.connectionState&&this.destroy(u(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const e=this._pc.iceConnectionState,t=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",e,t),this.emit("iceStateChange",e,t),"connected"!==e&&"completed"!==e||(this._pcReady=!0,this._maybeReady()),"failed"===e&&this.destroy(u(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),"closed"===e&&this.destroy(u(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(e){const t=e=>("[object Array]"===Object.prototype.toString.call(e.values)&&e.values.forEach(t=>{Object.assign(e,t)}),e);0===this._pc.getStats.length||this._isReactNativeWebrtc?this._pc.getStats().then(n=>{const r=[];n.forEach(e=>{r.push(t(e))}),e(null,r)},t=>e(t)):this._pc.getStats.length>0?this._pc.getStats(n=>{if(this.destroyed)return;const r=[];n.result().forEach(e=>{const n={};e.names().forEach(t=>{n[t]=e.stat(t)}),n.id=e.id,n.type=e.type,n.timestamp=e.timestamp,r.push(t(n))}),e(null,r)},t=>e(t)):e(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const e=()=>{this.destroyed||this.getStats((t,n)=>{if(this.destroyed)return;t&&(n=[]);const r={},i={},o={};let a=!1;n.forEach(e=>{"remotecandidate"!==e.type&&"remote-candidate"!==e.type||(r[e.id]=e),"localcandidate"!==e.type&&"local-candidate"!==e.type||(i[e.id]=e),"candidatepair"!==e.type&&"candidate-pair"!==e.type||(o[e.id]=e)});const s=e=>{a=!0;let t=i[e.localCandidateId];t&&(t.ip||t.address)?(this.localAddress=t.ip||t.address,this.localPort=Number(t.port)):t&&t.ipAddress?(this.localAddress=t.ipAddress,this.localPort=Number(t.portNumber)):"string"==typeof e.googLocalAddress&&(t=e.googLocalAddress.split(":"),this.localAddress=t[0],this.localPort=Number(t[1])),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let n=r[e.remoteCandidateId];n&&(n.ip||n.address)?(this.remoteAddress=n.ip||n.address,this.remotePort=Number(n.port)):n&&n.ipAddress?(this.remoteAddress=n.ipAddress,this.remotePort=Number(n.portNumber)):"string"==typeof e.googRemoteAddress&&(n=e.googRemoteAddress.split(":"),this.remoteAddress=n[0],this.remotePort=Number(n[1])),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(n.forEach(e=>{"transport"===e.type&&e.selectedCandidatePairId&&s(o[e.selectedCandidatePairId]),("googCandidatePair"===e.type&&"true"===e.googActiveConnection||("candidatepair"===e.type||"candidate-pair"===e.type)&&e.selected)&&s(e)}),a||Object.keys(o).length&&!Object.keys(i).length){if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(t){return this.destroy(u(t,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const e=this._cb;this._cb=null,e(null)}"number"!=typeof this._channel.bufferedAmountLowThreshold&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")}else setTimeout(e,100)})};e()}_onInterval(){!this._cb||!this._channel||this._channel.bufferedAmount>65536||this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||("stable"===this._pc.signalingState&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(e=>{this._pc.removeTrack(e),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(e){this.destroyed||(e.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:e.candidate.candidate,sdpMLineIndex:e.candidate.sdpMLineIndex,sdpMid:e.candidate.sdpMid}}):e.candidate||this._iceComplete||(this._iceComplete=!0,this.emit("_iceComplete")),e.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(e){if(this.destroyed)return;let t=e.data;t instanceof ArrayBuffer&&(t=c.from(t)),this.push(t)}_onChannelBufferedAmountLow(){if(this.destroyed||!this._cb)return;this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const e=this._cb;this._cb=null,e(null)}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(e){this.destroyed||e.streams.forEach(t=>{this._debug("on track"),this.emit("track",e.track,t),this._remoteTracks.push({track:e.track,stream:t}),this._remoteStreams.some(e=>e.id===t.id)||(this._remoteStreams.push(t),s(()=>{this._debug("on stream"),this.emit("stream",t)}))})}_debug(){const e=[].slice.call(arguments);e[0]="["+this._id+"] "+e[0],r.apply(null,e)}}f.WEBRTC_SUPPORT=!!i(),f.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},f.channelConfig={},e.exports=f}).call(this,n(7))},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(5))},function(e,t,n){var r=n(590),i=n(173),o=n(293),a=n(90)("socket.io-client");e.exports=t=u;var s=t.managers={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i=r(e),u=i.source,c=i.id,l=i.path,f=s[c]&&l in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",u),n=o(u,t)):(s[c]||(a("new io instance for %s",u),s[c]=o(u,t)),n=s[c]),i.query&&!t.query&&(t.query=i.query),n.socket(i.path,t)}t.protocol=i.protocol,t.connect=u,t.Manager=n(293),t.Socket=n(299)},function(e,t,n){(function(e){!function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,s="",u="";if(s=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],s&&s.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(s.toLowerCase()))return u+=s+":",r&&r.length&&(u+="//"+r),u+=i,o&&o.length&&(u+="?"+o),a&&a.length&&(u+="#"+a),u}}}function r(e,r){if(n(e)){var i,o,a,s,u="",c="",l="",f="";if(u=(i=t(e))[1],c=i[2],o=i[3],a=i[4],s=i[5],u){if(r){if("https"!=u.toLowerCase())return}else if("http"!=u.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(l=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=u+":",f+="//"+c,l&&(f+=l),f+=o,a&&a.length&&(f+="?"+a),s&&s.length&&(f+="#"+s),f}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)}).call(this,n(118)(e))},function(e,t,n){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)}; /*! * Adapted from jQuery UI core * * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ var r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?"contents"!==i&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):"none"===i}catch(e){return n.warn("Failed to inspect element style"),!1}}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default}).call(this,n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=c(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=c(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,i=n(661),o=(r=i)&&r.__esModule?r:{default:r},a=n(302);var s=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){e.log("portalOpenInstances ----------"),e.log(r.openInstances.length),r.openInstances.forEach((function(t){return e.log(t)})),e.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r}).call(this,n(7))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(60),i=n(1);function o(t,n,o){var a;return Object(i.a)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(i.a)({paddingLeft:n(2),paddingRight:n(2)},o,Object(r.a)({},t.up("sm"),Object(i.a)({paddingLeft:n(3),paddingRight:n(3)},o[t.up("sm")])))},toolbar:(a={minHeight:56},Object(r.a)(a,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(a,t.up("sm"),{minHeight:64}),a)},o)}}).call(this,n(7))},function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n-1){var i=me[e];if(!Array.isArray(i))return H+J(i)in t&&W+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;oT.length&&T.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c