@voicenter-team/events-sdk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/voicenter-events-sdk.cjs.js +14 -14
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.d.ts +20 -2
- package/dist/voicenter-events-sdk.es.js +771 -770
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +14 -14
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +14 -14
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/classes/events-sdk/events-sdk.class.ts +1 -0
- package/src/classes/socket-io/socket-io.class.ts +1 -0
- package/src/enum/events.enum.ts +3 -1
- package/src/types/events.d.ts +15 -0
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
7
7
|
* @copyright Chen, Yi-Cyuan 2014-2017
|
|
8
8
|
* @license MIT
|
|
9
|
-
*/(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(s){return Object.prototype.toString.call(s)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(s){return typeof s=="object"&&s.buffer&&s.buffer.constructor===ArrayBuffer});var createOutputMethod=function(s){return function(a){return new Md5(!0).update(a)[s]()}},createMethod=function(){var s=createOutputMethod("hex");NODE_JS&&(s=nodeWrap(s)),s.create=function(){return new Md5},s.update=function(o){return s.create().update(o)};for(var a=0;a<OUTPUT_TYPES.length;++a){var r=OUTPUT_TYPES[a];s[r]=createOutputMethod(r)}return s},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(s){if(typeof s=="string")return crypto.createHash("md5").update(s,"utf8").digest("hex");if(s==null)throw ERROR;return s.constructor===ArrayBuffer&&(s=new Uint8Array(s)),Array.isArray(s)||ArrayBuffer.isView(s)||s.constructor===Buffer?crypto.createHash("md5").update(new Buffer(s)).digest("hex"):method(s)};return nodeMethod};function Md5(s){if(s)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var a=new ArrayBuffer(68);this.buffer8=new Uint8Array(a),this.blocks=new Uint32Array(a)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(s){if(!this.finalized){var a,r=typeof s;if(r!=="string"){if(r==="object"){if(s===null)throw ERROR;if(ARRAY_BUFFER&&s.constructor===ArrayBuffer)s=new Uint8Array(s);else if(!Array.isArray(s)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(s)))throw ERROR}else throw ERROR;a=!0}for(var o,l=0,h,d=s.length,y=this.blocks,A=this.buffer8;l<d;){if(this.hashed&&(this.hashed=!1,y[0]=y[16],y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),a)if(ARRAY_BUFFER)for(h=this.start;l<d&&h<64;++l)A[h++]=s[l];else for(h=this.start;l<d&&h<64;++l)y[h>>2]|=s[l]<<SHIFT[h++&3];else if(ARRAY_BUFFER)for(h=this.start;l<d&&h<64;++l)o=s.charCodeAt(l),o<128?A[h++]=o:o<2048?(A[h++]=192|o>>6,A[h++]=128|o&63):o<55296||o>=57344?(A[h++]=224|o>>12,A[h++]=128|o>>6&63,A[h++]=128|o&63):(o=65536+((o&1023)<<10|s.charCodeAt(++l)&1023),A[h++]=240|o>>18,A[h++]=128|o>>12&63,A[h++]=128|o>>6&63,A[h++]=128|o&63);else for(h=this.start;l<d&&h<64;++l)o=s.charCodeAt(l),o<128?y[h>>2]|=o<<SHIFT[h++&3]:o<2048?(y[h>>2]|=(192|o>>6)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]):o<55296||o>=57344?(y[h>>2]|=(224|o>>12)<<SHIFT[h++&3],y[h>>2]|=(128|o>>6&63)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]):(o=65536+((o&1023)<<10|s.charCodeAt(++l)&1023),y[h>>2]|=(240|o>>18)<<SHIFT[h++&3],y[h>>2]|=(128|o>>12&63)<<SHIFT[h++&3],y[h>>2]|=(128|o>>6&63)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]);this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var s=this.blocks,a=this.lastByteIndex;s[a>>2]|=EXTRA[a&3],a>=56&&(this.hashed||this.hash(),s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),s[14]=this.bytes<<3,s[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var s,a,r,o,l,h,d=this.blocks;this.first?(s=d[0]-680876937,s=(s<<7|s>>>25)-271733879<<0,o=(-1732584194^s&2004318071)+d[1]-117830708,o=(o<<12|o>>>20)+s<<0,r=(-271733879^o&(s^-271733879))+d[2]-1126478375,r=(r<<17|r>>>15)+o<<0,a=(s^r&(o^s))+d[3]-1316259209,a=(a<<22|a>>>10)+r<<0):(s=this.h0,a=this.h1,r=this.h2,o=this.h3,s+=(o^a&(r^o))+d[0]-680876936,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[1]-389564586,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[2]+606105819,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[3]-1044525330,a=(a<<22|a>>>10)+r<<0),s+=(o^a&(r^o))+d[4]-176418897,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[5]+1200080426,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[6]-1473231341,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[7]-45705983,a=(a<<22|a>>>10)+r<<0,s+=(o^a&(r^o))+d[8]+1770035416,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[9]-1958414417,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[10]-42063,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[11]-1990404162,a=(a<<22|a>>>10)+r<<0,s+=(o^a&(r^o))+d[12]+1804603682,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[13]-40341101,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[14]-1502002290,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[15]+1236535329,a=(a<<22|a>>>10)+r<<0,s+=(r^o&(a^r))+d[1]-165796510,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[6]-1069501632,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[11]+643717713,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[0]-373897302,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[5]-701558691,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[10]+38016083,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[15]-660478335,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[4]-405537848,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[9]+568446438,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[14]-1019803690,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[3]-187363961,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[8]+1163531501,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[13]-1444681467,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[2]-51403784,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[7]+1735328473,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[12]-1926607734,a=(a<<20|a>>>12)+r<<0,l=a^r,s+=(l^o)+d[5]-378558,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[8]-2022574463,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[11]+1839030562,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[14]-35309556,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[1]-1530992060,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[4]+1272893353,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[7]-155497632,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[10]-1094730640,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[13]+681279174,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[0]-358537222,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[3]-722521979,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[6]+76029189,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[9]-640364487,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[12]-421815835,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[15]+530742520,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[2]-995338651,a=(a<<23|a>>>9)+r<<0,s+=(r^(a|~o))+d[0]-198630844,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[7]+1126891415,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[14]-1416354905,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[5]-57434055,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[12]+1700485571,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[3]-1894986606,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[10]-1051523,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[1]-2054922799,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[8]+1873313359,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[15]-30611744,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[6]-1560198380,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[13]+1309151649,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[4]-145523070,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[11]-1120210379,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[2]+718787259,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[9]-343485551,a=(a<<21|a>>>11)+r<<0,this.first?(this.h0=s+1732584193<<0,this.h1=a-271733879<<0,this.h2=r-1732584194<<0,this.h3=o+271733878<<0,this.first=!1):(this.h0=this.h0+s<<0,this.h1=this.h1+a<<0,this.h2=this.h2+r<<0,this.h3=this.h3+o<<0)},Md5.prototype.hex=function(){this.finalize();var s=this.h0,a=this.h1,r=this.h2,o=this.h3;return HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var s=this.h0,a=this.h1,r=this.h2,o=this.h3;return[s&255,s>>8&255,s>>16&255,s>>24&255,a&255,a>>8&255,a>>16&255,a>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var s=new ArrayBuffer(16),a=new Uint32Array(s);return a[0]=this.h0,a[1]=this.h1,a[2]=this.h2,a[3]=this.h3,s},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var s,a,r,o="",l=this.array(),h=0;h<15;)s=l[h++],a=l[h++],r=l[h++],o+=BASE64_ENCODE_CHAR[s>>>2]+BASE64_ENCODE_CHAR[(s<<4|a>>>4)&63]+BASE64_ENCODE_CHAR[(a<<2|r>>>6)&63]+BASE64_ENCODE_CHAR[r&63];return s=l[h],o+=BASE64_ENCODE_CHAR[s>>>2]+BASE64_ENCODE_CHAR[s<<4&63]+"==",o};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5$1);var md5Exports=md5$1.exports;const md5=getDefaultExportFromCjs(md5Exports);var Environment=(s=>(s.BROWSER="browser",s.CHROME_EXTENSION="chrome-extension",s))(Environment||{}),ServerParameter=(s=>(s.DEFAULT="default",s.NEXT="next",s.PREVIOUS="previous",s))(ServerParameter||{});class AuthClass{constructor(a){Le(this,"delay",1e3);Le(this,"lastLoginTimestamp");Le(this,"token");this.eventsSdkClass=a,this.eventsSdkClass=a}async login(a){const r={token:a.token,email:a.email,username:a.username,password:a.password},o=md5(JSON.stringify(r));if(this.lastLoginTimestamp&&this.lastLoginTimestamp+this.delay>new Date().getTime())return;this.updateLastLoginTimestamp(),await this.checkLoginStatus(a,o)||await this.userLoginFunction(r,o)}updateLastLoginTimestamp(){this.lastLoginTimestamp=new Date().getTime()}async checkLoginStatus(a,r){let o;if(a.environment===Environment.BROWSER&&window){const l=window.sessionStorage.getItem(r);if(l)return o=JSON.parse(l),this.onLoginResponse(o),!0}if(a.environment===Environment.CHROME_EXTENSION&&chrome){const l=await chrome.storage.session.get(r);if(l[r])return o=JSON.parse(l[r]),this.onLoginResponse(o),!0}return!1}onLoginResponse(a){a.Client&&this.eventsSdkClass.socketIoClass.getSocketIoFunction(a.Client),a.Url&&(this.eventsSdkClass.server={Priority:0,Domain:a.Url.replace("https://","")}),a.URLList&&(this.eventsSdkClass.servers=a.URLList.map((r,o)=>({Priority:o,Domain:r.replace("https://","")}))),a.Token&&(this.token=a.Token,this.eventsSdkClass.connect(ServerParameter.DEFAULT,!0)),a.RefreshToken&&a.TokenExpiry&&this.eventsSdkClass.options.loginType==="user"&&(this.eventsSdkClass.options.refreshToken=a.RefreshToken,this.eventsSdkClass.options.tokenExpiry=a.TokenExpiry,this.handleTokenExpiry())}async userLoginFunction(a,r){const o=this.getExternalLoginUrl(this.eventsSdkClass.options.loginUrl,this.eventsSdkClass.options.loginType),l=await this.externalLogin(o,a,this.eventsSdkClass.options.loginType);this.onLoginResponse(l),this.eventsSdkClass.options.environment===Environment.BROWSER&&window.sessionStorage.setItem(r,JSON.stringify(l)),this.eventsSdkClass.options.environment===Environment.CHROME_EXTENSION&&await chrome.storage.session.set({[r]:JSON.stringify(l)})}handleTokenExpiry(){let a;if(this.eventsSdkClass.options.tokenExpiry)a=new Date(this.eventsSdkClass.options.tokenExpiry);else return;const r=a.getTime()-new Date().getTime()-5e3,o=Math.min(r,2147483647);setTimeout(async()=>{if(this.eventsSdkClass.options.refreshTokenUrl&&this.eventsSdkClass.options.refreshToken){let l=null;const h=await this.refreshToken(this.eventsSdkClass.options.refreshTokenUrl,this.eventsSdkClass.options.refreshToken);if(h.Data)return l=h.Data.Socket,this.onLoginResponse(l);throw new Error("Error on refreshToken")}},o)}getExternalLoginUrl(a,r){return r==="user"?`${a}/User`:r==="token"?`${a}/Token`:a}async externalLogin(a,{password:r,token:o,email:l},h){let d;h==="token"?d=JSON.stringify({token:o}):d=JSON.stringify({email:l,pin:r});const A=await(await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:d})).json();if(A.error)throw new Error(A.error);return A.Data.Socket}async refreshToken(a,r){return(await fetch(a,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}})).json()}}var lodash={exports:{}};/**
|
|
9
|
+
*/(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(s){return Object.prototype.toString.call(s)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(s){return typeof s=="object"&&s.buffer&&s.buffer.constructor===ArrayBuffer});var createOutputMethod=function(s){return function(a){return new Md5(!0).update(a)[s]()}},createMethod=function(){var s=createOutputMethod("hex");NODE_JS&&(s=nodeWrap(s)),s.create=function(){return new Md5},s.update=function(o){return s.create().update(o)};for(var a=0;a<OUTPUT_TYPES.length;++a){var r=OUTPUT_TYPES[a];s[r]=createOutputMethod(r)}return s},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(s){if(typeof s=="string")return crypto.createHash("md5").update(s,"utf8").digest("hex");if(s==null)throw ERROR;return s.constructor===ArrayBuffer&&(s=new Uint8Array(s)),Array.isArray(s)||ArrayBuffer.isView(s)||s.constructor===Buffer?crypto.createHash("md5").update(new Buffer(s)).digest("hex"):method(s)};return nodeMethod};function Md5(s){if(s)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var a=new ArrayBuffer(68);this.buffer8=new Uint8Array(a),this.blocks=new Uint32Array(a)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(s){if(!this.finalized){var a,r=typeof s;if(r!=="string"){if(r==="object"){if(s===null)throw ERROR;if(ARRAY_BUFFER&&s.constructor===ArrayBuffer)s=new Uint8Array(s);else if(!Array.isArray(s)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(s)))throw ERROR}else throw ERROR;a=!0}for(var o,l=0,h,d=s.length,y=this.blocks,E=this.buffer8;l<d;){if(this.hashed&&(this.hashed=!1,y[0]=y[16],y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),a)if(ARRAY_BUFFER)for(h=this.start;l<d&&h<64;++l)E[h++]=s[l];else for(h=this.start;l<d&&h<64;++l)y[h>>2]|=s[l]<<SHIFT[h++&3];else if(ARRAY_BUFFER)for(h=this.start;l<d&&h<64;++l)o=s.charCodeAt(l),o<128?E[h++]=o:o<2048?(E[h++]=192|o>>6,E[h++]=128|o&63):o<55296||o>=57344?(E[h++]=224|o>>12,E[h++]=128|o>>6&63,E[h++]=128|o&63):(o=65536+((o&1023)<<10|s.charCodeAt(++l)&1023),E[h++]=240|o>>18,E[h++]=128|o>>12&63,E[h++]=128|o>>6&63,E[h++]=128|o&63);else for(h=this.start;l<d&&h<64;++l)o=s.charCodeAt(l),o<128?y[h>>2]|=o<<SHIFT[h++&3]:o<2048?(y[h>>2]|=(192|o>>6)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]):o<55296||o>=57344?(y[h>>2]|=(224|o>>12)<<SHIFT[h++&3],y[h>>2]|=(128|o>>6&63)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]):(o=65536+((o&1023)<<10|s.charCodeAt(++l)&1023),y[h>>2]|=(240|o>>18)<<SHIFT[h++&3],y[h>>2]|=(128|o>>12&63)<<SHIFT[h++&3],y[h>>2]|=(128|o>>6&63)<<SHIFT[h++&3],y[h>>2]|=(128|o&63)<<SHIFT[h++&3]);this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var s=this.blocks,a=this.lastByteIndex;s[a>>2]|=EXTRA[a&3],a>=56&&(this.hashed||this.hash(),s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),s[14]=this.bytes<<3,s[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var s,a,r,o,l,h,d=this.blocks;this.first?(s=d[0]-680876937,s=(s<<7|s>>>25)-271733879<<0,o=(-1732584194^s&2004318071)+d[1]-117830708,o=(o<<12|o>>>20)+s<<0,r=(-271733879^o&(s^-271733879))+d[2]-1126478375,r=(r<<17|r>>>15)+o<<0,a=(s^r&(o^s))+d[3]-1316259209,a=(a<<22|a>>>10)+r<<0):(s=this.h0,a=this.h1,r=this.h2,o=this.h3,s+=(o^a&(r^o))+d[0]-680876936,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[1]-389564586,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[2]+606105819,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[3]-1044525330,a=(a<<22|a>>>10)+r<<0),s+=(o^a&(r^o))+d[4]-176418897,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[5]+1200080426,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[6]-1473231341,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[7]-45705983,a=(a<<22|a>>>10)+r<<0,s+=(o^a&(r^o))+d[8]+1770035416,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[9]-1958414417,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[10]-42063,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[11]-1990404162,a=(a<<22|a>>>10)+r<<0,s+=(o^a&(r^o))+d[12]+1804603682,s=(s<<7|s>>>25)+a<<0,o+=(r^s&(a^r))+d[13]-40341101,o=(o<<12|o>>>20)+s<<0,r+=(a^o&(s^a))+d[14]-1502002290,r=(r<<17|r>>>15)+o<<0,a+=(s^r&(o^s))+d[15]+1236535329,a=(a<<22|a>>>10)+r<<0,s+=(r^o&(a^r))+d[1]-165796510,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[6]-1069501632,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[11]+643717713,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[0]-373897302,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[5]-701558691,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[10]+38016083,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[15]-660478335,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[4]-405537848,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[9]+568446438,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[14]-1019803690,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[3]-187363961,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[8]+1163531501,a=(a<<20|a>>>12)+r<<0,s+=(r^o&(a^r))+d[13]-1444681467,s=(s<<5|s>>>27)+a<<0,o+=(a^r&(s^a))+d[2]-51403784,o=(o<<9|o>>>23)+s<<0,r+=(s^a&(o^s))+d[7]+1735328473,r=(r<<14|r>>>18)+o<<0,a+=(o^s&(r^o))+d[12]-1926607734,a=(a<<20|a>>>12)+r<<0,l=a^r,s+=(l^o)+d[5]-378558,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[8]-2022574463,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[11]+1839030562,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[14]-35309556,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[1]-1530992060,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[4]+1272893353,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[7]-155497632,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[10]-1094730640,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[13]+681279174,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[0]-358537222,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[3]-722521979,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[6]+76029189,a=(a<<23|a>>>9)+r<<0,l=a^r,s+=(l^o)+d[9]-640364487,s=(s<<4|s>>>28)+a<<0,o+=(l^s)+d[12]-421815835,o=(o<<11|o>>>21)+s<<0,h=o^s,r+=(h^a)+d[15]+530742520,r=(r<<16|r>>>16)+o<<0,a+=(h^r)+d[2]-995338651,a=(a<<23|a>>>9)+r<<0,s+=(r^(a|~o))+d[0]-198630844,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[7]+1126891415,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[14]-1416354905,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[5]-57434055,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[12]+1700485571,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[3]-1894986606,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[10]-1051523,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[1]-2054922799,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[8]+1873313359,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[15]-30611744,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[6]-1560198380,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[13]+1309151649,a=(a<<21|a>>>11)+r<<0,s+=(r^(a|~o))+d[4]-145523070,s=(s<<6|s>>>26)+a<<0,o+=(a^(s|~r))+d[11]-1120210379,o=(o<<10|o>>>22)+s<<0,r+=(s^(o|~a))+d[2]+718787259,r=(r<<15|r>>>17)+o<<0,a+=(o^(r|~s))+d[9]-343485551,a=(a<<21|a>>>11)+r<<0,this.first?(this.h0=s+1732584193<<0,this.h1=a-271733879<<0,this.h2=r-1732584194<<0,this.h3=o+271733878<<0,this.first=!1):(this.h0=this.h0+s<<0,this.h1=this.h1+a<<0,this.h2=this.h2+r<<0,this.h3=this.h3+o<<0)},Md5.prototype.hex=function(){this.finalize();var s=this.h0,a=this.h1,r=this.h2,o=this.h3;return HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var s=this.h0,a=this.h1,r=this.h2,o=this.h3;return[s&255,s>>8&255,s>>16&255,s>>24&255,a&255,a>>8&255,a>>16&255,a>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var s=new ArrayBuffer(16),a=new Uint32Array(s);return a[0]=this.h0,a[1]=this.h1,a[2]=this.h2,a[3]=this.h3,s},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var s,a,r,o="",l=this.array(),h=0;h<15;)s=l[h++],a=l[h++],r=l[h++],o+=BASE64_ENCODE_CHAR[s>>>2]+BASE64_ENCODE_CHAR[(s<<4|a>>>4)&63]+BASE64_ENCODE_CHAR[(a<<2|r>>>6)&63]+BASE64_ENCODE_CHAR[r&63];return s=l[h],o+=BASE64_ENCODE_CHAR[s>>>2]+BASE64_ENCODE_CHAR[s<<4&63]+"==",o};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5$1);var md5Exports=md5$1.exports;const md5=getDefaultExportFromCjs(md5Exports);var Environment=(s=>(s.BROWSER="browser",s.CHROME_EXTENSION="chrome-extension",s))(Environment||{}),ServerParameter=(s=>(s.DEFAULT="default",s.NEXT="next",s.PREVIOUS="previous",s))(ServerParameter||{});class AuthClass{constructor(a){Le(this,"delay",1e3);Le(this,"lastLoginTimestamp");Le(this,"token");this.eventsSdkClass=a,this.eventsSdkClass=a}async login(a){const r={token:a.token,email:a.email,username:a.username,password:a.password},o=md5(JSON.stringify(r));if(this.lastLoginTimestamp&&this.lastLoginTimestamp+this.delay>new Date().getTime())return;this.updateLastLoginTimestamp(),await this.checkLoginStatus(a,o)||await this.userLoginFunction(r,o)}updateLastLoginTimestamp(){this.lastLoginTimestamp=new Date().getTime()}async checkLoginStatus(a,r){let o;if(a.environment===Environment.BROWSER&&window){const l=window.sessionStorage.getItem(r);if(l)return o=JSON.parse(l),this.onLoginResponse(o),!0}if(a.environment===Environment.CHROME_EXTENSION&&chrome){const l=await chrome.storage.session.get(r);if(l[r])return o=JSON.parse(l[r]),this.onLoginResponse(o),!0}return!1}onLoginResponse(a){a.Client&&this.eventsSdkClass.socketIoClass.getSocketIoFunction(a.Client),a.Url&&(this.eventsSdkClass.server={Priority:0,Domain:a.Url.replace("https://","")}),a.URLList&&(this.eventsSdkClass.servers=a.URLList.map((r,o)=>({Priority:o,Domain:r.replace("https://","")}))),a.Token&&(this.token=a.Token,this.eventsSdkClass.connect(ServerParameter.DEFAULT,!0)),a.RefreshToken&&a.TokenExpiry&&this.eventsSdkClass.options.loginType==="user"&&(this.eventsSdkClass.options.refreshToken=a.RefreshToken,this.eventsSdkClass.options.tokenExpiry=a.TokenExpiry,this.handleTokenExpiry())}async userLoginFunction(a,r){const o=this.getExternalLoginUrl(this.eventsSdkClass.options.loginUrl,this.eventsSdkClass.options.loginType),l=await this.externalLogin(o,a,this.eventsSdkClass.options.loginType);this.onLoginResponse(l),this.eventsSdkClass.options.environment===Environment.BROWSER&&window.sessionStorage.setItem(r,JSON.stringify(l)),this.eventsSdkClass.options.environment===Environment.CHROME_EXTENSION&&await chrome.storage.session.set({[r]:JSON.stringify(l)})}handleTokenExpiry(){let a;if(this.eventsSdkClass.options.tokenExpiry)a=new Date(this.eventsSdkClass.options.tokenExpiry);else return;const r=a.getTime()-new Date().getTime()-5e3,o=Math.min(r,2147483647);setTimeout(async()=>{if(this.eventsSdkClass.options.refreshTokenUrl&&this.eventsSdkClass.options.refreshToken){let l=null;const h=await this.refreshToken(this.eventsSdkClass.options.refreshTokenUrl,this.eventsSdkClass.options.refreshToken);if(h.Data)return l=h.Data.Socket,this.onLoginResponse(l);throw new Error("Error on refreshToken")}},o)}getExternalLoginUrl(a,r){return r==="user"?`${a}/User`:r==="token"?`${a}/Token`:a}async externalLogin(a,{password:r,token:o,email:l},h){let d;h==="token"?d=JSON.stringify({token:o}):d=JSON.stringify({email:l,pin:r});const E=await(await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:d})).json();if(E.error)throw new Error(E.error);return E.Data.Socket}async refreshToken(a,r){return(await fetch(a,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}})).json()}}var lodash={exports:{}};/**
|
|
10
10
|
* @license
|
|
11
11
|
* Lodash <https://lodash.com/>
|
|
12
12
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
13
13
|
* Released under MIT license <https://lodash.com/license>
|
|
14
14
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
15
15
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16
|
-
*/lodash.exports;(function(s,a){(function(){var r,o="4.17.21",l=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",y="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",w=500,T="__lodash_placeholder__",b=1,g=2,p=4,_=1,E=2,k=1,J=2,se=4,Z=8,ue=16,X=32,U=64,P=128,q=256,B=512,F=30,K="...",j=800,V=16,N=1,be=2,xe=3,Ce=1/0,ae=9007199254740991,Pe=17976931348623157e292,mt=0/0,Qe=4294967295,Un=Qe-1,H=Qe>>>1,$=[["ary",P],["bind",k],["bindKey",J],["curry",Z],["curryRight",ue],["flip",B],["partial",X],["partialRight",U],["rearg",q]],M="[object Arguments]",te="[object Array]",D="[object AsyncFunction]",Q="[object Boolean]",ee="[object Date]",z="[object DOMException]",oe="[object Error]",_e="[object Function]",He="[object GeneratorFunction]",Te="[object Map]",dt="[object Number]",yn="[object Null]",je="[object Object]",en="[object Promise]",_n="[object Proxy]",Xe="[object RegExp]",Ge="[object Set]",wt="[object String]",bt="[object Symbol]",mn="[object Undefined]",Et="[object WeakMap]",wn="[object WeakSet]",Ft="[object ArrayBuffer]",tn="[object DataView]",Er="[object Float32Array]",Cr="[object Float64Array]",Tr="[object Int8Array]",Rr="[object Int16Array]",kr="[object Int32Array]",Or="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Br="[object Uint16Array]",Lr="[object Uint32Array]",xu=/\b__p \+= '';/g,Au=/\b(__p \+=) '' \+/g,Su=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ki=/&(?:amp|lt|gt|quot|#39);/g,$i=/[&<>"']/g,Eu=RegExp(Ki.source),Cu=RegExp($i.source),Tu=/<%-([\s\S]+?)%>/g,Ru=/<%([\s\S]+?)%>/g,Ji=/<%=([\s\S]+?)%>/g,ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ou=/^\w*$/,Iu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nr=/[\\^$.*+?()[\]{}|]/g,Bu=RegExp(Nr.source),Fr=/^\s+/,Lu=/\s/,Nu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fu=/\{\n\/\* \[wrapped with (.+)\] \*/,Uu=/,? & /,Du=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mu=/[()=,{}\[\]\/\s]/,Pu=/\\(\\)?/g,Hu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yi=/\w*$/,Wu=/^[-+]0x[0-9a-f]+$/i,qu=/^0b[01]+$/i,Xu=/^\[object .+?Constructor\]$/,Gu=/^0o[0-7]+$/i,zu=/^(?:0|[1-9]\d*)$/,Ku=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dn=/($^)/,$u=/['\n\r\u2028\u2029\\]/g,Mn="\\ud800-\\udfff",Ju="\\u0300-\\u036f",Yu="\\ufe20-\\ufe2f",Zu="\\u20d0-\\u20ff",Zi=Ju+Yu+Zu,Vi="\\u2700-\\u27bf",Qi="a-z\\xdf-\\xf6\\xf8-\\xff",Vu="\\xac\\xb1\\xd7\\xf7",Qu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ju="\\u2000-\\u206f",ea=" \\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",ji="A-Z\\xc0-\\xd6\\xd8-\\xde",eo="\\ufe0e\\ufe0f",to=Vu+Qu+ju+ea,Ur="['’]",ta="["+Mn+"]",no="["+to+"]",Pn="["+Zi+"]",ro="\\d+",na="["+Vi+"]",io="["+Qi+"]",oo="[^"+Mn+to+ro+Vi+Qi+ji+"]",Dr="\\ud83c[\\udffb-\\udfff]",ra="(?:"+Pn+"|"+Dr+")",so="[^"+Mn+"]",Mr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",nn="["+ji+"]",uo="\\u200d",ao="(?:"+io+"|"+oo+")",ia="(?:"+nn+"|"+oo+")",fo="(?:"+Ur+"(?:d|ll|m|re|s|t|ve))?",co="(?:"+Ur+"(?:D|LL|M|RE|S|T|VE))?",lo=ra+"?",ho="["+eo+"]?",oa="(?:"+uo+"(?:"+[so,Mr,Pr].join("|")+")"+ho+lo+")*",sa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ua="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",po=ho+lo+oa,aa="(?:"+[na,Mr,Pr].join("|")+")"+po,fa="(?:"+[so+Pn+"?",Pn,Mr,Pr,ta].join("|")+")",ca=RegExp(Ur,"g"),la=RegExp(Pn,"g"),Hr=RegExp(Dr+"(?="+Dr+")|"+fa+po,"g"),ha=RegExp([nn+"?"+io+"+"+fo+"(?="+[no,nn,"$"].join("|")+")",ia+"+"+co+"(?="+[no,nn+ao,"$"].join("|")+")",nn+"?"+ao+"+"+fo,nn+"+"+co,ua,sa,ro,aa].join("|"),"g"),pa=RegExp("["+uo+Mn+Zi+eo+"]"),da=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ga=["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"],va=-1,Ee={};Ee[Er]=Ee[Cr]=Ee[Tr]=Ee[Rr]=Ee[kr]=Ee[Or]=Ee[Ir]=Ee[Br]=Ee[Lr]=!0,Ee[M]=Ee[te]=Ee[Ft]=Ee[Q]=Ee[tn]=Ee[ee]=Ee[oe]=Ee[_e]=Ee[Te]=Ee[dt]=Ee[je]=Ee[Xe]=Ee[Ge]=Ee[wt]=Ee[Et]=!1;var Se={};Se[M]=Se[te]=Se[Ft]=Se[tn]=Se[Q]=Se[ee]=Se[Er]=Se[Cr]=Se[Tr]=Se[Rr]=Se[kr]=Se[Te]=Se[dt]=Se[je]=Se[Xe]=Se[Ge]=Se[wt]=Se[bt]=Se[Or]=Se[Ir]=Se[Br]=Se[Lr]=!0,Se[oe]=Se[_e]=Se[Et]=!1;var ya={À:"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"},_a={"&":"&","<":"<",">":">",'"':""","'":"'"},ma={"&":"&","<":"<",">":">",""":'"',"'":"'"},wa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ba=parseFloat,xa=parseInt,go=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Aa=typeof self=="object"&&self&&self.Object===Object&&self,De=go||Aa||Function("return this")(),Wr=a&&!a.nodeType&&a,zt=Wr&&!0&&s&&!s.nodeType&&s,vo=zt&&zt.exports===Wr,qr=vo&&go.process,st=function(){try{var x=zt&&zt.require&&zt.require("util").types;return x||qr&&qr.binding&&qr.binding("util")}catch{}}(),yo=st&&st.isArrayBuffer,_o=st&&st.isDate,mo=st&&st.isMap,wo=st&&st.isRegExp,bo=st&&st.isSet,xo=st&&st.isTypedArray;function et(x,R,C){switch(C.length){case 0:return x.call(R);case 1:return x.call(R,C[0]);case 2:return x.call(R,C[0],C[1]);case 3:return x.call(R,C[0],C[1],C[2])}return x.apply(R,C)}function Sa(x,R,C,G){for(var fe=-1,ye=x==null?0:x.length;++fe<ye;){var Ne=x[fe];R(G,Ne,C(Ne),x)}return G}function ut(x,R){for(var C=-1,G=x==null?0:x.length;++C<G&&R(x[C],C,x)!==!1;);return x}function Ea(x,R){for(var C=x==null?0:x.length;C--&&R(x[C],C,x)!==!1;);return x}function Ao(x,R){for(var C=-1,G=x==null?0:x.length;++C<G;)if(!R(x[C],C,x))return!1;return!0}function Ut(x,R){for(var C=-1,G=x==null?0:x.length,fe=0,ye=[];++C<G;){var Ne=x[C];R(Ne,C,x)&&(ye[fe++]=Ne)}return ye}function Hn(x,R){var C=x==null?0:x.length;return!!C&&rn(x,R,0)>-1}function Xr(x,R,C){for(var G=-1,fe=x==null?0:x.length;++G<fe;)if(C(R,x[G]))return!0;return!1}function Re(x,R){for(var C=-1,G=x==null?0:x.length,fe=Array(G);++C<G;)fe[C]=R(x[C],C,x);return fe}function Dt(x,R){for(var C=-1,G=R.length,fe=x.length;++C<G;)x[fe+C]=R[C];return x}function Gr(x,R,C,G){var fe=-1,ye=x==null?0:x.length;for(G&&ye&&(C=x[++fe]);++fe<ye;)C=R(C,x[fe],fe,x);return C}function Ca(x,R,C,G){var fe=x==null?0:x.length;for(G&&fe&&(C=x[--fe]);fe--;)C=R(C,x[fe],fe,x);return C}function zr(x,R){for(var C=-1,G=x==null?0:x.length;++C<G;)if(R(x[C],C,x))return!0;return!1}var Ta=Kr("length");function Ra(x){return x.split("")}function ka(x){return x.match(Du)||[]}function So(x,R,C){var G;return C(x,function(fe,ye,Ne){if(R(fe,ye,Ne))return G=ye,!1}),G}function Wn(x,R,C,G){for(var fe=x.length,ye=C+(G?1:-1);G?ye--:++ye<fe;)if(R(x[ye],ye,x))return ye;return-1}function rn(x,R,C){return R===R?Wa(x,R,C):Wn(x,Eo,C)}function Oa(x,R,C,G){for(var fe=C-1,ye=x.length;++fe<ye;)if(G(x[fe],R))return fe;return-1}function Eo(x){return x!==x}function Co(x,R){var C=x==null?0:x.length;return C?Jr(x,R)/C:mt}function Kr(x){return function(R){return R==null?r:R[x]}}function $r(x){return function(R){return x==null?r:x[R]}}function To(x,R,C,G,fe){return fe(x,function(ye,Ne,Ae){C=G?(G=!1,ye):R(C,ye,Ne,Ae)}),C}function Ia(x,R){var C=x.length;for(x.sort(R);C--;)x[C]=x[C].value;return x}function Jr(x,R){for(var C,G=-1,fe=x.length;++G<fe;){var ye=R(x[G]);ye!==r&&(C=C===r?ye:C+ye)}return C}function Yr(x,R){for(var C=-1,G=Array(x);++C<x;)G[C]=R(C);return G}function Ba(x,R){return Re(R,function(C){return[C,x[C]]})}function Ro(x){return x&&x.slice(0,Bo(x)+1).replace(Fr,"")}function tt(x){return function(R){return x(R)}}function Zr(x,R){return Re(R,function(C){return x[C]})}function bn(x,R){return x.has(R)}function ko(x,R){for(var C=-1,G=x.length;++C<G&&rn(R,x[C],0)>-1;);return C}function Oo(x,R){for(var C=x.length;C--&&rn(R,x[C],0)>-1;);return C}function La(x,R){for(var C=x.length,G=0;C--;)x[C]===R&&++G;return G}var Na=$r(ya),Fa=$r(_a);function Ua(x){return"\\"+wa[x]}function Da(x,R){return x==null?r:x[R]}function on(x){return pa.test(x)}function Ma(x){return da.test(x)}function Pa(x){for(var R,C=[];!(R=x.next()).done;)C.push(R.value);return C}function Vr(x){var R=-1,C=Array(x.size);return x.forEach(function(G,fe){C[++R]=[fe,G]}),C}function Io(x,R){return function(C){return x(R(C))}}function Mt(x,R){for(var C=-1,G=x.length,fe=0,ye=[];++C<G;){var Ne=x[C];(Ne===R||Ne===T)&&(x[C]=T,ye[fe++]=C)}return ye}function qn(x){var R=-1,C=Array(x.size);return x.forEach(function(G){C[++R]=G}),C}function Ha(x){var R=-1,C=Array(x.size);return x.forEach(function(G){C[++R]=[G,G]}),C}function Wa(x,R,C){for(var G=C-1,fe=x.length;++G<fe;)if(x[G]===R)return G;return-1}function qa(x,R,C){for(var G=C+1;G--;)if(x[G]===R)return G;return G}function sn(x){return on(x)?Ga(x):Ta(x)}function gt(x){return on(x)?za(x):Ra(x)}function Bo(x){for(var R=x.length;R--&&Lu.test(x.charAt(R)););return R}var Xa=$r(ma);function Ga(x){for(var R=Hr.lastIndex=0;Hr.test(x);)++R;return R}function za(x){return x.match(Hr)||[]}function Ka(x){return x.match(ha)||[]}var $a=function x(R){R=R==null?De:un.defaults(De.Object(),R,un.pick(De,ga));var C=R.Array,G=R.Date,fe=R.Error,ye=R.Function,Ne=R.Math,Ae=R.Object,Qr=R.RegExp,Ja=R.String,at=R.TypeError,Xn=C.prototype,Ya=ye.prototype,an=Ae.prototype,Gn=R["__core-js_shared__"],zn=Ya.toString,we=an.hasOwnProperty,Za=0,Lo=function(){var e=/[^.]+$/.exec(Gn&&Gn.keys&&Gn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Kn=an.toString,Va=zn.call(Ae),Qa=De._,ja=Qr("^"+zn.call(we).replace(Nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$n=vo?R.Buffer:r,Pt=R.Symbol,Jn=R.Uint8Array,No=$n?$n.allocUnsafe:r,Yn=Io(Ae.getPrototypeOf,Ae),Fo=Ae.create,Uo=an.propertyIsEnumerable,Zn=Xn.splice,Do=Pt?Pt.isConcatSpreadable:r,xn=Pt?Pt.iterator:r,Kt=Pt?Pt.toStringTag:r,Vn=function(){try{var e=Vt(Ae,"defineProperty");return e({},"",{}),e}catch{}}(),ef=R.clearTimeout!==De.clearTimeout&&R.clearTimeout,tf=G&&G.now!==De.Date.now&&G.now,nf=R.setTimeout!==De.setTimeout&&R.setTimeout,Qn=Ne.ceil,jn=Ne.floor,jr=Ae.getOwnPropertySymbols,rf=$n?$n.isBuffer:r,Mo=R.isFinite,of=Xn.join,sf=Io(Ae.keys,Ae),Fe=Ne.max,We=Ne.min,uf=G.now,af=R.parseInt,Po=Ne.random,ff=Xn.reverse,ei=Vt(R,"DataView"),An=Vt(R,"Map"),ti=Vt(R,"Promise"),fn=Vt(R,"Set"),Sn=Vt(R,"WeakMap"),En=Vt(Ae,"create"),er=Sn&&new Sn,cn={},cf=Qt(ei),lf=Qt(An),hf=Qt(ti),pf=Qt(fn),df=Qt(Sn),tr=Pt?Pt.prototype:r,Cn=tr?tr.valueOf:r,Ho=tr?tr.toString:r;function f(e){if(Oe(e)&&!ce(e)&&!(e instanceof ge)){if(e instanceof ft)return e;if(we.call(e,"__wrapped__"))return Ws(e)}return new ft(e)}var ln=function(){function e(){}return function(t){if(!ke(t))return{};if(Fo)return Fo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function nr(){}function ft(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}f.templateSettings={escape:Tu,evaluate:Ru,interpolate:Ji,variable:"",imports:{_:f}},f.prototype=nr.prototype,f.prototype.constructor=f,ft.prototype=ln(nr.prototype),ft.prototype.constructor=ft;function ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Qe,this.__views__=[]}function gf(){var e=new ge(this.__wrapped__);return e.__actions__=Je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Je(this.__views__),e}function vf(){if(this.__filtered__){var e=new ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yf(){var e=this.__wrapped__.value(),t=this.__dir__,n=ce(e),i=t<0,u=n?e.length:0,c=kc(0,u,this.__views__),v=c.start,m=c.end,S=m-v,O=i?m:v-1,I=this.__iteratees__,L=I.length,W=0,Y=We(S,this.__takeCount__);if(!n||!i&&u==S&&Y==S)return cs(e,this.__actions__);var re=[];e:for(;S--&&W<Y;){O+=t;for(var he=-1,ie=e[O];++he<L;){var de=I[he],ve=de.iteratee,it=de.type,$e=ve(ie);if(it==be)ie=$e;else if(!$e){if(it==N)continue e;break e}}re[W++]=ie}return re}ge.prototype=ln(nr.prototype),ge.prototype.constructor=ge;function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function _f(){this.__data__=En?En(null):{},this.size=0}function mf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function wf(e){var t=this.__data__;if(En){var n=t[e];return n===A?r:n}return we.call(t,e)?t[e]:r}function bf(e){var t=this.__data__;return En?t[e]!==r:we.call(t,e)}function xf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===r?A:t,this}$t.prototype.clear=_f,$t.prototype.delete=mf,$t.prototype.get=wf,$t.prototype.has=bf,$t.prototype.set=xf;function Ct(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Af(){this.__data__=[],this.size=0}function Sf(e){var t=this.__data__,n=rr(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Zn.call(t,n,1),--this.size,!0}function Ef(e){var t=this.__data__,n=rr(t,e);return n<0?r:t[n][1]}function Cf(e){return rr(this.__data__,e)>-1}function Tf(e,t){var n=this.__data__,i=rr(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}Ct.prototype.clear=Af,Ct.prototype.delete=Sf,Ct.prototype.get=Ef,Ct.prototype.has=Cf,Ct.prototype.set=Tf;function Tt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Rf(){this.size=0,this.__data__={hash:new $t,map:new(An||Ct),string:new $t}}function kf(e){var t=gr(this,e).delete(e);return this.size-=t?1:0,t}function Of(e){return gr(this,e).get(e)}function If(e){return gr(this,e).has(e)}function Bf(e,t){var n=gr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Tt.prototype.clear=Rf,Tt.prototype.delete=kf,Tt.prototype.get=Of,Tt.prototype.has=If,Tt.prototype.set=Bf;function Jt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Tt;++t<n;)this.add(e[t])}function Lf(e){return this.__data__.set(e,A),this}function Nf(e){return this.__data__.has(e)}Jt.prototype.add=Jt.prototype.push=Lf,Jt.prototype.has=Nf;function vt(e){var t=this.__data__=new Ct(e);this.size=t.size}function Ff(){this.__data__=new Ct,this.size=0}function Uf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Df(e){return this.__data__.get(e)}function Mf(e){return this.__data__.has(e)}function Pf(e,t){var n=this.__data__;if(n instanceof Ct){var i=n.__data__;if(!An||i.length<l-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tt(i)}return n.set(e,t),this.size=n.size,this}vt.prototype.clear=Ff,vt.prototype.delete=Uf,vt.prototype.get=Df,vt.prototype.has=Mf,vt.prototype.set=Pf;function Wo(e,t){var n=ce(e),i=!n&&jt(e),u=!n&&!i&&Gt(e),c=!n&&!i&&!u&&gn(e),v=n||i||u||c,m=v?Yr(e.length,Ja):[],S=m.length;for(var O in e)(t||we.call(e,O))&&!(v&&(O=="length"||u&&(O=="offset"||O=="parent")||c&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||It(O,S)))&&m.push(O);return m}function qo(e){var t=e.length;return t?e[hi(0,t-1)]:r}function Hf(e,t){return vr(Je(e),Yt(t,0,e.length))}function Wf(e){return vr(Je(e))}function ni(e,t,n){(n!==r&&!yt(e[t],n)||n===r&&!(t in e))&&Rt(e,t,n)}function Tn(e,t,n){var i=e[t];(!(we.call(e,t)&&yt(i,n))||n===r&&!(t in e))&&Rt(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(yt(e[n][0],t))return n;return-1}function qf(e,t,n,i){return Ht(e,function(u,c,v){t(i,u,n(u),v)}),i}function Xo(e,t){return e&&At(t,Ue(t),e)}function Xf(e,t){return e&&At(t,Ze(t),e)}function Rt(e,t,n){t=="__proto__"&&Vn?Vn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,i=t.length,u=C(i),c=e==null;++n<i;)u[n]=c?r:Di(e,t[n]);return u}function Yt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ct(e,t,n,i,u,c){var v,m=t&b,S=t&g,O=t&p;if(n&&(v=u?n(e,i,u,c):n(e)),v!==r)return v;if(!ke(e))return e;var I=ce(e);if(I){if(v=Ic(e),!m)return Je(e,v)}else{var L=qe(e),W=L==_e||L==He;if(Gt(e))return ps(e,m);if(L==je||L==M||W&&!u){if(v=S||W?{}:Bs(e),!m)return S?wc(e,Xf(v,e)):mc(e,Xo(v,e))}else{if(!Se[L])return u?e:{};v=Bc(e,L,m)}}c||(c=new vt);var Y=c.get(e);if(Y)return Y;c.set(e,v),uu(e)?e.forEach(function(ie){v.add(ct(ie,t,n,ie,e,c))}):ou(e)&&e.forEach(function(ie,de){v.set(de,ct(ie,t,n,de,e,c))});var re=O?S?Ai:xi:S?Ze:Ue,he=I?r:re(e);return ut(he||e,function(ie,de){he&&(de=ie,ie=e[de]),Tn(v,de,ct(ie,t,n,de,e,c))}),v}function Gf(e){var t=Ue(e);return function(n){return Go(n,e,t)}}function Go(e,t,n){var i=n.length;if(e==null)return!i;for(e=Ae(e);i--;){var u=n[i],c=t[u],v=e[u];if(v===r&&!(u in e)||!c(v))return!1}return!0}function zo(e,t,n){if(typeof e!="function")throw new at(d);return Nn(function(){e.apply(r,n)},t)}function Rn(e,t,n,i){var u=-1,c=Hn,v=!0,m=e.length,S=[],O=t.length;if(!m)return S;n&&(t=Re(t,tt(n))),i?(c=Xr,v=!1):t.length>=l&&(c=bn,v=!1,t=new Jt(t));e:for(;++u<m;){var I=e[u],L=n==null?I:n(I);if(I=i||I!==0?I:0,v&&L===L){for(var W=O;W--;)if(t[W]===L)continue e;S.push(I)}else c(t,L,i)||S.push(I)}return S}var Ht=_s(xt),Ko=_s(oi,!0);function zf(e,t){var n=!0;return Ht(e,function(i,u,c){return n=!!t(i,u,c),n}),n}function ir(e,t,n){for(var i=-1,u=e.length;++i<u;){var c=e[i],v=t(c);if(v!=null&&(m===r?v===v&&!rt(v):n(v,m)))var m=v,S=c}return S}function Kf(e,t,n,i){var u=e.length;for(n=le(n),n<0&&(n=-n>u?0:u+n),i=i===r||i>u?u:le(i),i<0&&(i+=u),i=n>i?0:fu(i);n<i;)e[n++]=t;return e}function $o(e,t){var n=[];return Ht(e,function(i,u,c){t(i,u,c)&&n.push(i)}),n}function Me(e,t,n,i,u){var c=-1,v=e.length;for(n||(n=Nc),u||(u=[]);++c<v;){var m=e[c];t>0&&n(m)?t>1?Me(m,t-1,n,i,u):Dt(u,m):i||(u[u.length]=m)}return u}var ii=ms(),Jo=ms(!0);function xt(e,t){return e&&ii(e,t,Ue)}function oi(e,t){return e&&Jo(e,t,Ue)}function or(e,t){return Ut(t,function(n){return Bt(e[n])})}function Zt(e,t){t=qt(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[St(t[n++])];return n&&n==i?e:r}function Yo(e,t,n){var i=t(e);return ce(e)?i:Dt(i,n(e))}function ze(e){return e==null?e===r?mn:yn:Kt&&Kt in Ae(e)?Rc(e):Wc(e)}function si(e,t){return e>t}function $f(e,t){return e!=null&&we.call(e,t)}function Jf(e,t){return e!=null&&t in Ae(e)}function Yf(e,t,n){return e>=We(t,n)&&e<Fe(t,n)}function ui(e,t,n){for(var i=n?Xr:Hn,u=e[0].length,c=e.length,v=c,m=C(c),S=1/0,O=[];v--;){var I=e[v];v&&t&&(I=Re(I,tt(t))),S=We(I.length,S),m[v]=!n&&(t||u>=120&&I.length>=120)?new Jt(v&&I):r}I=e[0];var L=-1,W=m[0];e:for(;++L<u&&O.length<S;){var Y=I[L],re=t?t(Y):Y;if(Y=n||Y!==0?Y:0,!(W?bn(W,re):i(O,re,n))){for(v=c;--v;){var he=m[v];if(!(he?bn(he,re):i(e[v],re,n)))continue e}W&&W.push(re),O.push(Y)}}return O}function Zf(e,t,n,i){return xt(e,function(u,c,v){t(i,n(u),c,v)}),i}function kn(e,t,n){t=qt(t,e),e=Us(e,t);var i=e==null?e:e[St(ht(t))];return i==null?r:et(i,e,n)}function Zo(e){return Oe(e)&&ze(e)==M}function Vf(e){return Oe(e)&&ze(e)==Ft}function Qf(e){return Oe(e)&&ze(e)==ee}function On(e,t,n,i,u){return e===t?!0:e==null||t==null||!Oe(e)&&!Oe(t)?e!==e&&t!==t:jf(e,t,n,i,On,u)}function jf(e,t,n,i,u,c){var v=ce(e),m=ce(t),S=v?te:qe(e),O=m?te:qe(t);S=S==M?je:S,O=O==M?je:O;var I=S==je,L=O==je,W=S==O;if(W&&Gt(e)){if(!Gt(t))return!1;v=!0,I=!1}if(W&&!I)return c||(c=new vt),v||gn(e)?ks(e,t,n,i,u,c):Cc(e,t,S,n,i,u,c);if(!(n&_)){var Y=I&&we.call(e,"__wrapped__"),re=L&&we.call(t,"__wrapped__");if(Y||re){var he=Y?e.value():e,ie=re?t.value():t;return c||(c=new vt),u(he,ie,n,i,c)}}return W?(c||(c=new vt),Tc(e,t,n,i,u,c)):!1}function ec(e){return Oe(e)&&qe(e)==Te}function ai(e,t,n,i){var u=n.length,c=u,v=!i;if(e==null)return!c;for(e=Ae(e);u--;){var m=n[u];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++u<c;){m=n[u];var S=m[0],O=e[S],I=m[1];if(v&&m[2]){if(O===r&&!(S in e))return!1}else{var L=new vt;if(i)var W=i(O,I,S,e,t,L);if(!(W===r?On(I,O,_|E,i,L):W))return!1}}return!0}function Vo(e){if(!ke(e)||Uc(e))return!1;var t=Bt(e)?ja:Xu;return t.test(Qt(e))}function tc(e){return Oe(e)&&ze(e)==Xe}function nc(e){return Oe(e)&&qe(e)==Ge}function rc(e){return Oe(e)&&xr(e.length)&&!!Ee[ze(e)]}function Qo(e){return typeof e=="function"?e:e==null?Ve:typeof e=="object"?ce(e)?ts(e[0],e[1]):es(e):wu(e)}function fi(e){if(!Ln(e))return sf(e);var t=[];for(var n in Ae(e))we.call(e,n)&&n!="constructor"&&t.push(n);return t}function ic(e){if(!ke(e))return Hc(e);var t=Ln(e),n=[];for(var i in e)i=="constructor"&&(t||!we.call(e,i))||n.push(i);return n}function ci(e,t){return e<t}function jo(e,t){var n=-1,i=Ye(e)?C(e.length):[];return Ht(e,function(u,c,v){i[++n]=t(u,c,v)}),i}function es(e){var t=Ei(e);return t.length==1&&t[0][2]?Ns(t[0][0],t[0][1]):function(n){return n===e||ai(n,e,t)}}function ts(e,t){return Ti(e)&&Ls(t)?Ns(St(e),t):function(n){var i=Di(n,e);return i===r&&i===t?Mi(n,e):On(t,i,_|E)}}function sr(e,t,n,i,u){e!==t&&ii(t,function(c,v){if(u||(u=new vt),ke(c))oc(e,t,v,n,sr,i,u);else{var m=i?i(ki(e,v),c,v+"",e,t,u):r;m===r&&(m=c),ni(e,v,m)}},Ze)}function oc(e,t,n,i,u,c,v){var m=ki(e,n),S=ki(t,n),O=v.get(S);if(O){ni(e,n,O);return}var I=c?c(m,S,n+"",e,t,v):r,L=I===r;if(L){var W=ce(S),Y=!W&&Gt(S),re=!W&&!Y&&gn(S);I=S,W||Y||re?ce(m)?I=m:Ie(m)?I=Je(m):Y?(L=!1,I=ps(S,!0)):re?(L=!1,I=ds(S,!0)):I=[]:Fn(S)||jt(S)?(I=m,jt(m)?I=cu(m):(!ke(m)||Bt(m))&&(I=Bs(S))):L=!1}L&&(v.set(S,I),u(I,S,i,c,v),v.delete(S)),ni(e,n,I)}function ns(e,t){var n=e.length;if(n)return t+=t<0?n:0,It(t,n)?e[t]:r}function rs(e,t,n){t.length?t=Re(t,function(c){return ce(c)?function(v){return Zt(v,c.length===1?c[0]:c)}:c}):t=[Ve];var i=-1;t=Re(t,tt(ne()));var u=jo(e,function(c,v,m){var S=Re(t,function(O){return O(c)});return{criteria:S,index:++i,value:c}});return Ia(u,function(c,v){return _c(c,v,n)})}function sc(e,t){return is(e,t,function(n,i){return Mi(e,i)})}function is(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var v=t[i],m=Zt(e,v);n(m,v)&&In(c,qt(v,e),m)}return c}function uc(e){return function(t){return Zt(t,e)}}function li(e,t,n,i){var u=i?Oa:rn,c=-1,v=t.length,m=e;for(e===t&&(t=Je(t)),n&&(m=Re(e,tt(n)));++c<v;)for(var S=0,O=t[c],I=n?n(O):O;(S=u(m,I,S,i))>-1;)m!==e&&Zn.call(m,S,1),Zn.call(e,S,1);return e}function os(e,t){for(var n=e?t.length:0,i=n-1;n--;){var u=t[n];if(n==i||u!==c){var c=u;It(u)?Zn.call(e,u,1):gi(e,u)}}return e}function hi(e,t){return e+jn(Po()*(t-e+1))}function ac(e,t,n,i){for(var u=-1,c=Fe(Qn((t-e)/(n||1)),0),v=C(c);c--;)v[i?c:++u]=e,e+=n;return v}function pi(e,t){var n="";if(!e||t<1||t>ae)return n;do t%2&&(n+=e),t=jn(t/2),t&&(e+=e);while(t);return n}function pe(e,t){return Oi(Fs(e,t,Ve),e+"")}function fc(e){return qo(vn(e))}function cc(e,t){var n=vn(e);return vr(n,Yt(t,0,n.length))}function In(e,t,n,i){if(!ke(e))return e;t=qt(t,e);for(var u=-1,c=t.length,v=c-1,m=e;m!=null&&++u<c;){var S=St(t[u]),O=n;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(u!=v){var I=m[S];O=i?i(I,S,m):r,O===r&&(O=ke(I)?I:It(t[u+1])?[]:{})}Tn(m,S,O),m=m[S]}return e}var ss=er?function(e,t){return er.set(e,t),e}:Ve,lc=Vn?function(e,t){return Vn(e,"toString",{configurable:!0,enumerable:!1,value:Hi(t),writable:!0})}:Ve;function hc(e){return vr(vn(e))}function lt(e,t,n){var i=-1,u=e.length;t<0&&(t=-t>u?0:u+t),n=n>u?u:n,n<0&&(n+=u),u=t>n?0:n-t>>>0,t>>>=0;for(var c=C(u);++i<u;)c[i]=e[i+t];return c}function pc(e,t){var n;return Ht(e,function(i,u,c){return n=t(i,u,c),!n}),!!n}function ur(e,t,n){var i=0,u=e==null?i:e.length;if(typeof t=="number"&&t===t&&u<=H){for(;i<u;){var c=i+u>>>1,v=e[c];v!==null&&!rt(v)&&(n?v<=t:v<t)?i=c+1:u=c}return u}return di(e,t,Ve,n)}function di(e,t,n,i){var u=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var v=t!==t,m=t===null,S=rt(t),O=t===r;u<c;){var I=jn((u+c)/2),L=n(e[I]),W=L!==r,Y=L===null,re=L===L,he=rt(L);if(v)var ie=i||re;else O?ie=re&&(i||W):m?ie=re&&W&&(i||!Y):S?ie=re&&W&&!Y&&(i||!he):Y||he?ie=!1:ie=i?L<=t:L<t;ie?u=I+1:c=I}return We(c,Un)}function us(e,t){for(var n=-1,i=e.length,u=0,c=[];++n<i;){var v=e[n],m=t?t(v):v;if(!n||!yt(m,S)){var S=m;c[u++]=v===0?0:v}}return c}function as(e){return typeof e=="number"?e:rt(e)?mt:+e}function nt(e){if(typeof e=="string")return e;if(ce(e))return Re(e,nt)+"";if(rt(e))return Ho?Ho.call(e):"";var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function Wt(e,t,n){var i=-1,u=Hn,c=e.length,v=!0,m=[],S=m;if(n)v=!1,u=Xr;else if(c>=l){var O=t?null:Sc(e);if(O)return qn(O);v=!1,u=bn,S=new Jt}else S=t?[]:m;e:for(;++i<c;){var I=e[i],L=t?t(I):I;if(I=n||I!==0?I:0,v&&L===L){for(var W=S.length;W--;)if(S[W]===L)continue e;t&&S.push(L),m.push(I)}else u(S,L,n)||(S!==m&&S.push(L),m.push(I))}return m}function gi(e,t){return t=qt(t,e),e=Us(e,t),e==null||delete e[St(ht(t))]}function fs(e,t,n,i){return In(e,t,n(Zt(e,t)),i)}function ar(e,t,n,i){for(var u=e.length,c=i?u:-1;(i?c--:++c<u)&&t(e[c],c,e););return n?lt(e,i?0:c,i?c+1:u):lt(e,i?c+1:0,i?u:c)}function cs(e,t){var n=e;return n instanceof ge&&(n=n.value()),Gr(t,function(i,u){return u.func.apply(u.thisArg,Dt([i],u.args))},n)}function vi(e,t,n){var i=e.length;if(i<2)return i?Wt(e[0]):[];for(var u=-1,c=C(i);++u<i;)for(var v=e[u],m=-1;++m<i;)m!=u&&(c[u]=Rn(c[u]||v,e[m],t,n));return Wt(Me(c,1),t,n)}function ls(e,t,n){for(var i=-1,u=e.length,c=t.length,v={};++i<u;){var m=i<c?t[i]:r;n(v,e[i],m)}return v}function yi(e){return Ie(e)?e:[]}function _i(e){return typeof e=="function"?e:Ve}function qt(e,t){return ce(e)?e:Ti(e,t)?[e]:Hs(me(e))}var dc=pe;function Xt(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:lt(e,t,n)}var hs=ef||function(e){return De.clearTimeout(e)};function ps(e,t){if(t)return e.slice();var n=e.length,i=No?No(n):new e.constructor(n);return e.copy(i),i}function mi(e){var t=new e.constructor(e.byteLength);return new Jn(t).set(new Jn(e)),t}function gc(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function vc(e){var t=new e.constructor(e.source,Yi.exec(e));return t.lastIndex=e.lastIndex,t}function yc(e){return Cn?Ae(Cn.call(e)):{}}function ds(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gs(e,t){if(e!==t){var n=e!==r,i=e===null,u=e===e,c=rt(e),v=t!==r,m=t===null,S=t===t,O=rt(t);if(!m&&!O&&!c&&e>t||c&&v&&S&&!m&&!O||i&&v&&S||!n&&S||!u)return 1;if(!i&&!c&&!O&&e<t||O&&n&&u&&!i&&!c||m&&n&&u||!v&&u||!S)return-1}return 0}function _c(e,t,n){for(var i=-1,u=e.criteria,c=t.criteria,v=u.length,m=n.length;++i<v;){var S=gs(u[i],c[i]);if(S){if(i>=m)return S;var O=n[i];return S*(O=="desc"?-1:1)}}return e.index-t.index}function vs(e,t,n,i){for(var u=-1,c=e.length,v=n.length,m=-1,S=t.length,O=Fe(c-v,0),I=C(S+O),L=!i;++m<S;)I[m]=t[m];for(;++u<v;)(L||u<c)&&(I[n[u]]=e[u]);for(;O--;)I[m++]=e[u++];return I}function ys(e,t,n,i){for(var u=-1,c=e.length,v=-1,m=n.length,S=-1,O=t.length,I=Fe(c-m,0),L=C(I+O),W=!i;++u<I;)L[u]=e[u];for(var Y=u;++S<O;)L[Y+S]=t[S];for(;++v<m;)(W||u<c)&&(L[Y+n[v]]=e[u++]);return L}function Je(e,t){var n=-1,i=e.length;for(t||(t=C(i));++n<i;)t[n]=e[n];return t}function At(e,t,n,i){var u=!n;n||(n={});for(var c=-1,v=t.length;++c<v;){var m=t[c],S=i?i(n[m],e[m],m,n,e):r;S===r&&(S=e[m]),u?Rt(n,m,S):Tn(n,m,S)}return n}function mc(e,t){return At(e,Ci(e),t)}function wc(e,t){return At(e,Os(e),t)}function fr(e,t){return function(n,i){var u=ce(n)?Sa:qf,c=t?t():{};return u(n,e,ne(i,2),c)}}function hn(e){return pe(function(t,n){var i=-1,u=n.length,c=u>1?n[u-1]:r,v=u>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(u--,c):r,v&&Ke(n[0],n[1],v)&&(c=u<3?r:c,u=1),t=Ae(t);++i<u;){var m=n[i];m&&e(t,m,i,c)}return t})}function _s(e,t){return function(n,i){if(n==null)return n;if(!Ye(n))return e(n,i);for(var u=n.length,c=t?u:-1,v=Ae(n);(t?c--:++c<u)&&i(v[c],c,v)!==!1;);return n}}function ms(e){return function(t,n,i){for(var u=-1,c=Ae(t),v=i(t),m=v.length;m--;){var S=v[e?m:++u];if(n(c[S],S,c)===!1)break}return t}}function bc(e,t,n){var i=t&k,u=Bn(e);function c(){var v=this&&this!==De&&this instanceof c?u:e;return v.apply(i?n:this,arguments)}return c}function ws(e){return function(t){t=me(t);var n=on(t)?gt(t):r,i=n?n[0]:t.charAt(0),u=n?Xt(n,1).join(""):t.slice(1);return i[e]()+u}}function pn(e){return function(t){return Gr(_u(yu(t).replace(ca,"")),e,"")}}function Bn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ln(e.prototype),i=e.apply(n,t);return ke(i)?i:n}}function xc(e,t,n){var i=Bn(e);function u(){for(var c=arguments.length,v=C(c),m=c,S=dn(u);m--;)v[m]=arguments[m];var O=c<3&&v[0]!==S&&v[c-1]!==S?[]:Mt(v,S);if(c-=O.length,c<n)return Es(e,t,cr,u.placeholder,r,v,O,r,r,n-c);var I=this&&this!==De&&this instanceof u?i:e;return et(I,this,v)}return u}function bs(e){return function(t,n,i){var u=Ae(t);if(!Ye(t)){var c=ne(n,3);t=Ue(t),n=function(m){return c(u[m],m,u)}}var v=e(t,n,i);return v>-1?u[c?t[v]:v]:r}}function xs(e){return Ot(function(t){var n=t.length,i=n,u=ft.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if(typeof c!="function")throw new at(d);if(u&&!v&&dr(c)=="wrapper")var v=new ft([],!0)}for(i=v?i:n;++i<n;){c=t[i];var m=dr(c),S=m=="wrapper"?Si(c):r;S&&Ri(S[0])&&S[1]==(P|Z|X|q)&&!S[4].length&&S[9]==1?v=v[dr(S[0])].apply(v,S[3]):v=c.length==1&&Ri(c)?v[m]():v.thru(c)}return function(){var O=arguments,I=O[0];if(v&&O.length==1&&ce(I))return v.plant(I).value();for(var L=0,W=n?t[L].apply(this,O):I;++L<n;)W=t[L].call(this,W);return W}})}function cr(e,t,n,i,u,c,v,m,S,O){var I=t&P,L=t&k,W=t&J,Y=t&(Z|ue),re=t&B,he=W?r:Bn(e);function ie(){for(var de=arguments.length,ve=C(de),it=de;it--;)ve[it]=arguments[it];if(Y)var $e=dn(ie),ot=La(ve,$e);if(i&&(ve=vs(ve,i,u,Y)),c&&(ve=ys(ve,c,v,Y)),de-=ot,Y&&de<O){var Be=Mt(ve,$e);return Es(e,t,cr,ie.placeholder,n,ve,Be,m,S,O-de)}var _t=L?n:this,Nt=W?_t[e]:e;return de=ve.length,m?ve=qc(ve,m):re&&de>1&&ve.reverse(),I&&S<de&&(ve.length=S),this&&this!==De&&this instanceof ie&&(Nt=he||Bn(Nt)),Nt.apply(_t,ve)}return ie}function As(e,t){return function(n,i){return Zf(n,e,t(i),{})}}function lr(e,t){return function(n,i){var u;if(n===r&&i===r)return t;if(n!==r&&(u=n),i!==r){if(u===r)return i;typeof n=="string"||typeof i=="string"?(n=nt(n),i=nt(i)):(n=as(n),i=as(i)),u=e(n,i)}return u}}function wi(e){return Ot(function(t){return t=Re(t,tt(ne())),pe(function(n){var i=this;return e(t,function(u){return et(u,i,n)})})})}function hr(e,t){t=t===r?" ":nt(t);var n=t.length;if(n<2)return n?pi(t,e):t;var i=pi(t,Qn(e/sn(t)));return on(t)?Xt(gt(i),0,e).join(""):i.slice(0,e)}function Ac(e,t,n,i){var u=t&k,c=Bn(e);function v(){for(var m=-1,S=arguments.length,O=-1,I=i.length,L=C(I+S),W=this&&this!==De&&this instanceof v?c:e;++O<I;)L[O]=i[O];for(;S--;)L[O++]=arguments[++m];return et(W,u?n:this,L)}return v}function Ss(e){return function(t,n,i){return i&&typeof i!="number"&&Ke(t,n,i)&&(n=i=r),t=Lt(t),n===r?(n=t,t=0):n=Lt(n),i=i===r?t<n?1:-1:Lt(i),ac(t,n,i,e)}}function pr(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=pt(t),n=pt(n)),e(t,n)}}function Es(e,t,n,i,u,c,v,m,S,O){var I=t&Z,L=I?v:r,W=I?r:v,Y=I?c:r,re=I?r:c;t|=I?X:U,t&=~(I?U:X),t&se||(t&=~(k|J));var he=[e,t,u,Y,L,re,W,m,S,O],ie=n.apply(r,he);return Ri(e)&&Ds(ie,he),ie.placeholder=i,Ms(ie,e,t)}function bi(e){var t=Ne[e];return function(n,i){if(n=pt(n),i=i==null?0:We(le(i),292),i&&Mo(n)){var u=(me(n)+"e").split("e"),c=t(u[0]+"e"+(+u[1]+i));return u=(me(c)+"e").split("e"),+(u[0]+"e"+(+u[1]-i))}return t(n)}}var Sc=fn&&1/qn(new fn([,-0]))[1]==Ce?function(e){return new fn(e)}:Xi;function Cs(e){return function(t){var n=qe(t);return n==Te?Vr(t):n==Ge?Ha(t):Ba(t,e(t))}}function kt(e,t,n,i,u,c,v,m){var S=t&J;if(!S&&typeof e!="function")throw new at(d);var O=i?i.length:0;if(O||(t&=~(X|U),i=u=r),v=v===r?v:Fe(le(v),0),m=m===r?m:le(m),O-=u?u.length:0,t&U){var I=i,L=u;i=u=r}var W=S?r:Si(e),Y=[e,t,n,i,u,I,L,c,v,m];if(W&&Pc(Y,W),e=Y[0],t=Y[1],n=Y[2],i=Y[3],u=Y[4],m=Y[9]=Y[9]===r?S?0:e.length:Fe(Y[9]-O,0),!m&&t&(Z|ue)&&(t&=~(Z|ue)),!t||t==k)var re=bc(e,t,n);else t==Z||t==ue?re=xc(e,t,m):(t==X||t==(k|X))&&!u.length?re=Ac(e,t,n,i):re=cr.apply(r,Y);var he=W?ss:Ds;return Ms(he(re,Y),e,t)}function Ts(e,t,n,i){return e===r||yt(e,an[n])&&!we.call(i,n)?t:e}function Rs(e,t,n,i,u,c){return ke(e)&&ke(t)&&(c.set(t,e),sr(e,t,r,Rs,c),c.delete(t)),e}function Ec(e){return Fn(e)?r:e}function ks(e,t,n,i,u,c){var v=n&_,m=e.length,S=t.length;if(m!=S&&!(v&&S>m))return!1;var O=c.get(e),I=c.get(t);if(O&&I)return O==t&&I==e;var L=-1,W=!0,Y=n&E?new Jt:r;for(c.set(e,t),c.set(t,e);++L<m;){var re=e[L],he=t[L];if(i)var ie=v?i(he,re,L,t,e,c):i(re,he,L,e,t,c);if(ie!==r){if(ie)continue;W=!1;break}if(Y){if(!zr(t,function(de,ve){if(!bn(Y,ve)&&(re===de||u(re,de,n,i,c)))return Y.push(ve)})){W=!1;break}}else if(!(re===he||u(re,he,n,i,c))){W=!1;break}}return c.delete(e),c.delete(t),W}function Cc(e,t,n,i,u,c,v){switch(n){case tn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ft:return!(e.byteLength!=t.byteLength||!c(new Jn(e),new Jn(t)));case Q:case ee:case dt:return yt(+e,+t);case oe:return e.name==t.name&&e.message==t.message;case Xe:case wt:return e==t+"";case Te:var m=Vr;case Ge:var S=i&_;if(m||(m=qn),e.size!=t.size&&!S)return!1;var O=v.get(e);if(O)return O==t;i|=E,v.set(e,t);var I=ks(m(e),m(t),i,u,c,v);return v.delete(e),I;case bt:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}function Tc(e,t,n,i,u,c){var v=n&_,m=xi(e),S=m.length,O=xi(t),I=O.length;if(S!=I&&!v)return!1;for(var L=S;L--;){var W=m[L];if(!(v?W in t:we.call(t,W)))return!1}var Y=c.get(e),re=c.get(t);if(Y&&re)return Y==t&&re==e;var he=!0;c.set(e,t),c.set(t,e);for(var ie=v;++L<S;){W=m[L];var de=e[W],ve=t[W];if(i)var it=v?i(ve,de,W,t,e,c):i(de,ve,W,e,t,c);if(!(it===r?de===ve||u(de,ve,n,i,c):it)){he=!1;break}ie||(ie=W=="constructor")}if(he&&!ie){var $e=e.constructor,ot=t.constructor;$e!=ot&&"constructor"in e&&"constructor"in t&&!(typeof $e=="function"&&$e instanceof $e&&typeof ot=="function"&&ot instanceof ot)&&(he=!1)}return c.delete(e),c.delete(t),he}function Ot(e){return Oi(Fs(e,r,Gs),e+"")}function xi(e){return Yo(e,Ue,Ci)}function Ai(e){return Yo(e,Ze,Os)}var Si=er?function(e){return er.get(e)}:Xi;function dr(e){for(var t=e.name+"",n=cn[t],i=we.call(cn,t)?n.length:0;i--;){var u=n[i],c=u.func;if(c==null||c==e)return u.name}return t}function dn(e){var t=we.call(f,"placeholder")?f:e;return t.placeholder}function ne(){var e=f.iteratee||Wi;return e=e===Wi?Qo:e,arguments.length?e(arguments[0],arguments[1]):e}function gr(e,t){var n=e.__data__;return Fc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ei(e){for(var t=Ue(e),n=t.length;n--;){var i=t[n],u=e[i];t[n]=[i,u,Ls(u)]}return t}function Vt(e,t){var n=Da(e,t);return Vo(n)?n:r}function Rc(e){var t=we.call(e,Kt),n=e[Kt];try{e[Kt]=r;var i=!0}catch{}var u=Kn.call(e);return i&&(t?e[Kt]=n:delete e[Kt]),u}var Ci=jr?function(e){return e==null?[]:(e=Ae(e),Ut(jr(e),function(t){return Uo.call(e,t)}))}:Gi,Os=jr?function(e){for(var t=[];e;)Dt(t,Ci(e)),e=Yn(e);return t}:Gi,qe=ze;(ei&&qe(new ei(new ArrayBuffer(1)))!=tn||An&&qe(new An)!=Te||ti&&qe(ti.resolve())!=en||fn&&qe(new fn)!=Ge||Sn&&qe(new Sn)!=Et)&&(qe=function(e){var t=ze(e),n=t==je?e.constructor:r,i=n?Qt(n):"";if(i)switch(i){case cf:return tn;case lf:return Te;case hf:return en;case pf:return Ge;case df:return Et}return t});function kc(e,t,n){for(var i=-1,u=n.length;++i<u;){var c=n[i],v=c.size;switch(c.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=We(t,e+v);break;case"takeRight":e=Fe(e,t-v);break}}return{start:e,end:t}}function Oc(e){var t=e.match(Fu);return t?t[1].split(Uu):[]}function Is(e,t,n){t=qt(t,e);for(var i=-1,u=t.length,c=!1;++i<u;){var v=St(t[i]);if(!(c=e!=null&&n(e,v)))break;e=e[v]}return c||++i!=u?c:(u=e==null?0:e.length,!!u&&xr(u)&&It(v,u)&&(ce(e)||jt(e)))}function Ic(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Bs(e){return typeof e.constructor=="function"&&!Ln(e)?ln(Yn(e)):{}}function Bc(e,t,n){var i=e.constructor;switch(t){case Ft:return mi(e);case Q:case ee:return new i(+e);case tn:return gc(e,n);case Er:case Cr:case Tr:case Rr:case kr:case Or:case Ir:case Br:case Lr:return ds(e,n);case Te:return new i;case dt:case wt:return new i(e);case Xe:return vc(e);case Ge:return new i;case bt:return yc(e)}}function Lc(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Nu,`{
|
|
16
|
+
*/lodash.exports;(function(s,a){(function(){var r,o="4.17.21",l=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",y="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",w=500,T="__lodash_placeholder__",b=1,g=2,p=4,_=1,S=2,k=1,J=2,se=4,V=8,ue=16,X=32,D=64,P=128,q=256,B=512,F=30,K="...",j=800,Z=16,N=1,be=2,xe=3,Ce=1/0,ae=9007199254740991,Pe=17976931348623157e292,mt=0/0,Qe=4294967295,Dn=Qe-1,H=Qe>>>1,$=[["ary",P],["bind",k],["bindKey",J],["curry",V],["curryRight",ue],["flip",B],["partial",X],["partialRight",D],["rearg",q]],M="[object Arguments]",te="[object Array]",U="[object AsyncFunction]",Q="[object Boolean]",ee="[object Date]",z="[object DOMException]",oe="[object Error]",_e="[object Function]",He="[object GeneratorFunction]",Te="[object Map]",dt="[object Number]",yn="[object Null]",je="[object Object]",en="[object Promise]",_n="[object Proxy]",Xe="[object RegExp]",Ge="[object Set]",wt="[object String]",bt="[object Symbol]",mn="[object Undefined]",St="[object WeakMap]",wn="[object WeakSet]",Ft="[object ArrayBuffer]",tn="[object DataView]",Sr="[object Float32Array]",Cr="[object Float64Array]",Tr="[object Int8Array]",Rr="[object Int16Array]",kr="[object Int32Array]",Or="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Br="[object Uint16Array]",Lr="[object Uint32Array]",xu=/\b__p \+= '';/g,Eu=/\b(__p \+=) '' \+/g,Au=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ki=/&(?:amp|lt|gt|quot|#39);/g,$i=/[&<>"']/g,Su=RegExp(Ki.source),Cu=RegExp($i.source),Tu=/<%-([\s\S]+?)%>/g,Ru=/<%([\s\S]+?)%>/g,Ji=/<%=([\s\S]+?)%>/g,ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ou=/^\w*$/,Iu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nr=/[\\^$.*+?()[\]{}|]/g,Bu=RegExp(Nr.source),Fr=/^\s+/,Lu=/\s/,Nu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fu=/\{\n\/\* \[wrapped with (.+)\] \*/,Du=/,? & /,Uu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mu=/[()=,{}\[\]\/\s]/,Pu=/\\(\\)?/g,Hu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yi=/\w*$/,Wu=/^[-+]0x[0-9a-f]+$/i,qu=/^0b[01]+$/i,Xu=/^\[object .+?Constructor\]$/,Gu=/^0o[0-7]+$/i,zu=/^(?:0|[1-9]\d*)$/,Ku=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Un=/($^)/,$u=/['\n\r\u2028\u2029\\]/g,Mn="\\ud800-\\udfff",Ju="\\u0300-\\u036f",Yu="\\ufe20-\\ufe2f",Vu="\\u20d0-\\u20ff",Vi=Ju+Yu+Vu,Zi="\\u2700-\\u27bf",Qi="a-z\\xdf-\\xf6\\xf8-\\xff",Zu="\\xac\\xb1\\xd7\\xf7",Qu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ju="\\u2000-\\u206f",ea=" \\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",ji="A-Z\\xc0-\\xd6\\xd8-\\xde",eo="\\ufe0e\\ufe0f",to=Zu+Qu+ju+ea,Dr="['’]",ta="["+Mn+"]",no="["+to+"]",Pn="["+Vi+"]",ro="\\d+",na="["+Zi+"]",io="["+Qi+"]",oo="[^"+Mn+to+ro+Zi+Qi+ji+"]",Ur="\\ud83c[\\udffb-\\udfff]",ra="(?:"+Pn+"|"+Ur+")",so="[^"+Mn+"]",Mr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",nn="["+ji+"]",uo="\\u200d",ao="(?:"+io+"|"+oo+")",ia="(?:"+nn+"|"+oo+")",fo="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",co="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",lo=ra+"?",ho="["+eo+"]?",oa="(?:"+uo+"(?:"+[so,Mr,Pr].join("|")+")"+ho+lo+")*",sa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ua="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",po=ho+lo+oa,aa="(?:"+[na,Mr,Pr].join("|")+")"+po,fa="(?:"+[so+Pn+"?",Pn,Mr,Pr,ta].join("|")+")",ca=RegExp(Dr,"g"),la=RegExp(Pn,"g"),Hr=RegExp(Ur+"(?="+Ur+")|"+fa+po,"g"),ha=RegExp([nn+"?"+io+"+"+fo+"(?="+[no,nn,"$"].join("|")+")",ia+"+"+co+"(?="+[no,nn+ao,"$"].join("|")+")",nn+"?"+ao+"+"+fo,nn+"+"+co,ua,sa,ro,aa].join("|"),"g"),pa=RegExp("["+uo+Mn+Vi+eo+"]"),da=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ga=["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"],va=-1,Se={};Se[Sr]=Se[Cr]=Se[Tr]=Se[Rr]=Se[kr]=Se[Or]=Se[Ir]=Se[Br]=Se[Lr]=!0,Se[M]=Se[te]=Se[Ft]=Se[Q]=Se[tn]=Se[ee]=Se[oe]=Se[_e]=Se[Te]=Se[dt]=Se[je]=Se[Xe]=Se[Ge]=Se[wt]=Se[St]=!1;var Ae={};Ae[M]=Ae[te]=Ae[Ft]=Ae[tn]=Ae[Q]=Ae[ee]=Ae[Sr]=Ae[Cr]=Ae[Tr]=Ae[Rr]=Ae[kr]=Ae[Te]=Ae[dt]=Ae[je]=Ae[Xe]=Ae[Ge]=Ae[wt]=Ae[bt]=Ae[Or]=Ae[Ir]=Ae[Br]=Ae[Lr]=!0,Ae[oe]=Ae[_e]=Ae[St]=!1;var ya={À:"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"},_a={"&":"&","<":"<",">":">",'"':""","'":"'"},ma={"&":"&","<":"<",">":">",""":'"',"'":"'"},wa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ba=parseFloat,xa=parseInt,go=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Ea=typeof self=="object"&&self&&self.Object===Object&&self,Ue=go||Ea||Function("return this")(),Wr=a&&!a.nodeType&&a,zt=Wr&&!0&&s&&!s.nodeType&&s,vo=zt&&zt.exports===Wr,qr=vo&&go.process,st=function(){try{var x=zt&&zt.require&&zt.require("util").types;return x||qr&&qr.binding&&qr.binding("util")}catch{}}(),yo=st&&st.isArrayBuffer,_o=st&&st.isDate,mo=st&&st.isMap,wo=st&&st.isRegExp,bo=st&&st.isSet,xo=st&&st.isTypedArray;function et(x,R,C){switch(C.length){case 0:return x.call(R);case 1:return x.call(R,C[0]);case 2:return x.call(R,C[0],C[1]);case 3:return x.call(R,C[0],C[1],C[2])}return x.apply(R,C)}function Aa(x,R,C,G){for(var fe=-1,ye=x==null?0:x.length;++fe<ye;){var Ne=x[fe];R(G,Ne,C(Ne),x)}return G}function ut(x,R){for(var C=-1,G=x==null?0:x.length;++C<G&&R(x[C],C,x)!==!1;);return x}function Sa(x,R){for(var C=x==null?0:x.length;C--&&R(x[C],C,x)!==!1;);return x}function Eo(x,R){for(var C=-1,G=x==null?0:x.length;++C<G;)if(!R(x[C],C,x))return!1;return!0}function Dt(x,R){for(var C=-1,G=x==null?0:x.length,fe=0,ye=[];++C<G;){var Ne=x[C];R(Ne,C,x)&&(ye[fe++]=Ne)}return ye}function Hn(x,R){var C=x==null?0:x.length;return!!C&&rn(x,R,0)>-1}function Xr(x,R,C){for(var G=-1,fe=x==null?0:x.length;++G<fe;)if(C(R,x[G]))return!0;return!1}function Re(x,R){for(var C=-1,G=x==null?0:x.length,fe=Array(G);++C<G;)fe[C]=R(x[C],C,x);return fe}function Ut(x,R){for(var C=-1,G=R.length,fe=x.length;++C<G;)x[fe+C]=R[C];return x}function Gr(x,R,C,G){var fe=-1,ye=x==null?0:x.length;for(G&&ye&&(C=x[++fe]);++fe<ye;)C=R(C,x[fe],fe,x);return C}function Ca(x,R,C,G){var fe=x==null?0:x.length;for(G&&fe&&(C=x[--fe]);fe--;)C=R(C,x[fe],fe,x);return C}function zr(x,R){for(var C=-1,G=x==null?0:x.length;++C<G;)if(R(x[C],C,x))return!0;return!1}var Ta=Kr("length");function Ra(x){return x.split("")}function ka(x){return x.match(Uu)||[]}function Ao(x,R,C){var G;return C(x,function(fe,ye,Ne){if(R(fe,ye,Ne))return G=ye,!1}),G}function Wn(x,R,C,G){for(var fe=x.length,ye=C+(G?1:-1);G?ye--:++ye<fe;)if(R(x[ye],ye,x))return ye;return-1}function rn(x,R,C){return R===R?Wa(x,R,C):Wn(x,So,C)}function Oa(x,R,C,G){for(var fe=C-1,ye=x.length;++fe<ye;)if(G(x[fe],R))return fe;return-1}function So(x){return x!==x}function Co(x,R){var C=x==null?0:x.length;return C?Jr(x,R)/C:mt}function Kr(x){return function(R){return R==null?r:R[x]}}function $r(x){return function(R){return x==null?r:x[R]}}function To(x,R,C,G,fe){return fe(x,function(ye,Ne,Ee){C=G?(G=!1,ye):R(C,ye,Ne,Ee)}),C}function Ia(x,R){var C=x.length;for(x.sort(R);C--;)x[C]=x[C].value;return x}function Jr(x,R){for(var C,G=-1,fe=x.length;++G<fe;){var ye=R(x[G]);ye!==r&&(C=C===r?ye:C+ye)}return C}function Yr(x,R){for(var C=-1,G=Array(x);++C<x;)G[C]=R(C);return G}function Ba(x,R){return Re(R,function(C){return[C,x[C]]})}function Ro(x){return x&&x.slice(0,Bo(x)+1).replace(Fr,"")}function tt(x){return function(R){return x(R)}}function Vr(x,R){return Re(R,function(C){return x[C]})}function bn(x,R){return x.has(R)}function ko(x,R){for(var C=-1,G=x.length;++C<G&&rn(R,x[C],0)>-1;);return C}function Oo(x,R){for(var C=x.length;C--&&rn(R,x[C],0)>-1;);return C}function La(x,R){for(var C=x.length,G=0;C--;)x[C]===R&&++G;return G}var Na=$r(ya),Fa=$r(_a);function Da(x){return"\\"+wa[x]}function Ua(x,R){return x==null?r:x[R]}function on(x){return pa.test(x)}function Ma(x){return da.test(x)}function Pa(x){for(var R,C=[];!(R=x.next()).done;)C.push(R.value);return C}function Zr(x){var R=-1,C=Array(x.size);return x.forEach(function(G,fe){C[++R]=[fe,G]}),C}function Io(x,R){return function(C){return x(R(C))}}function Mt(x,R){for(var C=-1,G=x.length,fe=0,ye=[];++C<G;){var Ne=x[C];(Ne===R||Ne===T)&&(x[C]=T,ye[fe++]=C)}return ye}function qn(x){var R=-1,C=Array(x.size);return x.forEach(function(G){C[++R]=G}),C}function Ha(x){var R=-1,C=Array(x.size);return x.forEach(function(G){C[++R]=[G,G]}),C}function Wa(x,R,C){for(var G=C-1,fe=x.length;++G<fe;)if(x[G]===R)return G;return-1}function qa(x,R,C){for(var G=C+1;G--;)if(x[G]===R)return G;return G}function sn(x){return on(x)?Ga(x):Ta(x)}function gt(x){return on(x)?za(x):Ra(x)}function Bo(x){for(var R=x.length;R--&&Lu.test(x.charAt(R)););return R}var Xa=$r(ma);function Ga(x){for(var R=Hr.lastIndex=0;Hr.test(x);)++R;return R}function za(x){return x.match(Hr)||[]}function Ka(x){return x.match(ha)||[]}var $a=function x(R){R=R==null?Ue:un.defaults(Ue.Object(),R,un.pick(Ue,ga));var C=R.Array,G=R.Date,fe=R.Error,ye=R.Function,Ne=R.Math,Ee=R.Object,Qr=R.RegExp,Ja=R.String,at=R.TypeError,Xn=C.prototype,Ya=ye.prototype,an=Ee.prototype,Gn=R["__core-js_shared__"],zn=Ya.toString,we=an.hasOwnProperty,Va=0,Lo=function(){var e=/[^.]+$/.exec(Gn&&Gn.keys&&Gn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Kn=an.toString,Za=zn.call(Ee),Qa=Ue._,ja=Qr("^"+zn.call(we).replace(Nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$n=vo?R.Buffer:r,Pt=R.Symbol,Jn=R.Uint8Array,No=$n?$n.allocUnsafe:r,Yn=Io(Ee.getPrototypeOf,Ee),Fo=Ee.create,Do=an.propertyIsEnumerable,Vn=Xn.splice,Uo=Pt?Pt.isConcatSpreadable:r,xn=Pt?Pt.iterator:r,Kt=Pt?Pt.toStringTag:r,Zn=function(){try{var e=Zt(Ee,"defineProperty");return e({},"",{}),e}catch{}}(),ef=R.clearTimeout!==Ue.clearTimeout&&R.clearTimeout,tf=G&&G.now!==Ue.Date.now&&G.now,nf=R.setTimeout!==Ue.setTimeout&&R.setTimeout,Qn=Ne.ceil,jn=Ne.floor,jr=Ee.getOwnPropertySymbols,rf=$n?$n.isBuffer:r,Mo=R.isFinite,of=Xn.join,sf=Io(Ee.keys,Ee),Fe=Ne.max,We=Ne.min,uf=G.now,af=R.parseInt,Po=Ne.random,ff=Xn.reverse,ei=Zt(R,"DataView"),En=Zt(R,"Map"),ti=Zt(R,"Promise"),fn=Zt(R,"Set"),An=Zt(R,"WeakMap"),Sn=Zt(Ee,"create"),er=An&&new An,cn={},cf=Qt(ei),lf=Qt(En),hf=Qt(ti),pf=Qt(fn),df=Qt(An),tr=Pt?Pt.prototype:r,Cn=tr?tr.valueOf:r,Ho=tr?tr.toString:r;function f(e){if(Oe(e)&&!ce(e)&&!(e instanceof ge)){if(e instanceof ft)return e;if(we.call(e,"__wrapped__"))return Ws(e)}return new ft(e)}var ln=function(){function e(){}return function(t){if(!ke(t))return{};if(Fo)return Fo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function nr(){}function ft(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}f.templateSettings={escape:Tu,evaluate:Ru,interpolate:Ji,variable:"",imports:{_:f}},f.prototype=nr.prototype,f.prototype.constructor=f,ft.prototype=ln(nr.prototype),ft.prototype.constructor=ft;function ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Qe,this.__views__=[]}function gf(){var e=new ge(this.__wrapped__);return e.__actions__=Je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Je(this.__views__),e}function vf(){if(this.__filtered__){var e=new ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yf(){var e=this.__wrapped__.value(),t=this.__dir__,n=ce(e),i=t<0,u=n?e.length:0,c=kc(0,u,this.__views__),v=c.start,m=c.end,A=m-v,O=i?m:v-1,I=this.__iteratees__,L=I.length,W=0,Y=We(A,this.__takeCount__);if(!n||!i&&u==A&&Y==A)return cs(e,this.__actions__);var re=[];e:for(;A--&&W<Y;){O+=t;for(var he=-1,ie=e[O];++he<L;){var de=I[he],ve=de.iteratee,it=de.type,$e=ve(ie);if(it==be)ie=$e;else if(!$e){if(it==N)continue e;break e}}re[W++]=ie}return re}ge.prototype=ln(nr.prototype),ge.prototype.constructor=ge;function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function _f(){this.__data__=Sn?Sn(null):{},this.size=0}function mf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function wf(e){var t=this.__data__;if(Sn){var n=t[e];return n===E?r:n}return we.call(t,e)?t[e]:r}function bf(e){var t=this.__data__;return Sn?t[e]!==r:we.call(t,e)}function xf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sn&&t===r?E:t,this}$t.prototype.clear=_f,$t.prototype.delete=mf,$t.prototype.get=wf,$t.prototype.has=bf,$t.prototype.set=xf;function Ct(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ef(){this.__data__=[],this.size=0}function Af(e){var t=this.__data__,n=rr(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Vn.call(t,n,1),--this.size,!0}function Sf(e){var t=this.__data__,n=rr(t,e);return n<0?r:t[n][1]}function Cf(e){return rr(this.__data__,e)>-1}function Tf(e,t){var n=this.__data__,i=rr(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}Ct.prototype.clear=Ef,Ct.prototype.delete=Af,Ct.prototype.get=Sf,Ct.prototype.has=Cf,Ct.prototype.set=Tf;function Tt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Rf(){this.size=0,this.__data__={hash:new $t,map:new(En||Ct),string:new $t}}function kf(e){var t=gr(this,e).delete(e);return this.size-=t?1:0,t}function Of(e){return gr(this,e).get(e)}function If(e){return gr(this,e).has(e)}function Bf(e,t){var n=gr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Tt.prototype.clear=Rf,Tt.prototype.delete=kf,Tt.prototype.get=Of,Tt.prototype.has=If,Tt.prototype.set=Bf;function Jt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Tt;++t<n;)this.add(e[t])}function Lf(e){return this.__data__.set(e,E),this}function Nf(e){return this.__data__.has(e)}Jt.prototype.add=Jt.prototype.push=Lf,Jt.prototype.has=Nf;function vt(e){var t=this.__data__=new Ct(e);this.size=t.size}function Ff(){this.__data__=new Ct,this.size=0}function Df(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Uf(e){return this.__data__.get(e)}function Mf(e){return this.__data__.has(e)}function Pf(e,t){var n=this.__data__;if(n instanceof Ct){var i=n.__data__;if(!En||i.length<l-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tt(i)}return n.set(e,t),this.size=n.size,this}vt.prototype.clear=Ff,vt.prototype.delete=Df,vt.prototype.get=Uf,vt.prototype.has=Mf,vt.prototype.set=Pf;function Wo(e,t){var n=ce(e),i=!n&&jt(e),u=!n&&!i&&Gt(e),c=!n&&!i&&!u&&gn(e),v=n||i||u||c,m=v?Yr(e.length,Ja):[],A=m.length;for(var O in e)(t||we.call(e,O))&&!(v&&(O=="length"||u&&(O=="offset"||O=="parent")||c&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||It(O,A)))&&m.push(O);return m}function qo(e){var t=e.length;return t?e[hi(0,t-1)]:r}function Hf(e,t){return vr(Je(e),Yt(t,0,e.length))}function Wf(e){return vr(Je(e))}function ni(e,t,n){(n!==r&&!yt(e[t],n)||n===r&&!(t in e))&&Rt(e,t,n)}function Tn(e,t,n){var i=e[t];(!(we.call(e,t)&&yt(i,n))||n===r&&!(t in e))&&Rt(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(yt(e[n][0],t))return n;return-1}function qf(e,t,n,i){return Ht(e,function(u,c,v){t(i,u,n(u),v)}),i}function Xo(e,t){return e&&Et(t,De(t),e)}function Xf(e,t){return e&&Et(t,Ve(t),e)}function Rt(e,t,n){t=="__proto__"&&Zn?Zn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,i=t.length,u=C(i),c=e==null;++n<i;)u[n]=c?r:Ui(e,t[n]);return u}function Yt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ct(e,t,n,i,u,c){var v,m=t&b,A=t&g,O=t&p;if(n&&(v=u?n(e,i,u,c):n(e)),v!==r)return v;if(!ke(e))return e;var I=ce(e);if(I){if(v=Ic(e),!m)return Je(e,v)}else{var L=qe(e),W=L==_e||L==He;if(Gt(e))return ps(e,m);if(L==je||L==M||W&&!u){if(v=A||W?{}:Bs(e),!m)return A?wc(e,Xf(v,e)):mc(e,Xo(v,e))}else{if(!Ae[L])return u?e:{};v=Bc(e,L,m)}}c||(c=new vt);var Y=c.get(e);if(Y)return Y;c.set(e,v),uu(e)?e.forEach(function(ie){v.add(ct(ie,t,n,ie,e,c))}):ou(e)&&e.forEach(function(ie,de){v.set(de,ct(ie,t,n,de,e,c))});var re=O?A?Ei:xi:A?Ve:De,he=I?r:re(e);return ut(he||e,function(ie,de){he&&(de=ie,ie=e[de]),Tn(v,de,ct(ie,t,n,de,e,c))}),v}function Gf(e){var t=De(e);return function(n){return Go(n,e,t)}}function Go(e,t,n){var i=n.length;if(e==null)return!i;for(e=Ee(e);i--;){var u=n[i],c=t[u],v=e[u];if(v===r&&!(u in e)||!c(v))return!1}return!0}function zo(e,t,n){if(typeof e!="function")throw new at(d);return Nn(function(){e.apply(r,n)},t)}function Rn(e,t,n,i){var u=-1,c=Hn,v=!0,m=e.length,A=[],O=t.length;if(!m)return A;n&&(t=Re(t,tt(n))),i?(c=Xr,v=!1):t.length>=l&&(c=bn,v=!1,t=new Jt(t));e:for(;++u<m;){var I=e[u],L=n==null?I:n(I);if(I=i||I!==0?I:0,v&&L===L){for(var W=O;W--;)if(t[W]===L)continue e;A.push(I)}else c(t,L,i)||A.push(I)}return A}var Ht=_s(xt),Ko=_s(oi,!0);function zf(e,t){var n=!0;return Ht(e,function(i,u,c){return n=!!t(i,u,c),n}),n}function ir(e,t,n){for(var i=-1,u=e.length;++i<u;){var c=e[i],v=t(c);if(v!=null&&(m===r?v===v&&!rt(v):n(v,m)))var m=v,A=c}return A}function Kf(e,t,n,i){var u=e.length;for(n=le(n),n<0&&(n=-n>u?0:u+n),i=i===r||i>u?u:le(i),i<0&&(i+=u),i=n>i?0:fu(i);n<i;)e[n++]=t;return e}function $o(e,t){var n=[];return Ht(e,function(i,u,c){t(i,u,c)&&n.push(i)}),n}function Me(e,t,n,i,u){var c=-1,v=e.length;for(n||(n=Nc),u||(u=[]);++c<v;){var m=e[c];t>0&&n(m)?t>1?Me(m,t-1,n,i,u):Ut(u,m):i||(u[u.length]=m)}return u}var ii=ms(),Jo=ms(!0);function xt(e,t){return e&&ii(e,t,De)}function oi(e,t){return e&&Jo(e,t,De)}function or(e,t){return Dt(t,function(n){return Bt(e[n])})}function Vt(e,t){t=qt(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[At(t[n++])];return n&&n==i?e:r}function Yo(e,t,n){var i=t(e);return ce(e)?i:Ut(i,n(e))}function ze(e){return e==null?e===r?mn:yn:Kt&&Kt in Ee(e)?Rc(e):Wc(e)}function si(e,t){return e>t}function $f(e,t){return e!=null&&we.call(e,t)}function Jf(e,t){return e!=null&&t in Ee(e)}function Yf(e,t,n){return e>=We(t,n)&&e<Fe(t,n)}function ui(e,t,n){for(var i=n?Xr:Hn,u=e[0].length,c=e.length,v=c,m=C(c),A=1/0,O=[];v--;){var I=e[v];v&&t&&(I=Re(I,tt(t))),A=We(I.length,A),m[v]=!n&&(t||u>=120&&I.length>=120)?new Jt(v&&I):r}I=e[0];var L=-1,W=m[0];e:for(;++L<u&&O.length<A;){var Y=I[L],re=t?t(Y):Y;if(Y=n||Y!==0?Y:0,!(W?bn(W,re):i(O,re,n))){for(v=c;--v;){var he=m[v];if(!(he?bn(he,re):i(e[v],re,n)))continue e}W&&W.push(re),O.push(Y)}}return O}function Vf(e,t,n,i){return xt(e,function(u,c,v){t(i,n(u),c,v)}),i}function kn(e,t,n){t=qt(t,e),e=Ds(e,t);var i=e==null?e:e[At(ht(t))];return i==null?r:et(i,e,n)}function Vo(e){return Oe(e)&&ze(e)==M}function Zf(e){return Oe(e)&&ze(e)==Ft}function Qf(e){return Oe(e)&&ze(e)==ee}function On(e,t,n,i,u){return e===t?!0:e==null||t==null||!Oe(e)&&!Oe(t)?e!==e&&t!==t:jf(e,t,n,i,On,u)}function jf(e,t,n,i,u,c){var v=ce(e),m=ce(t),A=v?te:qe(e),O=m?te:qe(t);A=A==M?je:A,O=O==M?je:O;var I=A==je,L=O==je,W=A==O;if(W&&Gt(e)){if(!Gt(t))return!1;v=!0,I=!1}if(W&&!I)return c||(c=new vt),v||gn(e)?ks(e,t,n,i,u,c):Cc(e,t,A,n,i,u,c);if(!(n&_)){var Y=I&&we.call(e,"__wrapped__"),re=L&&we.call(t,"__wrapped__");if(Y||re){var he=Y?e.value():e,ie=re?t.value():t;return c||(c=new vt),u(he,ie,n,i,c)}}return W?(c||(c=new vt),Tc(e,t,n,i,u,c)):!1}function ec(e){return Oe(e)&&qe(e)==Te}function ai(e,t,n,i){var u=n.length,c=u,v=!i;if(e==null)return!c;for(e=Ee(e);u--;){var m=n[u];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++u<c;){m=n[u];var A=m[0],O=e[A],I=m[1];if(v&&m[2]){if(O===r&&!(A in e))return!1}else{var L=new vt;if(i)var W=i(O,I,A,e,t,L);if(!(W===r?On(I,O,_|S,i,L):W))return!1}}return!0}function Zo(e){if(!ke(e)||Dc(e))return!1;var t=Bt(e)?ja:Xu;return t.test(Qt(e))}function tc(e){return Oe(e)&&ze(e)==Xe}function nc(e){return Oe(e)&&qe(e)==Ge}function rc(e){return Oe(e)&&xr(e.length)&&!!Se[ze(e)]}function Qo(e){return typeof e=="function"?e:e==null?Ze:typeof e=="object"?ce(e)?ts(e[0],e[1]):es(e):wu(e)}function fi(e){if(!Ln(e))return sf(e);var t=[];for(var n in Ee(e))we.call(e,n)&&n!="constructor"&&t.push(n);return t}function ic(e){if(!ke(e))return Hc(e);var t=Ln(e),n=[];for(var i in e)i=="constructor"&&(t||!we.call(e,i))||n.push(i);return n}function ci(e,t){return e<t}function jo(e,t){var n=-1,i=Ye(e)?C(e.length):[];return Ht(e,function(u,c,v){i[++n]=t(u,c,v)}),i}function es(e){var t=Si(e);return t.length==1&&t[0][2]?Ns(t[0][0],t[0][1]):function(n){return n===e||ai(n,e,t)}}function ts(e,t){return Ti(e)&&Ls(t)?Ns(At(e),t):function(n){var i=Ui(n,e);return i===r&&i===t?Mi(n,e):On(t,i,_|S)}}function sr(e,t,n,i,u){e!==t&&ii(t,function(c,v){if(u||(u=new vt),ke(c))oc(e,t,v,n,sr,i,u);else{var m=i?i(ki(e,v),c,v+"",e,t,u):r;m===r&&(m=c),ni(e,v,m)}},Ve)}function oc(e,t,n,i,u,c,v){var m=ki(e,n),A=ki(t,n),O=v.get(A);if(O){ni(e,n,O);return}var I=c?c(m,A,n+"",e,t,v):r,L=I===r;if(L){var W=ce(A),Y=!W&&Gt(A),re=!W&&!Y&&gn(A);I=A,W||Y||re?ce(m)?I=m:Ie(m)?I=Je(m):Y?(L=!1,I=ps(A,!0)):re?(L=!1,I=ds(A,!0)):I=[]:Fn(A)||jt(A)?(I=m,jt(m)?I=cu(m):(!ke(m)||Bt(m))&&(I=Bs(A))):L=!1}L&&(v.set(A,I),u(I,A,i,c,v),v.delete(A)),ni(e,n,I)}function ns(e,t){var n=e.length;if(n)return t+=t<0?n:0,It(t,n)?e[t]:r}function rs(e,t,n){t.length?t=Re(t,function(c){return ce(c)?function(v){return Vt(v,c.length===1?c[0]:c)}:c}):t=[Ze];var i=-1;t=Re(t,tt(ne()));var u=jo(e,function(c,v,m){var A=Re(t,function(O){return O(c)});return{criteria:A,index:++i,value:c}});return Ia(u,function(c,v){return _c(c,v,n)})}function sc(e,t){return is(e,t,function(n,i){return Mi(e,i)})}function is(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var v=t[i],m=Vt(e,v);n(m,v)&&In(c,qt(v,e),m)}return c}function uc(e){return function(t){return Vt(t,e)}}function li(e,t,n,i){var u=i?Oa:rn,c=-1,v=t.length,m=e;for(e===t&&(t=Je(t)),n&&(m=Re(e,tt(n)));++c<v;)for(var A=0,O=t[c],I=n?n(O):O;(A=u(m,I,A,i))>-1;)m!==e&&Vn.call(m,A,1),Vn.call(e,A,1);return e}function os(e,t){for(var n=e?t.length:0,i=n-1;n--;){var u=t[n];if(n==i||u!==c){var c=u;It(u)?Vn.call(e,u,1):gi(e,u)}}return e}function hi(e,t){return e+jn(Po()*(t-e+1))}function ac(e,t,n,i){for(var u=-1,c=Fe(Qn((t-e)/(n||1)),0),v=C(c);c--;)v[i?c:++u]=e,e+=n;return v}function pi(e,t){var n="";if(!e||t<1||t>ae)return n;do t%2&&(n+=e),t=jn(t/2),t&&(e+=e);while(t);return n}function pe(e,t){return Oi(Fs(e,t,Ze),e+"")}function fc(e){return qo(vn(e))}function cc(e,t){var n=vn(e);return vr(n,Yt(t,0,n.length))}function In(e,t,n,i){if(!ke(e))return e;t=qt(t,e);for(var u=-1,c=t.length,v=c-1,m=e;m!=null&&++u<c;){var A=At(t[u]),O=n;if(A==="__proto__"||A==="constructor"||A==="prototype")return e;if(u!=v){var I=m[A];O=i?i(I,A,m):r,O===r&&(O=ke(I)?I:It(t[u+1])?[]:{})}Tn(m,A,O),m=m[A]}return e}var ss=er?function(e,t){return er.set(e,t),e}:Ze,lc=Zn?function(e,t){return Zn(e,"toString",{configurable:!0,enumerable:!1,value:Hi(t),writable:!0})}:Ze;function hc(e){return vr(vn(e))}function lt(e,t,n){var i=-1,u=e.length;t<0&&(t=-t>u?0:u+t),n=n>u?u:n,n<0&&(n+=u),u=t>n?0:n-t>>>0,t>>>=0;for(var c=C(u);++i<u;)c[i]=e[i+t];return c}function pc(e,t){var n;return Ht(e,function(i,u,c){return n=t(i,u,c),!n}),!!n}function ur(e,t,n){var i=0,u=e==null?i:e.length;if(typeof t=="number"&&t===t&&u<=H){for(;i<u;){var c=i+u>>>1,v=e[c];v!==null&&!rt(v)&&(n?v<=t:v<t)?i=c+1:u=c}return u}return di(e,t,Ze,n)}function di(e,t,n,i){var u=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var v=t!==t,m=t===null,A=rt(t),O=t===r;u<c;){var I=jn((u+c)/2),L=n(e[I]),W=L!==r,Y=L===null,re=L===L,he=rt(L);if(v)var ie=i||re;else O?ie=re&&(i||W):m?ie=re&&W&&(i||!Y):A?ie=re&&W&&!Y&&(i||!he):Y||he?ie=!1:ie=i?L<=t:L<t;ie?u=I+1:c=I}return We(c,Dn)}function us(e,t){for(var n=-1,i=e.length,u=0,c=[];++n<i;){var v=e[n],m=t?t(v):v;if(!n||!yt(m,A)){var A=m;c[u++]=v===0?0:v}}return c}function as(e){return typeof e=="number"?e:rt(e)?mt:+e}function nt(e){if(typeof e=="string")return e;if(ce(e))return Re(e,nt)+"";if(rt(e))return Ho?Ho.call(e):"";var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function Wt(e,t,n){var i=-1,u=Hn,c=e.length,v=!0,m=[],A=m;if(n)v=!1,u=Xr;else if(c>=l){var O=t?null:Ac(e);if(O)return qn(O);v=!1,u=bn,A=new Jt}else A=t?[]:m;e:for(;++i<c;){var I=e[i],L=t?t(I):I;if(I=n||I!==0?I:0,v&&L===L){for(var W=A.length;W--;)if(A[W]===L)continue e;t&&A.push(L),m.push(I)}else u(A,L,n)||(A!==m&&A.push(L),m.push(I))}return m}function gi(e,t){return t=qt(t,e),e=Ds(e,t),e==null||delete e[At(ht(t))]}function fs(e,t,n,i){return In(e,t,n(Vt(e,t)),i)}function ar(e,t,n,i){for(var u=e.length,c=i?u:-1;(i?c--:++c<u)&&t(e[c],c,e););return n?lt(e,i?0:c,i?c+1:u):lt(e,i?c+1:0,i?u:c)}function cs(e,t){var n=e;return n instanceof ge&&(n=n.value()),Gr(t,function(i,u){return u.func.apply(u.thisArg,Ut([i],u.args))},n)}function vi(e,t,n){var i=e.length;if(i<2)return i?Wt(e[0]):[];for(var u=-1,c=C(i);++u<i;)for(var v=e[u],m=-1;++m<i;)m!=u&&(c[u]=Rn(c[u]||v,e[m],t,n));return Wt(Me(c,1),t,n)}function ls(e,t,n){for(var i=-1,u=e.length,c=t.length,v={};++i<u;){var m=i<c?t[i]:r;n(v,e[i],m)}return v}function yi(e){return Ie(e)?e:[]}function _i(e){return typeof e=="function"?e:Ze}function qt(e,t){return ce(e)?e:Ti(e,t)?[e]:Hs(me(e))}var dc=pe;function Xt(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:lt(e,t,n)}var hs=ef||function(e){return Ue.clearTimeout(e)};function ps(e,t){if(t)return e.slice();var n=e.length,i=No?No(n):new e.constructor(n);return e.copy(i),i}function mi(e){var t=new e.constructor(e.byteLength);return new Jn(t).set(new Jn(e)),t}function gc(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function vc(e){var t=new e.constructor(e.source,Yi.exec(e));return t.lastIndex=e.lastIndex,t}function yc(e){return Cn?Ee(Cn.call(e)):{}}function ds(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gs(e,t){if(e!==t){var n=e!==r,i=e===null,u=e===e,c=rt(e),v=t!==r,m=t===null,A=t===t,O=rt(t);if(!m&&!O&&!c&&e>t||c&&v&&A&&!m&&!O||i&&v&&A||!n&&A||!u)return 1;if(!i&&!c&&!O&&e<t||O&&n&&u&&!i&&!c||m&&n&&u||!v&&u||!A)return-1}return 0}function _c(e,t,n){for(var i=-1,u=e.criteria,c=t.criteria,v=u.length,m=n.length;++i<v;){var A=gs(u[i],c[i]);if(A){if(i>=m)return A;var O=n[i];return A*(O=="desc"?-1:1)}}return e.index-t.index}function vs(e,t,n,i){for(var u=-1,c=e.length,v=n.length,m=-1,A=t.length,O=Fe(c-v,0),I=C(A+O),L=!i;++m<A;)I[m]=t[m];for(;++u<v;)(L||u<c)&&(I[n[u]]=e[u]);for(;O--;)I[m++]=e[u++];return I}function ys(e,t,n,i){for(var u=-1,c=e.length,v=-1,m=n.length,A=-1,O=t.length,I=Fe(c-m,0),L=C(I+O),W=!i;++u<I;)L[u]=e[u];for(var Y=u;++A<O;)L[Y+A]=t[A];for(;++v<m;)(W||u<c)&&(L[Y+n[v]]=e[u++]);return L}function Je(e,t){var n=-1,i=e.length;for(t||(t=C(i));++n<i;)t[n]=e[n];return t}function Et(e,t,n,i){var u=!n;n||(n={});for(var c=-1,v=t.length;++c<v;){var m=t[c],A=i?i(n[m],e[m],m,n,e):r;A===r&&(A=e[m]),u?Rt(n,m,A):Tn(n,m,A)}return n}function mc(e,t){return Et(e,Ci(e),t)}function wc(e,t){return Et(e,Os(e),t)}function fr(e,t){return function(n,i){var u=ce(n)?Aa:qf,c=t?t():{};return u(n,e,ne(i,2),c)}}function hn(e){return pe(function(t,n){var i=-1,u=n.length,c=u>1?n[u-1]:r,v=u>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(u--,c):r,v&&Ke(n[0],n[1],v)&&(c=u<3?r:c,u=1),t=Ee(t);++i<u;){var m=n[i];m&&e(t,m,i,c)}return t})}function _s(e,t){return function(n,i){if(n==null)return n;if(!Ye(n))return e(n,i);for(var u=n.length,c=t?u:-1,v=Ee(n);(t?c--:++c<u)&&i(v[c],c,v)!==!1;);return n}}function ms(e){return function(t,n,i){for(var u=-1,c=Ee(t),v=i(t),m=v.length;m--;){var A=v[e?m:++u];if(n(c[A],A,c)===!1)break}return t}}function bc(e,t,n){var i=t&k,u=Bn(e);function c(){var v=this&&this!==Ue&&this instanceof c?u:e;return v.apply(i?n:this,arguments)}return c}function ws(e){return function(t){t=me(t);var n=on(t)?gt(t):r,i=n?n[0]:t.charAt(0),u=n?Xt(n,1).join(""):t.slice(1);return i[e]()+u}}function pn(e){return function(t){return Gr(_u(yu(t).replace(ca,"")),e,"")}}function Bn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ln(e.prototype),i=e.apply(n,t);return ke(i)?i:n}}function xc(e,t,n){var i=Bn(e);function u(){for(var c=arguments.length,v=C(c),m=c,A=dn(u);m--;)v[m]=arguments[m];var O=c<3&&v[0]!==A&&v[c-1]!==A?[]:Mt(v,A);if(c-=O.length,c<n)return Ss(e,t,cr,u.placeholder,r,v,O,r,r,n-c);var I=this&&this!==Ue&&this instanceof u?i:e;return et(I,this,v)}return u}function bs(e){return function(t,n,i){var u=Ee(t);if(!Ye(t)){var c=ne(n,3);t=De(t),n=function(m){return c(u[m],m,u)}}var v=e(t,n,i);return v>-1?u[c?t[v]:v]:r}}function xs(e){return Ot(function(t){var n=t.length,i=n,u=ft.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if(typeof c!="function")throw new at(d);if(u&&!v&&dr(c)=="wrapper")var v=new ft([],!0)}for(i=v?i:n;++i<n;){c=t[i];var m=dr(c),A=m=="wrapper"?Ai(c):r;A&&Ri(A[0])&&A[1]==(P|V|X|q)&&!A[4].length&&A[9]==1?v=v[dr(A[0])].apply(v,A[3]):v=c.length==1&&Ri(c)?v[m]():v.thru(c)}return function(){var O=arguments,I=O[0];if(v&&O.length==1&&ce(I))return v.plant(I).value();for(var L=0,W=n?t[L].apply(this,O):I;++L<n;)W=t[L].call(this,W);return W}})}function cr(e,t,n,i,u,c,v,m,A,O){var I=t&P,L=t&k,W=t&J,Y=t&(V|ue),re=t&B,he=W?r:Bn(e);function ie(){for(var de=arguments.length,ve=C(de),it=de;it--;)ve[it]=arguments[it];if(Y)var $e=dn(ie),ot=La(ve,$e);if(i&&(ve=vs(ve,i,u,Y)),c&&(ve=ys(ve,c,v,Y)),de-=ot,Y&&de<O){var Be=Mt(ve,$e);return Ss(e,t,cr,ie.placeholder,n,ve,Be,m,A,O-de)}var _t=L?n:this,Nt=W?_t[e]:e;return de=ve.length,m?ve=qc(ve,m):re&&de>1&&ve.reverse(),I&&A<de&&(ve.length=A),this&&this!==Ue&&this instanceof ie&&(Nt=he||Bn(Nt)),Nt.apply(_t,ve)}return ie}function Es(e,t){return function(n,i){return Vf(n,e,t(i),{})}}function lr(e,t){return function(n,i){var u;if(n===r&&i===r)return t;if(n!==r&&(u=n),i!==r){if(u===r)return i;typeof n=="string"||typeof i=="string"?(n=nt(n),i=nt(i)):(n=as(n),i=as(i)),u=e(n,i)}return u}}function wi(e){return Ot(function(t){return t=Re(t,tt(ne())),pe(function(n){var i=this;return e(t,function(u){return et(u,i,n)})})})}function hr(e,t){t=t===r?" ":nt(t);var n=t.length;if(n<2)return n?pi(t,e):t;var i=pi(t,Qn(e/sn(t)));return on(t)?Xt(gt(i),0,e).join(""):i.slice(0,e)}function Ec(e,t,n,i){var u=t&k,c=Bn(e);function v(){for(var m=-1,A=arguments.length,O=-1,I=i.length,L=C(I+A),W=this&&this!==Ue&&this instanceof v?c:e;++O<I;)L[O]=i[O];for(;A--;)L[O++]=arguments[++m];return et(W,u?n:this,L)}return v}function As(e){return function(t,n,i){return i&&typeof i!="number"&&Ke(t,n,i)&&(n=i=r),t=Lt(t),n===r?(n=t,t=0):n=Lt(n),i=i===r?t<n?1:-1:Lt(i),ac(t,n,i,e)}}function pr(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=pt(t),n=pt(n)),e(t,n)}}function Ss(e,t,n,i,u,c,v,m,A,O){var I=t&V,L=I?v:r,W=I?r:v,Y=I?c:r,re=I?r:c;t|=I?X:D,t&=~(I?D:X),t&se||(t&=~(k|J));var he=[e,t,u,Y,L,re,W,m,A,O],ie=n.apply(r,he);return Ri(e)&&Us(ie,he),ie.placeholder=i,Ms(ie,e,t)}function bi(e){var t=Ne[e];return function(n,i){if(n=pt(n),i=i==null?0:We(le(i),292),i&&Mo(n)){var u=(me(n)+"e").split("e"),c=t(u[0]+"e"+(+u[1]+i));return u=(me(c)+"e").split("e"),+(u[0]+"e"+(+u[1]-i))}return t(n)}}var Ac=fn&&1/qn(new fn([,-0]))[1]==Ce?function(e){return new fn(e)}:Xi;function Cs(e){return function(t){var n=qe(t);return n==Te?Zr(t):n==Ge?Ha(t):Ba(t,e(t))}}function kt(e,t,n,i,u,c,v,m){var A=t&J;if(!A&&typeof e!="function")throw new at(d);var O=i?i.length:0;if(O||(t&=~(X|D),i=u=r),v=v===r?v:Fe(le(v),0),m=m===r?m:le(m),O-=u?u.length:0,t&D){var I=i,L=u;i=u=r}var W=A?r:Ai(e),Y=[e,t,n,i,u,I,L,c,v,m];if(W&&Pc(Y,W),e=Y[0],t=Y[1],n=Y[2],i=Y[3],u=Y[4],m=Y[9]=Y[9]===r?A?0:e.length:Fe(Y[9]-O,0),!m&&t&(V|ue)&&(t&=~(V|ue)),!t||t==k)var re=bc(e,t,n);else t==V||t==ue?re=xc(e,t,m):(t==X||t==(k|X))&&!u.length?re=Ec(e,t,n,i):re=cr.apply(r,Y);var he=W?ss:Us;return Ms(he(re,Y),e,t)}function Ts(e,t,n,i){return e===r||yt(e,an[n])&&!we.call(i,n)?t:e}function Rs(e,t,n,i,u,c){return ke(e)&&ke(t)&&(c.set(t,e),sr(e,t,r,Rs,c),c.delete(t)),e}function Sc(e){return Fn(e)?r:e}function ks(e,t,n,i,u,c){var v=n&_,m=e.length,A=t.length;if(m!=A&&!(v&&A>m))return!1;var O=c.get(e),I=c.get(t);if(O&&I)return O==t&&I==e;var L=-1,W=!0,Y=n&S?new Jt:r;for(c.set(e,t),c.set(t,e);++L<m;){var re=e[L],he=t[L];if(i)var ie=v?i(he,re,L,t,e,c):i(re,he,L,e,t,c);if(ie!==r){if(ie)continue;W=!1;break}if(Y){if(!zr(t,function(de,ve){if(!bn(Y,ve)&&(re===de||u(re,de,n,i,c)))return Y.push(ve)})){W=!1;break}}else if(!(re===he||u(re,he,n,i,c))){W=!1;break}}return c.delete(e),c.delete(t),W}function Cc(e,t,n,i,u,c,v){switch(n){case tn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ft:return!(e.byteLength!=t.byteLength||!c(new Jn(e),new Jn(t)));case Q:case ee:case dt:return yt(+e,+t);case oe:return e.name==t.name&&e.message==t.message;case Xe:case wt:return e==t+"";case Te:var m=Zr;case Ge:var A=i&_;if(m||(m=qn),e.size!=t.size&&!A)return!1;var O=v.get(e);if(O)return O==t;i|=S,v.set(e,t);var I=ks(m(e),m(t),i,u,c,v);return v.delete(e),I;case bt:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}function Tc(e,t,n,i,u,c){var v=n&_,m=xi(e),A=m.length,O=xi(t),I=O.length;if(A!=I&&!v)return!1;for(var L=A;L--;){var W=m[L];if(!(v?W in t:we.call(t,W)))return!1}var Y=c.get(e),re=c.get(t);if(Y&&re)return Y==t&&re==e;var he=!0;c.set(e,t),c.set(t,e);for(var ie=v;++L<A;){W=m[L];var de=e[W],ve=t[W];if(i)var it=v?i(ve,de,W,t,e,c):i(de,ve,W,e,t,c);if(!(it===r?de===ve||u(de,ve,n,i,c):it)){he=!1;break}ie||(ie=W=="constructor")}if(he&&!ie){var $e=e.constructor,ot=t.constructor;$e!=ot&&"constructor"in e&&"constructor"in t&&!(typeof $e=="function"&&$e instanceof $e&&typeof ot=="function"&&ot instanceof ot)&&(he=!1)}return c.delete(e),c.delete(t),he}function Ot(e){return Oi(Fs(e,r,Gs),e+"")}function xi(e){return Yo(e,De,Ci)}function Ei(e){return Yo(e,Ve,Os)}var Ai=er?function(e){return er.get(e)}:Xi;function dr(e){for(var t=e.name+"",n=cn[t],i=we.call(cn,t)?n.length:0;i--;){var u=n[i],c=u.func;if(c==null||c==e)return u.name}return t}function dn(e){var t=we.call(f,"placeholder")?f:e;return t.placeholder}function ne(){var e=f.iteratee||Wi;return e=e===Wi?Qo:e,arguments.length?e(arguments[0],arguments[1]):e}function gr(e,t){var n=e.__data__;return Fc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Si(e){for(var t=De(e),n=t.length;n--;){var i=t[n],u=e[i];t[n]=[i,u,Ls(u)]}return t}function Zt(e,t){var n=Ua(e,t);return Zo(n)?n:r}function Rc(e){var t=we.call(e,Kt),n=e[Kt];try{e[Kt]=r;var i=!0}catch{}var u=Kn.call(e);return i&&(t?e[Kt]=n:delete e[Kt]),u}var Ci=jr?function(e){return e==null?[]:(e=Ee(e),Dt(jr(e),function(t){return Do.call(e,t)}))}:Gi,Os=jr?function(e){for(var t=[];e;)Ut(t,Ci(e)),e=Yn(e);return t}:Gi,qe=ze;(ei&&qe(new ei(new ArrayBuffer(1)))!=tn||En&&qe(new En)!=Te||ti&&qe(ti.resolve())!=en||fn&&qe(new fn)!=Ge||An&&qe(new An)!=St)&&(qe=function(e){var t=ze(e),n=t==je?e.constructor:r,i=n?Qt(n):"";if(i)switch(i){case cf:return tn;case lf:return Te;case hf:return en;case pf:return Ge;case df:return St}return t});function kc(e,t,n){for(var i=-1,u=n.length;++i<u;){var c=n[i],v=c.size;switch(c.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=We(t,e+v);break;case"takeRight":e=Fe(e,t-v);break}}return{start:e,end:t}}function Oc(e){var t=e.match(Fu);return t?t[1].split(Du):[]}function Is(e,t,n){t=qt(t,e);for(var i=-1,u=t.length,c=!1;++i<u;){var v=At(t[i]);if(!(c=e!=null&&n(e,v)))break;e=e[v]}return c||++i!=u?c:(u=e==null?0:e.length,!!u&&xr(u)&&It(v,u)&&(ce(e)||jt(e)))}function Ic(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Bs(e){return typeof e.constructor=="function"&&!Ln(e)?ln(Yn(e)):{}}function Bc(e,t,n){var i=e.constructor;switch(t){case Ft:return mi(e);case Q:case ee:return new i(+e);case tn:return gc(e,n);case Sr:case Cr:case Tr:case Rr:case kr:case Or:case Ir:case Br:case Lr:return ds(e,n);case Te:return new i;case dt:case wt:return new i(e);case Xe:return vc(e);case Ge:return new i;case bt:return yc(e)}}function Lc(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Nu,`{
|
|
17
17
|
/* [wrapped with `+t+`] */
|
|
18
|
-
`)}function Nc(e){return ce(e)||jt(e)||!!(Do&&e&&e[Do])}function It(e,t){var n=typeof e;return t=t??ae,!!t&&(n=="number"||n!="symbol"&&zu.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t,n){if(!ke(n))return!1;var i=typeof t;return(i=="number"?Ye(n)&&It(t,n.length):i=="string"&&t in n)?yt(n[t],e):!1}function Ti(e,t){if(ce(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rt(e)?!0:Ou.test(e)||!ku.test(e)||t!=null&&e in Ae(t)}function Fc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ri(e){var t=dr(e),n=f[t];if(typeof n!="function"||!(t in ge.prototype))return!1;if(e===n)return!0;var i=Si(n);return!!i&&e===i[0]}function Uc(e){return!!Lo&&Lo in e}var Dc=Gn?Bt:zi;function Ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||an;return e===n}function Ls(e){return e===e&&!ke(e)}function Ns(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in Ae(n))}}function Mc(e){var t=wr(e,function(i){return n.size===w&&n.clear(),i}),n=t.cache;return t}function Pc(e,t){var n=e[1],i=t[1],u=n|i,c=u<(k|J|P),v=i==P&&n==Z||i==P&&n==q&&e[7].length<=t[8]||i==(P|q)&&t[7].length<=t[8]&&n==Z;if(!(c||v))return e;i&k&&(e[2]=t[2],u|=n&k?0:se);var m=t[3];if(m){var S=e[3];e[3]=S?vs(S,m,t[4]):m,e[4]=S?Mt(e[3],T):t[4]}return m=t[5],m&&(S=e[5],e[5]=S?ys(S,m,t[6]):m,e[6]=S?Mt(e[5],T):t[6]),m=t[7],m&&(e[7]=m),i&P&&(e[8]=e[8]==null?t[8]:We(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function Hc(e){var t=[];if(e!=null)for(var n in Ae(e))t.push(n);return t}function Wc(e){return Kn.call(e)}function Fs(e,t,n){return t=Fe(t===r?e.length-1:t,0),function(){for(var i=arguments,u=-1,c=Fe(i.length-t,0),v=C(c);++u<c;)v[u]=i[t+u];u=-1;for(var m=C(t+1);++u<t;)m[u]=i[u];return m[t]=n(v),et(e,this,m)}}function Us(e,t){return t.length<2?e:Zt(e,lt(t,0,-1))}function qc(e,t){for(var n=e.length,i=We(t.length,n),u=Je(e);i--;){var c=t[i];e[i]=It(c,n)?u[c]:r}return e}function ki(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ds=Ps(ss),Nn=nf||function(e,t){return De.setTimeout(e,t)},Oi=Ps(lc);function Ms(e,t,n){var i=t+"";return Oi(e,Lc(i,Xc(Oc(i),n)))}function Ps(e){var t=0,n=0;return function(){var i=uf(),u=V-(i-n);if(n=i,u>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(r,arguments)}}function vr(e,t){var n=-1,i=e.length,u=i-1;for(t=t===r?i:t;++n<t;){var c=hi(n,u),v=e[c];e[c]=e[n],e[n]=v}return e.length=t,e}var Hs=Mc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Iu,function(n,i,u,c){t.push(u?c.replace(Pu,"$1"):i||n)}),t});function St(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function Qt(e){if(e!=null){try{return zn.call(e)}catch{}try{return e+""}catch{}}return""}function Xc(e,t){return ut($,function(n){var i="_."+n[0];t&n[1]&&!Hn(e,i)&&e.push(i)}),e.sort()}function Ws(e){if(e instanceof ge)return e.clone();var t=new ft(e.__wrapped__,e.__chain__);return t.__actions__=Je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gc(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=Fe(le(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var u=0,c=0,v=C(Qn(i/t));u<i;)v[c++]=lt(e,u,u+=t);return v}function zc(e){for(var t=-1,n=e==null?0:e.length,i=0,u=[];++t<n;){var c=e[t];c&&(u[i++]=c)}return u}function Kc(){var e=arguments.length;if(!e)return[];for(var t=C(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(ce(n)?Je(n):[n],Me(t,1))}var $c=pe(function(e,t){return Ie(e)?Rn(e,Me(t,1,Ie,!0)):[]}),Jc=pe(function(e,t){var n=ht(t);return Ie(n)&&(n=r),Ie(e)?Rn(e,Me(t,1,Ie,!0),ne(n,2)):[]}),Yc=pe(function(e,t){var n=ht(t);return Ie(n)&&(n=r),Ie(e)?Rn(e,Me(t,1,Ie,!0),r,n):[]});function Zc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),lt(e,t<0?0:t,i)):[]}function Vc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),t=i-t,lt(e,0,t<0?0:t)):[]}function Qc(e,t){return e&&e.length?ar(e,ne(t,3),!0,!0):[]}function jc(e,t){return e&&e.length?ar(e,ne(t,3),!0):[]}function el(e,t,n,i){var u=e==null?0:e.length;return u?(n&&typeof n!="number"&&Ke(e,t,n)&&(n=0,i=u),Kf(e,t,n,i)):[]}function qs(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:le(n);return u<0&&(u=Fe(i+u,0)),Wn(e,ne(t,3),u)}function Xs(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i-1;return n!==r&&(u=le(n),u=n<0?Fe(i+u,0):We(u,i-1)),Wn(e,ne(t,3),u,!0)}function Gs(e){var t=e==null?0:e.length;return t?Me(e,1):[]}function tl(e){var t=e==null?0:e.length;return t?Me(e,Ce):[]}function nl(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:le(t),Me(e,t)):[]}function rl(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var u=e[t];i[u[0]]=u[1]}return i}function zs(e){return e&&e.length?e[0]:r}function il(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:le(n);return u<0&&(u=Fe(i+u,0)),rn(e,t,u)}function ol(e){var t=e==null?0:e.length;return t?lt(e,0,-1):[]}var sl=pe(function(e){var t=Re(e,yi);return t.length&&t[0]===e[0]?ui(t):[]}),ul=pe(function(e){var t=ht(e),n=Re(e,yi);return t===ht(n)?t=r:n.pop(),n.length&&n[0]===e[0]?ui(n,ne(t,2)):[]}),al=pe(function(e){var t=ht(e),n=Re(e,yi);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?ui(n,r,t):[]});function fl(e,t){return e==null?"":of.call(e,t)}function ht(e){var t=e==null?0:e.length;return t?e[t-1]:r}function cl(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i;return n!==r&&(u=le(n),u=u<0?Fe(i+u,0):We(u,i-1)),t===t?qa(e,t,u):Wn(e,Eo,u,!0)}function ll(e,t){return e&&e.length?ns(e,le(t)):r}var hl=pe(Ks);function Ks(e,t){return e&&e.length&&t&&t.length?li(e,t):e}function pl(e,t,n){return e&&e.length&&t&&t.length?li(e,t,ne(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?li(e,t,r,n):e}var gl=Ot(function(e,t){var n=e==null?0:e.length,i=ri(e,t);return os(e,Re(t,function(u){return It(u,n)?+u:u}).sort(gs)),i});function vl(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,u=[],c=e.length;for(t=ne(t,3);++i<c;){var v=e[i];t(v,i,e)&&(n.push(v),u.push(i))}return os(e,u),n}function Ii(e){return e==null?e:ff.call(e)}function yl(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&Ke(e,t,n)?(t=0,n=i):(t=t==null?0:le(t),n=n===r?i:le(n)),lt(e,t,n)):[]}function _l(e,t){return ur(e,t)}function ml(e,t,n){return di(e,t,ne(n,2))}function wl(e,t){var n=e==null?0:e.length;if(n){var i=ur(e,t);if(i<n&&yt(e[i],t))return i}return-1}function bl(e,t){return ur(e,t,!0)}function xl(e,t,n){return di(e,t,ne(n,2),!0)}function Al(e,t){var n=e==null?0:e.length;if(n){var i=ur(e,t,!0)-1;if(yt(e[i],t))return i}return-1}function Sl(e){return e&&e.length?us(e):[]}function El(e,t){return e&&e.length?us(e,ne(t,2)):[]}function Cl(e){var t=e==null?0:e.length;return t?lt(e,1,t):[]}function Tl(e,t,n){return e&&e.length?(t=n||t===r?1:le(t),lt(e,0,t<0?0:t)):[]}function Rl(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),t=i-t,lt(e,t<0?0:t,i)):[]}function kl(e,t){return e&&e.length?ar(e,ne(t,3),!1,!0):[]}function Ol(e,t){return e&&e.length?ar(e,ne(t,3)):[]}var Il=pe(function(e){return Wt(Me(e,1,Ie,!0))}),Bl=pe(function(e){var t=ht(e);return Ie(t)&&(t=r),Wt(Me(e,1,Ie,!0),ne(t,2))}),Ll=pe(function(e){var t=ht(e);return t=typeof t=="function"?t:r,Wt(Me(e,1,Ie,!0),r,t)});function Nl(e){return e&&e.length?Wt(e):[]}function Fl(e,t){return e&&e.length?Wt(e,ne(t,2)):[]}function Ul(e,t){return t=typeof t=="function"?t:r,e&&e.length?Wt(e,r,t):[]}function Bi(e){if(!(e&&e.length))return[];var t=0;return e=Ut(e,function(n){if(Ie(n))return t=Fe(n.length,t),!0}),Yr(t,function(n){return Re(e,Kr(n))})}function $s(e,t){if(!(e&&e.length))return[];var n=Bi(e);return t==null?n:Re(n,function(i){return et(t,r,i)})}var Dl=pe(function(e,t){return Ie(e)?Rn(e,t):[]}),Ml=pe(function(e){return vi(Ut(e,Ie))}),Pl=pe(function(e){var t=ht(e);return Ie(t)&&(t=r),vi(Ut(e,Ie),ne(t,2))}),Hl=pe(function(e){var t=ht(e);return t=typeof t=="function"?t:r,vi(Ut(e,Ie),r,t)}),Wl=pe(Bi);function ql(e,t){return ls(e||[],t||[],Tn)}function Xl(e,t){return ls(e||[],t||[],In)}var Gl=pe(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,$s(e,n)});function Js(e){var t=f(e);return t.__chain__=!0,t}function zl(e,t){return t(e),e}function yr(e,t){return t(e)}var Kl=Ot(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,u=function(c){return ri(c,e)};return t>1||this.__actions__.length||!(i instanceof ge)||!It(n)?this.thru(u):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:yr,args:[u],thisArg:r}),new ft(i,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function $l(){return Js(this)}function Jl(){return new ft(this.value(),this.__chain__)}function Yl(){this.__values__===r&&(this.__values__=au(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Zl(){return this}function Vl(e){for(var t,n=this;n instanceof nr;){var i=Ws(n);i.__index__=0,i.__values__=r,t?u.__wrapped__=i:t=i;var u=i;n=n.__wrapped__}return u.__wrapped__=e,t}function Ql(){var e=this.__wrapped__;if(e instanceof ge){var t=e;return this.__actions__.length&&(t=new ge(this)),t=t.reverse(),t.__actions__.push({func:yr,args:[Ii],thisArg:r}),new ft(t,this.__chain__)}return this.thru(Ii)}function jl(){return cs(this.__wrapped__,this.__actions__)}var eh=fr(function(e,t,n){we.call(e,n)?++e[n]:Rt(e,n,1)});function th(e,t,n){var i=ce(e)?Ao:zf;return n&&Ke(e,t,n)&&(t=r),i(e,ne(t,3))}function nh(e,t){var n=ce(e)?Ut:$o;return n(e,ne(t,3))}var rh=bs(qs),ih=bs(Xs);function oh(e,t){return Me(_r(e,t),1)}function sh(e,t){return Me(_r(e,t),Ce)}function uh(e,t,n){return n=n===r?1:le(n),Me(_r(e,t),n)}function Ys(e,t){var n=ce(e)?ut:Ht;return n(e,ne(t,3))}function Zs(e,t){var n=ce(e)?Ea:Ko;return n(e,ne(t,3))}var ah=fr(function(e,t,n){we.call(e,n)?e[n].push(t):Rt(e,n,[t])});function fh(e,t,n,i){e=Ye(e)?e:vn(e),n=n&&!i?le(n):0;var u=e.length;return n<0&&(n=Fe(u+n,0)),Ar(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&rn(e,t,n)>-1}var ch=pe(function(e,t,n){var i=-1,u=typeof t=="function",c=Ye(e)?C(e.length):[];return Ht(e,function(v){c[++i]=u?et(t,v,n):kn(v,t,n)}),c}),lh=fr(function(e,t,n){Rt(e,n,t)});function _r(e,t){var n=ce(e)?Re:jo;return n(e,ne(t,3))}function hh(e,t,n,i){return e==null?[]:(ce(t)||(t=t==null?[]:[t]),n=i?r:n,ce(n)||(n=n==null?[]:[n]),rs(e,t,n))}var ph=fr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function dh(e,t,n){var i=ce(e)?Gr:To,u=arguments.length<3;return i(e,ne(t,4),n,u,Ht)}function gh(e,t,n){var i=ce(e)?Ca:To,u=arguments.length<3;return i(e,ne(t,4),n,u,Ko)}function vh(e,t){var n=ce(e)?Ut:$o;return n(e,br(ne(t,3)))}function yh(e){var t=ce(e)?qo:fc;return t(e)}function _h(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=le(t);var i=ce(e)?Hf:cc;return i(e,t)}function mh(e){var t=ce(e)?Wf:hc;return t(e)}function wh(e){if(e==null)return 0;if(Ye(e))return Ar(e)?sn(e):e.length;var t=qe(e);return t==Te||t==Ge?e.size:fi(e).length}function bh(e,t,n){var i=ce(e)?zr:pc;return n&&Ke(e,t,n)&&(t=r),i(e,ne(t,3))}var xh=pe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ke(e,t[0],t[1])?t=[]:n>2&&Ke(t[0],t[1],t[2])&&(t=[t[0]]),rs(e,Me(t,1),[])}),mr=tf||function(){return De.Date.now()};function Ah(e,t){if(typeof t!="function")throw new at(d);return e=le(e),function(){if(--e<1)return t.apply(this,arguments)}}function Vs(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,kt(e,P,r,r,r,r,t)}function Qs(e,t){var n;if(typeof t!="function")throw new at(d);return e=le(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Li=pe(function(e,t,n){var i=k;if(n.length){var u=Mt(n,dn(Li));i|=X}return kt(e,i,t,n,u)}),js=pe(function(e,t,n){var i=k|J;if(n.length){var u=Mt(n,dn(js));i|=X}return kt(t,i,e,n,u)});function eu(e,t,n){t=n?r:t;var i=kt(e,Z,r,r,r,r,r,t);return i.placeholder=eu.placeholder,i}function tu(e,t,n){t=n?r:t;var i=kt(e,ue,r,r,r,r,r,t);return i.placeholder=tu.placeholder,i}function nu(e,t,n){var i,u,c,v,m,S,O=0,I=!1,L=!1,W=!0;if(typeof e!="function")throw new at(d);t=pt(t)||0,ke(n)&&(I=!!n.leading,L="maxWait"in n,c=L?Fe(pt(n.maxWait)||0,t):c,W="trailing"in n?!!n.trailing:W);function Y(Be){var _t=i,Nt=u;return i=u=r,O=Be,v=e.apply(Nt,_t),v}function re(Be){return O=Be,m=Nn(de,t),I?Y(Be):v}function he(Be){var _t=Be-S,Nt=Be-O,bu=t-_t;return L?We(bu,c-Nt):bu}function ie(Be){var _t=Be-S,Nt=Be-O;return S===r||_t>=t||_t<0||L&&Nt>=c}function de(){var Be=mr();if(ie(Be))return ve(Be);m=Nn(de,he(Be))}function ve(Be){return m=r,W&&i?Y(Be):(i=u=r,v)}function it(){m!==r&&hs(m),O=0,i=S=u=m=r}function $e(){return m===r?v:ve(mr())}function ot(){var Be=mr(),_t=ie(Be);if(i=arguments,u=this,S=Be,_t){if(m===r)return re(S);if(L)return hs(m),m=Nn(de,t),Y(S)}return m===r&&(m=Nn(de,t)),v}return ot.cancel=it,ot.flush=$e,ot}var Sh=pe(function(e,t){return zo(e,1,t)}),Eh=pe(function(e,t,n){return zo(e,pt(t)||0,n)});function Ch(e){return kt(e,B)}function wr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new at(d);var n=function(){var i=arguments,u=t?t.apply(this,i):i[0],c=n.cache;if(c.has(u))return c.get(u);var v=e.apply(this,i);return n.cache=c.set(u,v)||c,v};return n.cache=new(wr.Cache||Tt),n}wr.Cache=Tt;function br(e){if(typeof e!="function")throw new at(d);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)}}function Th(e){return Qs(2,e)}var Rh=dc(function(e,t){t=t.length==1&&ce(t[0])?Re(t[0],tt(ne())):Re(Me(t,1),tt(ne()));var n=t.length;return pe(function(i){for(var u=-1,c=We(i.length,n);++u<c;)i[u]=t[u].call(this,i[u]);return et(e,this,i)})}),Ni=pe(function(e,t){var n=Mt(t,dn(Ni));return kt(e,X,r,t,n)}),ru=pe(function(e,t){var n=Mt(t,dn(ru));return kt(e,U,r,t,n)}),kh=Ot(function(e,t){return kt(e,q,r,r,r,t)});function Oh(e,t){if(typeof e!="function")throw new at(d);return t=t===r?t:le(t),pe(e,t)}function Ih(e,t){if(typeof e!="function")throw new at(d);return t=t==null?0:Fe(le(t),0),pe(function(n){var i=n[t],u=Xt(n,0,t);return i&&Dt(u,i),et(e,this,u)})}function Bh(e,t,n){var i=!0,u=!0;if(typeof e!="function")throw new at(d);return ke(n)&&(i="leading"in n?!!n.leading:i,u="trailing"in n?!!n.trailing:u),nu(e,t,{leading:i,maxWait:t,trailing:u})}function Lh(e){return Vs(e,1)}function Nh(e,t){return Ni(_i(t),e)}function Fh(){if(!arguments.length)return[];var e=arguments[0];return ce(e)?e:[e]}function Uh(e){return ct(e,p)}function Dh(e,t){return t=typeof t=="function"?t:r,ct(e,p,t)}function Mh(e){return ct(e,b|p)}function Ph(e,t){return t=typeof t=="function"?t:r,ct(e,b|p,t)}function Hh(e,t){return t==null||Go(e,t,Ue(t))}function yt(e,t){return e===t||e!==e&&t!==t}var Wh=pr(si),qh=pr(function(e,t){return e>=t}),jt=Zo(function(){return arguments}())?Zo:function(e){return Oe(e)&&we.call(e,"callee")&&!Uo.call(e,"callee")},ce=C.isArray,Xh=yo?tt(yo):Vf;function Ye(e){return e!=null&&xr(e.length)&&!Bt(e)}function Ie(e){return Oe(e)&&Ye(e)}function Gh(e){return e===!0||e===!1||Oe(e)&&ze(e)==Q}var Gt=rf||zi,zh=_o?tt(_o):Qf;function Kh(e){return Oe(e)&&e.nodeType===1&&!Fn(e)}function $h(e){if(e==null)return!0;if(Ye(e)&&(ce(e)||typeof e=="string"||typeof e.splice=="function"||Gt(e)||gn(e)||jt(e)))return!e.length;var t=qe(e);if(t==Te||t==Ge)return!e.size;if(Ln(e))return!fi(e).length;for(var n in e)if(we.call(e,n))return!1;return!0}function Jh(e,t){return On(e,t)}function Yh(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?On(e,t,r,n):!!i}function Fi(e){if(!Oe(e))return!1;var t=ze(e);return t==oe||t==z||typeof e.message=="string"&&typeof e.name=="string"&&!Fn(e)}function Zh(e){return typeof e=="number"&&Mo(e)}function Bt(e){if(!ke(e))return!1;var t=ze(e);return t==_e||t==He||t==D||t==_n}function iu(e){return typeof e=="number"&&e==le(e)}function xr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ae}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Oe(e){return e!=null&&typeof e=="object"}var ou=mo?tt(mo):ec;function Vh(e,t){return e===t||ai(e,t,Ei(t))}function Qh(e,t,n){return n=typeof n=="function"?n:r,ai(e,t,Ei(t),n)}function jh(e){return su(e)&&e!=+e}function ep(e){if(Dc(e))throw new fe(h);return Vo(e)}function tp(e){return e===null}function np(e){return e==null}function su(e){return typeof e=="number"||Oe(e)&&ze(e)==dt}function Fn(e){if(!Oe(e)||ze(e)!=je)return!1;var t=Yn(e);if(t===null)return!0;var n=we.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zn.call(n)==Va}var Ui=wo?tt(wo):tc;function rp(e){return iu(e)&&e>=-ae&&e<=ae}var uu=bo?tt(bo):nc;function Ar(e){return typeof e=="string"||!ce(e)&&Oe(e)&&ze(e)==wt}function rt(e){return typeof e=="symbol"||Oe(e)&&ze(e)==bt}var gn=xo?tt(xo):rc;function ip(e){return e===r}function op(e){return Oe(e)&&qe(e)==Et}function sp(e){return Oe(e)&&ze(e)==wn}var up=pr(ci),ap=pr(function(e,t){return e<=t});function au(e){if(!e)return[];if(Ye(e))return Ar(e)?gt(e):Je(e);if(xn&&e[xn])return Pa(e[xn]());var t=qe(e),n=t==Te?Vr:t==Ge?qn:vn;return n(e)}function Lt(e){if(!e)return e===0?e:0;if(e=pt(e),e===Ce||e===-Ce){var t=e<0?-1:1;return t*Pe}return e===e?e:0}function le(e){var t=Lt(e),n=t%1;return t===t?n?t-n:t:0}function fu(e){return e?Yt(le(e),0,Qe):0}function pt(e){if(typeof e=="number")return e;if(rt(e))return mt;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ro(e);var n=qu.test(e);return n||Gu.test(e)?xa(e.slice(2),n?2:8):Wu.test(e)?mt:+e}function cu(e){return At(e,Ze(e))}function fp(e){return e?Yt(le(e),-ae,ae):e===0?e:0}function me(e){return e==null?"":nt(e)}var cp=hn(function(e,t){if(Ln(t)||Ye(t)){At(t,Ue(t),e);return}for(var n in t)we.call(t,n)&&Tn(e,n,t[n])}),lu=hn(function(e,t){At(t,Ze(t),e)}),Sr=hn(function(e,t,n,i){At(t,Ze(t),e,i)}),lp=hn(function(e,t,n,i){At(t,Ue(t),e,i)}),hp=Ot(ri);function pp(e,t){var n=ln(e);return t==null?n:Xo(n,t)}var dp=pe(function(e,t){e=Ae(e);var n=-1,i=t.length,u=i>2?t[2]:r;for(u&&Ke(t[0],t[1],u)&&(i=1);++n<i;)for(var c=t[n],v=Ze(c),m=-1,S=v.length;++m<S;){var O=v[m],I=e[O];(I===r||yt(I,an[O])&&!we.call(e,O))&&(e[O]=c[O])}return e}),gp=pe(function(e){return e.push(r,Rs),et(hu,r,e)});function vp(e,t){return So(e,ne(t,3),xt)}function yp(e,t){return So(e,ne(t,3),oi)}function _p(e,t){return e==null?e:ii(e,ne(t,3),Ze)}function mp(e,t){return e==null?e:Jo(e,ne(t,3),Ze)}function wp(e,t){return e&&xt(e,ne(t,3))}function bp(e,t){return e&&oi(e,ne(t,3))}function xp(e){return e==null?[]:or(e,Ue(e))}function Ap(e){return e==null?[]:or(e,Ze(e))}function Di(e,t,n){var i=e==null?r:Zt(e,t);return i===r?n:i}function Sp(e,t){return e!=null&&Is(e,t,$f)}function Mi(e,t){return e!=null&&Is(e,t,Jf)}var Ep=As(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Kn.call(t)),e[t]=n},Hi(Ve)),Cp=As(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Kn.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]},ne),Tp=pe(kn);function Ue(e){return Ye(e)?Wo(e):fi(e)}function Ze(e){return Ye(e)?Wo(e,!0):ic(e)}function Rp(e,t){var n={};return t=ne(t,3),xt(e,function(i,u,c){Rt(n,t(i,u,c),i)}),n}function kp(e,t){var n={};return t=ne(t,3),xt(e,function(i,u,c){Rt(n,u,t(i,u,c))}),n}var Op=hn(function(e,t,n){sr(e,t,n)}),hu=hn(function(e,t,n,i){sr(e,t,n,i)}),Ip=Ot(function(e,t){var n={};if(e==null)return n;var i=!1;t=Re(t,function(c){return c=qt(c,e),i||(i=c.length>1),c}),At(e,Ai(e),n),i&&(n=ct(n,b|g|p,Ec));for(var u=t.length;u--;)gi(n,t[u]);return n});function Bp(e,t){return pu(e,br(ne(t)))}var Lp=Ot(function(e,t){return e==null?{}:sc(e,t)});function pu(e,t){if(e==null)return{};var n=Re(Ai(e),function(i){return[i]});return t=ne(t),is(e,n,function(i,u){return t(i,u[0])})}function Np(e,t,n){t=qt(t,e);var i=-1,u=t.length;for(u||(u=1,e=r);++i<u;){var c=e==null?r:e[St(t[i])];c===r&&(i=u,c=n),e=Bt(c)?c.call(e):c}return e}function Fp(e,t,n){return e==null?e:In(e,t,n)}function Up(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:In(e,t,n,i)}var du=Cs(Ue),gu=Cs(Ze);function Dp(e,t,n){var i=ce(e),u=i||Gt(e)||gn(e);if(t=ne(t,4),n==null){var c=e&&e.constructor;u?n=i?new c:[]:ke(e)?n=Bt(c)?ln(Yn(e)):{}:n={}}return(u?ut:xt)(e,function(v,m,S){return t(n,v,m,S)}),n}function Mp(e,t){return e==null?!0:gi(e,t)}function Pp(e,t,n){return e==null?e:fs(e,t,_i(n))}function Hp(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:fs(e,t,_i(n),i)}function vn(e){return e==null?[]:Zr(e,Ue(e))}function Wp(e){return e==null?[]:Zr(e,Ze(e))}function qp(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=pt(n),n=n===n?n:0),t!==r&&(t=pt(t),t=t===t?t:0),Yt(pt(e),t,n)}function Xp(e,t,n){return t=Lt(t),n===r?(n=t,t=0):n=Lt(n),e=pt(e),Yf(e,t,n)}function Gp(e,t,n){if(n&&typeof n!="boolean"&&Ke(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Lt(e),t===r?(t=e,e=0):t=Lt(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var u=Po();return We(e+u*(t-e+ba("1e-"+((u+"").length-1))),t)}return hi(e,t)}var zp=pn(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Pi(me(e).toLowerCase())}function yu(e){return e=me(e),e&&e.replace(Ku,Na).replace(la,"")}function Kp(e,t,n){e=me(e),t=nt(t);var i=e.length;n=n===r?i:Yt(le(n),0,i);var u=n;return n-=t.length,n>=0&&e.slice(n,u)==t}function $p(e){return e=me(e),e&&Cu.test(e)?e.replace($i,Fa):e}function Jp(e){return e=me(e),e&&Bu.test(e)?e.replace(Nr,"\\$&"):e}var Yp=pn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zp=pn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Vp=ws("toLowerCase");function Qp(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;if(!t||i>=t)return e;var u=(t-i)/2;return hr(jn(u),n)+e+hr(Qn(u),n)}function jp(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;return t&&i<t?e+hr(t-i,n):e}function ed(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;return t&&i<t?hr(t-i,n)+e:e}function td(e,t,n){return n||t==null?t=0:t&&(t=+t),af(me(e).replace(Fr,""),t||0)}function nd(e,t,n){return(n?Ke(e,t,n):t===r)?t=1:t=le(t),pi(me(e),t)}function rd(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var id=pn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function od(e,t,n){return n&&typeof n!="number"&&Ke(e,t,n)&&(t=n=r),n=n===r?Qe:n>>>0,n?(e=me(e),e&&(typeof t=="string"||t!=null&&!Ui(t))&&(t=nt(t),!t&&on(e))?Xt(gt(e),0,n):e.split(t,n)):[]}var sd=pn(function(e,t,n){return e+(n?" ":"")+Pi(t)});function ud(e,t,n){return e=me(e),n=n==null?0:Yt(le(n),0,e.length),t=nt(t),e.slice(n,n+t.length)==t}function ad(e,t,n){var i=f.templateSettings;n&&Ke(e,t,n)&&(t=r),e=me(e),t=Sr({},t,i,Ts);var u=Sr({},t.imports,i.imports,Ts),c=Ue(u),v=Zr(u,c),m,S,O=0,I=t.interpolate||Dn,L="__p += '",W=Qr((t.escape||Dn).source+"|"+I.source+"|"+(I===Ji?Hu:Dn).source+"|"+(t.evaluate||Dn).source+"|$","g"),Y="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++va+"]")+`
|
|
19
|
-
`;e.replace(W,function(ie,de,ve,it,$e,ot){return ve||(ve=it),L+=e.slice(O,ot).replace($u,
|
|
18
|
+
`)}function Nc(e){return ce(e)||jt(e)||!!(Uo&&e&&e[Uo])}function It(e,t){var n=typeof e;return t=t??ae,!!t&&(n=="number"||n!="symbol"&&zu.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t,n){if(!ke(n))return!1;var i=typeof t;return(i=="number"?Ye(n)&&It(t,n.length):i=="string"&&t in n)?yt(n[t],e):!1}function Ti(e,t){if(ce(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rt(e)?!0:Ou.test(e)||!ku.test(e)||t!=null&&e in Ee(t)}function Fc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ri(e){var t=dr(e),n=f[t];if(typeof n!="function"||!(t in ge.prototype))return!1;if(e===n)return!0;var i=Ai(n);return!!i&&e===i[0]}function Dc(e){return!!Lo&&Lo in e}var Uc=Gn?Bt:zi;function Ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||an;return e===n}function Ls(e){return e===e&&!ke(e)}function Ns(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in Ee(n))}}function Mc(e){var t=wr(e,function(i){return n.size===w&&n.clear(),i}),n=t.cache;return t}function Pc(e,t){var n=e[1],i=t[1],u=n|i,c=u<(k|J|P),v=i==P&&n==V||i==P&&n==q&&e[7].length<=t[8]||i==(P|q)&&t[7].length<=t[8]&&n==V;if(!(c||v))return e;i&k&&(e[2]=t[2],u|=n&k?0:se);var m=t[3];if(m){var A=e[3];e[3]=A?vs(A,m,t[4]):m,e[4]=A?Mt(e[3],T):t[4]}return m=t[5],m&&(A=e[5],e[5]=A?ys(A,m,t[6]):m,e[6]=A?Mt(e[5],T):t[6]),m=t[7],m&&(e[7]=m),i&P&&(e[8]=e[8]==null?t[8]:We(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function Hc(e){var t=[];if(e!=null)for(var n in Ee(e))t.push(n);return t}function Wc(e){return Kn.call(e)}function Fs(e,t,n){return t=Fe(t===r?e.length-1:t,0),function(){for(var i=arguments,u=-1,c=Fe(i.length-t,0),v=C(c);++u<c;)v[u]=i[t+u];u=-1;for(var m=C(t+1);++u<t;)m[u]=i[u];return m[t]=n(v),et(e,this,m)}}function Ds(e,t){return t.length<2?e:Vt(e,lt(t,0,-1))}function qc(e,t){for(var n=e.length,i=We(t.length,n),u=Je(e);i--;){var c=t[i];e[i]=It(c,n)?u[c]:r}return e}function ki(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Us=Ps(ss),Nn=nf||function(e,t){return Ue.setTimeout(e,t)},Oi=Ps(lc);function Ms(e,t,n){var i=t+"";return Oi(e,Lc(i,Xc(Oc(i),n)))}function Ps(e){var t=0,n=0;return function(){var i=uf(),u=Z-(i-n);if(n=i,u>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(r,arguments)}}function vr(e,t){var n=-1,i=e.length,u=i-1;for(t=t===r?i:t;++n<t;){var c=hi(n,u),v=e[c];e[c]=e[n],e[n]=v}return e.length=t,e}var Hs=Mc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Iu,function(n,i,u,c){t.push(u?c.replace(Pu,"$1"):i||n)}),t});function At(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function Qt(e){if(e!=null){try{return zn.call(e)}catch{}try{return e+""}catch{}}return""}function Xc(e,t){return ut($,function(n){var i="_."+n[0];t&n[1]&&!Hn(e,i)&&e.push(i)}),e.sort()}function Ws(e){if(e instanceof ge)return e.clone();var t=new ft(e.__wrapped__,e.__chain__);return t.__actions__=Je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gc(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=Fe(le(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var u=0,c=0,v=C(Qn(i/t));u<i;)v[c++]=lt(e,u,u+=t);return v}function zc(e){for(var t=-1,n=e==null?0:e.length,i=0,u=[];++t<n;){var c=e[t];c&&(u[i++]=c)}return u}function Kc(){var e=arguments.length;if(!e)return[];for(var t=C(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ut(ce(n)?Je(n):[n],Me(t,1))}var $c=pe(function(e,t){return Ie(e)?Rn(e,Me(t,1,Ie,!0)):[]}),Jc=pe(function(e,t){var n=ht(t);return Ie(n)&&(n=r),Ie(e)?Rn(e,Me(t,1,Ie,!0),ne(n,2)):[]}),Yc=pe(function(e,t){var n=ht(t);return Ie(n)&&(n=r),Ie(e)?Rn(e,Me(t,1,Ie,!0),r,n):[]});function Vc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),lt(e,t<0?0:t,i)):[]}function Zc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),t=i-t,lt(e,0,t<0?0:t)):[]}function Qc(e,t){return e&&e.length?ar(e,ne(t,3),!0,!0):[]}function jc(e,t){return e&&e.length?ar(e,ne(t,3),!0):[]}function el(e,t,n,i){var u=e==null?0:e.length;return u?(n&&typeof n!="number"&&Ke(e,t,n)&&(n=0,i=u),Kf(e,t,n,i)):[]}function qs(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:le(n);return u<0&&(u=Fe(i+u,0)),Wn(e,ne(t,3),u)}function Xs(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i-1;return n!==r&&(u=le(n),u=n<0?Fe(i+u,0):We(u,i-1)),Wn(e,ne(t,3),u,!0)}function Gs(e){var t=e==null?0:e.length;return t?Me(e,1):[]}function tl(e){var t=e==null?0:e.length;return t?Me(e,Ce):[]}function nl(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:le(t),Me(e,t)):[]}function rl(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var u=e[t];i[u[0]]=u[1]}return i}function zs(e){return e&&e.length?e[0]:r}function il(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:le(n);return u<0&&(u=Fe(i+u,0)),rn(e,t,u)}function ol(e){var t=e==null?0:e.length;return t?lt(e,0,-1):[]}var sl=pe(function(e){var t=Re(e,yi);return t.length&&t[0]===e[0]?ui(t):[]}),ul=pe(function(e){var t=ht(e),n=Re(e,yi);return t===ht(n)?t=r:n.pop(),n.length&&n[0]===e[0]?ui(n,ne(t,2)):[]}),al=pe(function(e){var t=ht(e),n=Re(e,yi);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?ui(n,r,t):[]});function fl(e,t){return e==null?"":of.call(e,t)}function ht(e){var t=e==null?0:e.length;return t?e[t-1]:r}function cl(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i;return n!==r&&(u=le(n),u=u<0?Fe(i+u,0):We(u,i-1)),t===t?qa(e,t,u):Wn(e,So,u,!0)}function ll(e,t){return e&&e.length?ns(e,le(t)):r}var hl=pe(Ks);function Ks(e,t){return e&&e.length&&t&&t.length?li(e,t):e}function pl(e,t,n){return e&&e.length&&t&&t.length?li(e,t,ne(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?li(e,t,r,n):e}var gl=Ot(function(e,t){var n=e==null?0:e.length,i=ri(e,t);return os(e,Re(t,function(u){return It(u,n)?+u:u}).sort(gs)),i});function vl(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,u=[],c=e.length;for(t=ne(t,3);++i<c;){var v=e[i];t(v,i,e)&&(n.push(v),u.push(i))}return os(e,u),n}function Ii(e){return e==null?e:ff.call(e)}function yl(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&Ke(e,t,n)?(t=0,n=i):(t=t==null?0:le(t),n=n===r?i:le(n)),lt(e,t,n)):[]}function _l(e,t){return ur(e,t)}function ml(e,t,n){return di(e,t,ne(n,2))}function wl(e,t){var n=e==null?0:e.length;if(n){var i=ur(e,t);if(i<n&&yt(e[i],t))return i}return-1}function bl(e,t){return ur(e,t,!0)}function xl(e,t,n){return di(e,t,ne(n,2),!0)}function El(e,t){var n=e==null?0:e.length;if(n){var i=ur(e,t,!0)-1;if(yt(e[i],t))return i}return-1}function Al(e){return e&&e.length?us(e):[]}function Sl(e,t){return e&&e.length?us(e,ne(t,2)):[]}function Cl(e){var t=e==null?0:e.length;return t?lt(e,1,t):[]}function Tl(e,t,n){return e&&e.length?(t=n||t===r?1:le(t),lt(e,0,t<0?0:t)):[]}function Rl(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:le(t),t=i-t,lt(e,t<0?0:t,i)):[]}function kl(e,t){return e&&e.length?ar(e,ne(t,3),!1,!0):[]}function Ol(e,t){return e&&e.length?ar(e,ne(t,3)):[]}var Il=pe(function(e){return Wt(Me(e,1,Ie,!0))}),Bl=pe(function(e){var t=ht(e);return Ie(t)&&(t=r),Wt(Me(e,1,Ie,!0),ne(t,2))}),Ll=pe(function(e){var t=ht(e);return t=typeof t=="function"?t:r,Wt(Me(e,1,Ie,!0),r,t)});function Nl(e){return e&&e.length?Wt(e):[]}function Fl(e,t){return e&&e.length?Wt(e,ne(t,2)):[]}function Dl(e,t){return t=typeof t=="function"?t:r,e&&e.length?Wt(e,r,t):[]}function Bi(e){if(!(e&&e.length))return[];var t=0;return e=Dt(e,function(n){if(Ie(n))return t=Fe(n.length,t),!0}),Yr(t,function(n){return Re(e,Kr(n))})}function $s(e,t){if(!(e&&e.length))return[];var n=Bi(e);return t==null?n:Re(n,function(i){return et(t,r,i)})}var Ul=pe(function(e,t){return Ie(e)?Rn(e,t):[]}),Ml=pe(function(e){return vi(Dt(e,Ie))}),Pl=pe(function(e){var t=ht(e);return Ie(t)&&(t=r),vi(Dt(e,Ie),ne(t,2))}),Hl=pe(function(e){var t=ht(e);return t=typeof t=="function"?t:r,vi(Dt(e,Ie),r,t)}),Wl=pe(Bi);function ql(e,t){return ls(e||[],t||[],Tn)}function Xl(e,t){return ls(e||[],t||[],In)}var Gl=pe(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,$s(e,n)});function Js(e){var t=f(e);return t.__chain__=!0,t}function zl(e,t){return t(e),e}function yr(e,t){return t(e)}var Kl=Ot(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,u=function(c){return ri(c,e)};return t>1||this.__actions__.length||!(i instanceof ge)||!It(n)?this.thru(u):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:yr,args:[u],thisArg:r}),new ft(i,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function $l(){return Js(this)}function Jl(){return new ft(this.value(),this.__chain__)}function Yl(){this.__values__===r&&(this.__values__=au(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Vl(){return this}function Zl(e){for(var t,n=this;n instanceof nr;){var i=Ws(n);i.__index__=0,i.__values__=r,t?u.__wrapped__=i:t=i;var u=i;n=n.__wrapped__}return u.__wrapped__=e,t}function Ql(){var e=this.__wrapped__;if(e instanceof ge){var t=e;return this.__actions__.length&&(t=new ge(this)),t=t.reverse(),t.__actions__.push({func:yr,args:[Ii],thisArg:r}),new ft(t,this.__chain__)}return this.thru(Ii)}function jl(){return cs(this.__wrapped__,this.__actions__)}var eh=fr(function(e,t,n){we.call(e,n)?++e[n]:Rt(e,n,1)});function th(e,t,n){var i=ce(e)?Eo:zf;return n&&Ke(e,t,n)&&(t=r),i(e,ne(t,3))}function nh(e,t){var n=ce(e)?Dt:$o;return n(e,ne(t,3))}var rh=bs(qs),ih=bs(Xs);function oh(e,t){return Me(_r(e,t),1)}function sh(e,t){return Me(_r(e,t),Ce)}function uh(e,t,n){return n=n===r?1:le(n),Me(_r(e,t),n)}function Ys(e,t){var n=ce(e)?ut:Ht;return n(e,ne(t,3))}function Vs(e,t){var n=ce(e)?Sa:Ko;return n(e,ne(t,3))}var ah=fr(function(e,t,n){we.call(e,n)?e[n].push(t):Rt(e,n,[t])});function fh(e,t,n,i){e=Ye(e)?e:vn(e),n=n&&!i?le(n):0;var u=e.length;return n<0&&(n=Fe(u+n,0)),Er(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&rn(e,t,n)>-1}var ch=pe(function(e,t,n){var i=-1,u=typeof t=="function",c=Ye(e)?C(e.length):[];return Ht(e,function(v){c[++i]=u?et(t,v,n):kn(v,t,n)}),c}),lh=fr(function(e,t,n){Rt(e,n,t)});function _r(e,t){var n=ce(e)?Re:jo;return n(e,ne(t,3))}function hh(e,t,n,i){return e==null?[]:(ce(t)||(t=t==null?[]:[t]),n=i?r:n,ce(n)||(n=n==null?[]:[n]),rs(e,t,n))}var ph=fr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function dh(e,t,n){var i=ce(e)?Gr:To,u=arguments.length<3;return i(e,ne(t,4),n,u,Ht)}function gh(e,t,n){var i=ce(e)?Ca:To,u=arguments.length<3;return i(e,ne(t,4),n,u,Ko)}function vh(e,t){var n=ce(e)?Dt:$o;return n(e,br(ne(t,3)))}function yh(e){var t=ce(e)?qo:fc;return t(e)}function _h(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=le(t);var i=ce(e)?Hf:cc;return i(e,t)}function mh(e){var t=ce(e)?Wf:hc;return t(e)}function wh(e){if(e==null)return 0;if(Ye(e))return Er(e)?sn(e):e.length;var t=qe(e);return t==Te||t==Ge?e.size:fi(e).length}function bh(e,t,n){var i=ce(e)?zr:pc;return n&&Ke(e,t,n)&&(t=r),i(e,ne(t,3))}var xh=pe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ke(e,t[0],t[1])?t=[]:n>2&&Ke(t[0],t[1],t[2])&&(t=[t[0]]),rs(e,Me(t,1),[])}),mr=tf||function(){return Ue.Date.now()};function Eh(e,t){if(typeof t!="function")throw new at(d);return e=le(e),function(){if(--e<1)return t.apply(this,arguments)}}function Zs(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,kt(e,P,r,r,r,r,t)}function Qs(e,t){var n;if(typeof t!="function")throw new at(d);return e=le(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Li=pe(function(e,t,n){var i=k;if(n.length){var u=Mt(n,dn(Li));i|=X}return kt(e,i,t,n,u)}),js=pe(function(e,t,n){var i=k|J;if(n.length){var u=Mt(n,dn(js));i|=X}return kt(t,i,e,n,u)});function eu(e,t,n){t=n?r:t;var i=kt(e,V,r,r,r,r,r,t);return i.placeholder=eu.placeholder,i}function tu(e,t,n){t=n?r:t;var i=kt(e,ue,r,r,r,r,r,t);return i.placeholder=tu.placeholder,i}function nu(e,t,n){var i,u,c,v,m,A,O=0,I=!1,L=!1,W=!0;if(typeof e!="function")throw new at(d);t=pt(t)||0,ke(n)&&(I=!!n.leading,L="maxWait"in n,c=L?Fe(pt(n.maxWait)||0,t):c,W="trailing"in n?!!n.trailing:W);function Y(Be){var _t=i,Nt=u;return i=u=r,O=Be,v=e.apply(Nt,_t),v}function re(Be){return O=Be,m=Nn(de,t),I?Y(Be):v}function he(Be){var _t=Be-A,Nt=Be-O,bu=t-_t;return L?We(bu,c-Nt):bu}function ie(Be){var _t=Be-A,Nt=Be-O;return A===r||_t>=t||_t<0||L&&Nt>=c}function de(){var Be=mr();if(ie(Be))return ve(Be);m=Nn(de,he(Be))}function ve(Be){return m=r,W&&i?Y(Be):(i=u=r,v)}function it(){m!==r&&hs(m),O=0,i=A=u=m=r}function $e(){return m===r?v:ve(mr())}function ot(){var Be=mr(),_t=ie(Be);if(i=arguments,u=this,A=Be,_t){if(m===r)return re(A);if(L)return hs(m),m=Nn(de,t),Y(A)}return m===r&&(m=Nn(de,t)),v}return ot.cancel=it,ot.flush=$e,ot}var Ah=pe(function(e,t){return zo(e,1,t)}),Sh=pe(function(e,t,n){return zo(e,pt(t)||0,n)});function Ch(e){return kt(e,B)}function wr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new at(d);var n=function(){var i=arguments,u=t?t.apply(this,i):i[0],c=n.cache;if(c.has(u))return c.get(u);var v=e.apply(this,i);return n.cache=c.set(u,v)||c,v};return n.cache=new(wr.Cache||Tt),n}wr.Cache=Tt;function br(e){if(typeof e!="function")throw new at(d);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)}}function Th(e){return Qs(2,e)}var Rh=dc(function(e,t){t=t.length==1&&ce(t[0])?Re(t[0],tt(ne())):Re(Me(t,1),tt(ne()));var n=t.length;return pe(function(i){for(var u=-1,c=We(i.length,n);++u<c;)i[u]=t[u].call(this,i[u]);return et(e,this,i)})}),Ni=pe(function(e,t){var n=Mt(t,dn(Ni));return kt(e,X,r,t,n)}),ru=pe(function(e,t){var n=Mt(t,dn(ru));return kt(e,D,r,t,n)}),kh=Ot(function(e,t){return kt(e,q,r,r,r,t)});function Oh(e,t){if(typeof e!="function")throw new at(d);return t=t===r?t:le(t),pe(e,t)}function Ih(e,t){if(typeof e!="function")throw new at(d);return t=t==null?0:Fe(le(t),0),pe(function(n){var i=n[t],u=Xt(n,0,t);return i&&Ut(u,i),et(e,this,u)})}function Bh(e,t,n){var i=!0,u=!0;if(typeof e!="function")throw new at(d);return ke(n)&&(i="leading"in n?!!n.leading:i,u="trailing"in n?!!n.trailing:u),nu(e,t,{leading:i,maxWait:t,trailing:u})}function Lh(e){return Zs(e,1)}function Nh(e,t){return Ni(_i(t),e)}function Fh(){if(!arguments.length)return[];var e=arguments[0];return ce(e)?e:[e]}function Dh(e){return ct(e,p)}function Uh(e,t){return t=typeof t=="function"?t:r,ct(e,p,t)}function Mh(e){return ct(e,b|p)}function Ph(e,t){return t=typeof t=="function"?t:r,ct(e,b|p,t)}function Hh(e,t){return t==null||Go(e,t,De(t))}function yt(e,t){return e===t||e!==e&&t!==t}var Wh=pr(si),qh=pr(function(e,t){return e>=t}),jt=Vo(function(){return arguments}())?Vo:function(e){return Oe(e)&&we.call(e,"callee")&&!Do.call(e,"callee")},ce=C.isArray,Xh=yo?tt(yo):Zf;function Ye(e){return e!=null&&xr(e.length)&&!Bt(e)}function Ie(e){return Oe(e)&&Ye(e)}function Gh(e){return e===!0||e===!1||Oe(e)&&ze(e)==Q}var Gt=rf||zi,zh=_o?tt(_o):Qf;function Kh(e){return Oe(e)&&e.nodeType===1&&!Fn(e)}function $h(e){if(e==null)return!0;if(Ye(e)&&(ce(e)||typeof e=="string"||typeof e.splice=="function"||Gt(e)||gn(e)||jt(e)))return!e.length;var t=qe(e);if(t==Te||t==Ge)return!e.size;if(Ln(e))return!fi(e).length;for(var n in e)if(we.call(e,n))return!1;return!0}function Jh(e,t){return On(e,t)}function Yh(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?On(e,t,r,n):!!i}function Fi(e){if(!Oe(e))return!1;var t=ze(e);return t==oe||t==z||typeof e.message=="string"&&typeof e.name=="string"&&!Fn(e)}function Vh(e){return typeof e=="number"&&Mo(e)}function Bt(e){if(!ke(e))return!1;var t=ze(e);return t==_e||t==He||t==U||t==_n}function iu(e){return typeof e=="number"&&e==le(e)}function xr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ae}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Oe(e){return e!=null&&typeof e=="object"}var ou=mo?tt(mo):ec;function Zh(e,t){return e===t||ai(e,t,Si(t))}function Qh(e,t,n){return n=typeof n=="function"?n:r,ai(e,t,Si(t),n)}function jh(e){return su(e)&&e!=+e}function ep(e){if(Uc(e))throw new fe(h);return Zo(e)}function tp(e){return e===null}function np(e){return e==null}function su(e){return typeof e=="number"||Oe(e)&&ze(e)==dt}function Fn(e){if(!Oe(e)||ze(e)!=je)return!1;var t=Yn(e);if(t===null)return!0;var n=we.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zn.call(n)==Za}var Di=wo?tt(wo):tc;function rp(e){return iu(e)&&e>=-ae&&e<=ae}var uu=bo?tt(bo):nc;function Er(e){return typeof e=="string"||!ce(e)&&Oe(e)&&ze(e)==wt}function rt(e){return typeof e=="symbol"||Oe(e)&&ze(e)==bt}var gn=xo?tt(xo):rc;function ip(e){return e===r}function op(e){return Oe(e)&&qe(e)==St}function sp(e){return Oe(e)&&ze(e)==wn}var up=pr(ci),ap=pr(function(e,t){return e<=t});function au(e){if(!e)return[];if(Ye(e))return Er(e)?gt(e):Je(e);if(xn&&e[xn])return Pa(e[xn]());var t=qe(e),n=t==Te?Zr:t==Ge?qn:vn;return n(e)}function Lt(e){if(!e)return e===0?e:0;if(e=pt(e),e===Ce||e===-Ce){var t=e<0?-1:1;return t*Pe}return e===e?e:0}function le(e){var t=Lt(e),n=t%1;return t===t?n?t-n:t:0}function fu(e){return e?Yt(le(e),0,Qe):0}function pt(e){if(typeof e=="number")return e;if(rt(e))return mt;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ro(e);var n=qu.test(e);return n||Gu.test(e)?xa(e.slice(2),n?2:8):Wu.test(e)?mt:+e}function cu(e){return Et(e,Ve(e))}function fp(e){return e?Yt(le(e),-ae,ae):e===0?e:0}function me(e){return e==null?"":nt(e)}var cp=hn(function(e,t){if(Ln(t)||Ye(t)){Et(t,De(t),e);return}for(var n in t)we.call(t,n)&&Tn(e,n,t[n])}),lu=hn(function(e,t){Et(t,Ve(t),e)}),Ar=hn(function(e,t,n,i){Et(t,Ve(t),e,i)}),lp=hn(function(e,t,n,i){Et(t,De(t),e,i)}),hp=Ot(ri);function pp(e,t){var n=ln(e);return t==null?n:Xo(n,t)}var dp=pe(function(e,t){e=Ee(e);var n=-1,i=t.length,u=i>2?t[2]:r;for(u&&Ke(t[0],t[1],u)&&(i=1);++n<i;)for(var c=t[n],v=Ve(c),m=-1,A=v.length;++m<A;){var O=v[m],I=e[O];(I===r||yt(I,an[O])&&!we.call(e,O))&&(e[O]=c[O])}return e}),gp=pe(function(e){return e.push(r,Rs),et(hu,r,e)});function vp(e,t){return Ao(e,ne(t,3),xt)}function yp(e,t){return Ao(e,ne(t,3),oi)}function _p(e,t){return e==null?e:ii(e,ne(t,3),Ve)}function mp(e,t){return e==null?e:Jo(e,ne(t,3),Ve)}function wp(e,t){return e&&xt(e,ne(t,3))}function bp(e,t){return e&&oi(e,ne(t,3))}function xp(e){return e==null?[]:or(e,De(e))}function Ep(e){return e==null?[]:or(e,Ve(e))}function Ui(e,t,n){var i=e==null?r:Vt(e,t);return i===r?n:i}function Ap(e,t){return e!=null&&Is(e,t,$f)}function Mi(e,t){return e!=null&&Is(e,t,Jf)}var Sp=Es(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Kn.call(t)),e[t]=n},Hi(Ze)),Cp=Es(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Kn.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]},ne),Tp=pe(kn);function De(e){return Ye(e)?Wo(e):fi(e)}function Ve(e){return Ye(e)?Wo(e,!0):ic(e)}function Rp(e,t){var n={};return t=ne(t,3),xt(e,function(i,u,c){Rt(n,t(i,u,c),i)}),n}function kp(e,t){var n={};return t=ne(t,3),xt(e,function(i,u,c){Rt(n,u,t(i,u,c))}),n}var Op=hn(function(e,t,n){sr(e,t,n)}),hu=hn(function(e,t,n,i){sr(e,t,n,i)}),Ip=Ot(function(e,t){var n={};if(e==null)return n;var i=!1;t=Re(t,function(c){return c=qt(c,e),i||(i=c.length>1),c}),Et(e,Ei(e),n),i&&(n=ct(n,b|g|p,Sc));for(var u=t.length;u--;)gi(n,t[u]);return n});function Bp(e,t){return pu(e,br(ne(t)))}var Lp=Ot(function(e,t){return e==null?{}:sc(e,t)});function pu(e,t){if(e==null)return{};var n=Re(Ei(e),function(i){return[i]});return t=ne(t),is(e,n,function(i,u){return t(i,u[0])})}function Np(e,t,n){t=qt(t,e);var i=-1,u=t.length;for(u||(u=1,e=r);++i<u;){var c=e==null?r:e[At(t[i])];c===r&&(i=u,c=n),e=Bt(c)?c.call(e):c}return e}function Fp(e,t,n){return e==null?e:In(e,t,n)}function Dp(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:In(e,t,n,i)}var du=Cs(De),gu=Cs(Ve);function Up(e,t,n){var i=ce(e),u=i||Gt(e)||gn(e);if(t=ne(t,4),n==null){var c=e&&e.constructor;u?n=i?new c:[]:ke(e)?n=Bt(c)?ln(Yn(e)):{}:n={}}return(u?ut:xt)(e,function(v,m,A){return t(n,v,m,A)}),n}function Mp(e,t){return e==null?!0:gi(e,t)}function Pp(e,t,n){return e==null?e:fs(e,t,_i(n))}function Hp(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:fs(e,t,_i(n),i)}function vn(e){return e==null?[]:Vr(e,De(e))}function Wp(e){return e==null?[]:Vr(e,Ve(e))}function qp(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=pt(n),n=n===n?n:0),t!==r&&(t=pt(t),t=t===t?t:0),Yt(pt(e),t,n)}function Xp(e,t,n){return t=Lt(t),n===r?(n=t,t=0):n=Lt(n),e=pt(e),Yf(e,t,n)}function Gp(e,t,n){if(n&&typeof n!="boolean"&&Ke(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Lt(e),t===r?(t=e,e=0):t=Lt(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var u=Po();return We(e+u*(t-e+ba("1e-"+((u+"").length-1))),t)}return hi(e,t)}var zp=pn(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Pi(me(e).toLowerCase())}function yu(e){return e=me(e),e&&e.replace(Ku,Na).replace(la,"")}function Kp(e,t,n){e=me(e),t=nt(t);var i=e.length;n=n===r?i:Yt(le(n),0,i);var u=n;return n-=t.length,n>=0&&e.slice(n,u)==t}function $p(e){return e=me(e),e&&Cu.test(e)?e.replace($i,Fa):e}function Jp(e){return e=me(e),e&&Bu.test(e)?e.replace(Nr,"\\$&"):e}var Yp=pn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Vp=pn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zp=ws("toLowerCase");function Qp(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;if(!t||i>=t)return e;var u=(t-i)/2;return hr(jn(u),n)+e+hr(Qn(u),n)}function jp(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;return t&&i<t?e+hr(t-i,n):e}function ed(e,t,n){e=me(e),t=le(t);var i=t?sn(e):0;return t&&i<t?hr(t-i,n)+e:e}function td(e,t,n){return n||t==null?t=0:t&&(t=+t),af(me(e).replace(Fr,""),t||0)}function nd(e,t,n){return(n?Ke(e,t,n):t===r)?t=1:t=le(t),pi(me(e),t)}function rd(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var id=pn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function od(e,t,n){return n&&typeof n!="number"&&Ke(e,t,n)&&(t=n=r),n=n===r?Qe:n>>>0,n?(e=me(e),e&&(typeof t=="string"||t!=null&&!Di(t))&&(t=nt(t),!t&&on(e))?Xt(gt(e),0,n):e.split(t,n)):[]}var sd=pn(function(e,t,n){return e+(n?" ":"")+Pi(t)});function ud(e,t,n){return e=me(e),n=n==null?0:Yt(le(n),0,e.length),t=nt(t),e.slice(n,n+t.length)==t}function ad(e,t,n){var i=f.templateSettings;n&&Ke(e,t,n)&&(t=r),e=me(e),t=Ar({},t,i,Ts);var u=Ar({},t.imports,i.imports,Ts),c=De(u),v=Vr(u,c),m,A,O=0,I=t.interpolate||Un,L="__p += '",W=Qr((t.escape||Un).source+"|"+I.source+"|"+(I===Ji?Hu:Un).source+"|"+(t.evaluate||Un).source+"|$","g"),Y="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++va+"]")+`
|
|
19
|
+
`;e.replace(W,function(ie,de,ve,it,$e,ot){return ve||(ve=it),L+=e.slice(O,ot).replace($u,Da),de&&(m=!0,L+=`' +
|
|
20
20
|
__e(`+de+`) +
|
|
21
|
-
'`),$e&&(
|
|
21
|
+
'`),$e&&(A=!0,L+=`';
|
|
22
22
|
`+$e+`;
|
|
23
23
|
__p += '`),ve&&(L+=`' +
|
|
24
24
|
((__t = (`+ve+`)) == null ? '' : __t) +
|
|
@@ -26,23 +26,23 @@ __p += '`),ve&&(L+=`' +
|
|
|
26
26
|
`;var re=we.call(t,"variable")&&t.variable;if(!re)L=`with (obj) {
|
|
27
27
|
`+L+`
|
|
28
28
|
}
|
|
29
|
-
`;else if(Mu.test(re))throw new fe(y);L=(
|
|
29
|
+
`;else if(Mu.test(re))throw new fe(y);L=(A?L.replace(xu,""):L).replace(Eu,"$1").replace(Au,"$1;"),L="function("+(re||"obj")+`) {
|
|
30
30
|
`+(re?"":`obj || (obj = {});
|
|
31
|
-
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(
|
|
31
|
+
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
32
32
|
function print() { __p += __j.call(arguments, '') }
|
|
33
33
|
`:`;
|
|
34
34
|
`)+L+`return __p
|
|
35
|
-
}`;var he=mu(function(){return ye(c,Y+"return "+L).apply(r,v)});if(he.source=L,Fi(he))throw he;return he}function fd(e){return me(e).toLowerCase()}function cd(e){return me(e).toUpperCase()}function ld(e,t,n){if(e=me(e),e&&(n||t===r))return Ro(e);if(!e||!(t=nt(t)))return e;var i=gt(e),u=gt(t),c=ko(i,u),v=Oo(i,u)+1;return Xt(i,c,v).join("")}function hd(e,t,n){if(e=me(e),e&&(n||t===r))return e.slice(0,Bo(e)+1);if(!e||!(t=nt(t)))return e;var i=gt(e),u=Oo(i,gt(t))+1;return Xt(i,0,u).join("")}function pd(e,t,n){if(e=me(e),e&&(n||t===r))return e.replace(Fr,"");if(!e||!(t=nt(t)))return e;var i=gt(e),u=ko(i,gt(t));return Xt(i,u).join("")}function dd(e,t){var n=F,i=K;if(ke(t)){var u="separator"in t?t.separator:u;n="length"in t?le(t.length):n,i="omission"in t?nt(t.omission):i}e=me(e);var c=e.length;if(on(e)){var v=gt(e);c=v.length}if(n>=c)return e;var m=n-sn(i);if(m<1)return i;var S=v?Xt(v,0,m).join(""):e.slice(0,m);if(u===r)return S+i;if(v&&(m+=S.length-m),Ui(u)){if(e.slice(m).search(u)){var O,I=S;for(u.global||(u=Qr(u.source,me(Yi.exec(u))+"g")),u.lastIndex=0;O=u.exec(I);)var L=O.index;S=S.slice(0,L===r?m:L)}}else if(e.indexOf(nt(u),m)!=m){var W=S.lastIndexOf(u);W>-1&&(S=S.slice(0,W))}return S+i}function gd(e){return e=me(e),e&&Eu.test(e)?e.replace(Ki,Xa):e}var vd=pn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Pi=ws("toUpperCase");function _u(e,t,n){return e=me(e),t=n?r:t,t===r?Ma(e)?Ka(e):ka(e):e.match(t)||[]}var mu=pe(function(e,t){try{return et(e,r,t)}catch(n){return Fi(n)?n:new fe(n)}}),yd=Ot(function(e,t){return ut(t,function(n){n=St(n),Rt(e,n,Li(e[n],e))}),e});function _d(e){var t=e==null?0:e.length,n=ne();return e=t?Re(e,function(i){if(typeof i[1]!="function")throw new at(d);return[n(i[0]),i[1]]}):[],pe(function(i){for(var u=-1;++u<t;){var c=e[u];if(et(c[0],this,i))return et(c[1],this,i)}})}function md(e){return Gf(ct(e,b))}function Hi(e){return function(){return e}}function wd(e,t){return e==null||e!==e?t:e}var bd=xs(),xd=xs(!0);function Ve(e){return e}function Wi(e){return Qo(typeof e=="function"?e:ct(e,b))}function Ad(e){return es(ct(e,b))}function Sd(e,t){return ts(e,ct(t,b))}var Ed=pe(function(e,t){return function(n){return kn(n,e,t)}}),Cd=pe(function(e,t){return function(n){return kn(e,n,t)}});function qi(e,t,n){var i=Ue(t),u=or(t,i);n==null&&!(ke(t)&&(u.length||!i.length))&&(n=t,t=e,e=this,u=or(t,Ue(t)));var c=!(ke(n)&&"chain"in n)||!!n.chain,v=Bt(e);return ut(u,function(m){var S=t[m];e[m]=S,v&&(e.prototype[m]=function(){var O=this.__chain__;if(c||O){var I=e(this.__wrapped__),L=I.__actions__=Je(this.__actions__);return L.push({func:S,args:arguments,thisArg:e}),I.__chain__=O,I}return S.apply(e,Dt([this.value()],arguments))})}),e}function Td(){return De._===this&&(De._=Qa),this}function Xi(){}function Rd(e){return e=le(e),pe(function(t){return ns(t,e)})}var kd=wi(Re),Od=wi(Ao),Id=wi(zr);function wu(e){return Ti(e)?Kr(St(e)):uc(e)}function Bd(e){return function(t){return e==null?r:Zt(e,t)}}var Ld=Ss(),Nd=Ss(!0);function Gi(){return[]}function zi(){return!1}function Fd(){return{}}function Ud(){return""}function Dd(){return!0}function Md(e,t){if(e=le(e),e<1||e>ae)return[];var n=Qe,i=We(e,Qe);t=ne(t),e-=Qe;for(var u=Yr(i,t);++n<e;)t(n);return u}function Pd(e){return ce(e)?Re(e,St):rt(e)?[e]:Je(Hs(me(e)))}function Hd(e){var t=++Za;return me(e)+t}var Wd=lr(function(e,t){return e+t},0),qd=bi("ceil"),Xd=lr(function(e,t){return e/t},1),Gd=bi("floor");function zd(e){return e&&e.length?ir(e,Ve,si):r}function Kd(e,t){return e&&e.length?ir(e,ne(t,2),si):r}function $d(e){return Co(e,Ve)}function Jd(e,t){return Co(e,ne(t,2))}function Yd(e){return e&&e.length?ir(e,Ve,ci):r}function Zd(e,t){return e&&e.length?ir(e,ne(t,2),ci):r}var Vd=lr(function(e,t){return e*t},1),Qd=bi("round"),jd=lr(function(e,t){return e-t},0);function e0(e){return e&&e.length?Jr(e,Ve):0}function t0(e,t){return e&&e.length?Jr(e,ne(t,2)):0}return f.after=Ah,f.ary=Vs,f.assign=cp,f.assignIn=lu,f.assignInWith=Sr,f.assignWith=lp,f.at=hp,f.before=Qs,f.bind=Li,f.bindAll=yd,f.bindKey=js,f.castArray=Fh,f.chain=Js,f.chunk=Gc,f.compact=zc,f.concat=Kc,f.cond=_d,f.conforms=md,f.constant=Hi,f.countBy=eh,f.create=pp,f.curry=eu,f.curryRight=tu,f.debounce=nu,f.defaults=dp,f.defaultsDeep=gp,f.defer=Sh,f.delay=Eh,f.difference=$c,f.differenceBy=Jc,f.differenceWith=Yc,f.drop=Zc,f.dropRight=Vc,f.dropRightWhile=Qc,f.dropWhile=jc,f.fill=el,f.filter=nh,f.flatMap=oh,f.flatMapDeep=sh,f.flatMapDepth=uh,f.flatten=Gs,f.flattenDeep=tl,f.flattenDepth=nl,f.flip=Ch,f.flow=bd,f.flowRight=xd,f.fromPairs=rl,f.functions=xp,f.functionsIn=Ap,f.groupBy=ah,f.initial=ol,f.intersection=sl,f.intersectionBy=ul,f.intersectionWith=al,f.invert=Ep,f.invertBy=Cp,f.invokeMap=ch,f.iteratee=Wi,f.keyBy=lh,f.keys=Ue,f.keysIn=Ze,f.map=_r,f.mapKeys=Rp,f.mapValues=kp,f.matches=Ad,f.matchesProperty=Sd,f.memoize=wr,f.merge=Op,f.mergeWith=hu,f.method=Ed,f.methodOf=Cd,f.mixin=qi,f.negate=br,f.nthArg=Rd,f.omit=Ip,f.omitBy=Bp,f.once=Th,f.orderBy=hh,f.over=kd,f.overArgs=Rh,f.overEvery=Od,f.overSome=Id,f.partial=Ni,f.partialRight=ru,f.partition=ph,f.pick=Lp,f.pickBy=pu,f.property=wu,f.propertyOf=Bd,f.pull=hl,f.pullAll=Ks,f.pullAllBy=pl,f.pullAllWith=dl,f.pullAt=gl,f.range=Ld,f.rangeRight=Nd,f.rearg=kh,f.reject=vh,f.remove=vl,f.rest=Oh,f.reverse=Ii,f.sampleSize=_h,f.set=Fp,f.setWith=Up,f.shuffle=mh,f.slice=yl,f.sortBy=xh,f.sortedUniq=Sl,f.sortedUniqBy=El,f.split=od,f.spread=Ih,f.tail=Cl,f.take=Tl,f.takeRight=Rl,f.takeRightWhile=kl,f.takeWhile=Ol,f.tap=zl,f.throttle=Bh,f.thru=yr,f.toArray=au,f.toPairs=du,f.toPairsIn=gu,f.toPath=Pd,f.toPlainObject=cu,f.transform=Dp,f.unary=Lh,f.union=Il,f.unionBy=Bl,f.unionWith=Ll,f.uniq=Nl,f.uniqBy=Fl,f.uniqWith=Ul,f.unset=Mp,f.unzip=Bi,f.unzipWith=$s,f.update=Pp,f.updateWith=Hp,f.values=vn,f.valuesIn=Wp,f.without=Dl,f.words=_u,f.wrap=Nh,f.xor=Ml,f.xorBy=Pl,f.xorWith=Hl,f.zip=Wl,f.zipObject=ql,f.zipObjectDeep=Xl,f.zipWith=Gl,f.entries=du,f.entriesIn=gu,f.extend=lu,f.extendWith=Sr,qi(f,f),f.add=Wd,f.attempt=mu,f.camelCase=zp,f.capitalize=vu,f.ceil=qd,f.clamp=qp,f.clone=Uh,f.cloneDeep=Mh,f.cloneDeepWith=Ph,f.cloneWith=Dh,f.conformsTo=Hh,f.deburr=yu,f.defaultTo=wd,f.divide=Xd,f.endsWith=Kp,f.eq=yt,f.escape=$p,f.escapeRegExp=Jp,f.every=th,f.find=rh,f.findIndex=qs,f.findKey=vp,f.findLast=ih,f.findLastIndex=Xs,f.findLastKey=yp,f.floor=Gd,f.forEach=Ys,f.forEachRight=Zs,f.forIn=_p,f.forInRight=mp,f.forOwn=wp,f.forOwnRight=bp,f.get=Di,f.gt=Wh,f.gte=qh,f.has=Sp,f.hasIn=Mi,f.head=zs,f.identity=Ve,f.includes=fh,f.indexOf=il,f.inRange=Xp,f.invoke=Tp,f.isArguments=jt,f.isArray=ce,f.isArrayBuffer=Xh,f.isArrayLike=Ye,f.isArrayLikeObject=Ie,f.isBoolean=Gh,f.isBuffer=Gt,f.isDate=zh,f.isElement=Kh,f.isEmpty=$h,f.isEqual=Jh,f.isEqualWith=Yh,f.isError=Fi,f.isFinite=Zh,f.isFunction=Bt,f.isInteger=iu,f.isLength=xr,f.isMap=ou,f.isMatch=Vh,f.isMatchWith=Qh,f.isNaN=jh,f.isNative=ep,f.isNil=np,f.isNull=tp,f.isNumber=su,f.isObject=ke,f.isObjectLike=Oe,f.isPlainObject=Fn,f.isRegExp=Ui,f.isSafeInteger=rp,f.isSet=uu,f.isString=Ar,f.isSymbol=rt,f.isTypedArray=gn,f.isUndefined=ip,f.isWeakMap=op,f.isWeakSet=sp,f.join=fl,f.kebabCase=Yp,f.last=ht,f.lastIndexOf=cl,f.lowerCase=Zp,f.lowerFirst=Vp,f.lt=up,f.lte=ap,f.max=zd,f.maxBy=Kd,f.mean=$d,f.meanBy=Jd,f.min=Yd,f.minBy=Zd,f.stubArray=Gi,f.stubFalse=zi,f.stubObject=Fd,f.stubString=Ud,f.stubTrue=Dd,f.multiply=Vd,f.nth=ll,f.noConflict=Td,f.noop=Xi,f.now=mr,f.pad=Qp,f.padEnd=jp,f.padStart=ed,f.parseInt=td,f.random=Gp,f.reduce=dh,f.reduceRight=gh,f.repeat=nd,f.replace=rd,f.result=Np,f.round=Qd,f.runInContext=x,f.sample=yh,f.size=wh,f.snakeCase=id,f.some=bh,f.sortedIndex=_l,f.sortedIndexBy=ml,f.sortedIndexOf=wl,f.sortedLastIndex=bl,f.sortedLastIndexBy=xl,f.sortedLastIndexOf=Al,f.startCase=sd,f.startsWith=ud,f.subtract=jd,f.sum=e0,f.sumBy=t0,f.template=ad,f.times=Md,f.toFinite=Lt,f.toInteger=le,f.toLength=fu,f.toLower=fd,f.toNumber=pt,f.toSafeInteger=fp,f.toString=me,f.toUpper=cd,f.trim=ld,f.trimEnd=hd,f.trimStart=pd,f.truncate=dd,f.unescape=gd,f.uniqueId=Hd,f.upperCase=vd,f.upperFirst=Pi,f.each=Ys,f.eachRight=Zs,f.first=zs,qi(f,function(){var e={};return xt(f,function(t,n){we.call(f.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),f.VERSION=o,ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),ut(["drop","take"],function(e,t){ge.prototype[e]=function(n){n=n===r?1:Fe(le(n),0);var i=this.__filtered__&&!t?new ge(this):this.clone();return i.__filtered__?i.__takeCount__=We(n,i.__takeCount__):i.__views__.push({size:We(n,Qe),type:e+(i.__dir__<0?"Right":"")}),i},ge.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),ut(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==N||n==xe;ge.prototype[e]=function(u){var c=this.clone();return c.__iteratees__.push({iteratee:ne(u,3),type:n}),c.__filtered__=c.__filtered__||i,c}}),ut(["head","last"],function(e,t){var n="take"+(t?"Right":"");ge.prototype[e]=function(){return this[n](1).value()[0]}}),ut(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ge.prototype[e]=function(){return this.__filtered__?new ge(this):this[n](1)}}),ge.prototype.compact=function(){return this.filter(Ve)},ge.prototype.find=function(e){return this.filter(e).head()},ge.prototype.findLast=function(e){return this.reverse().find(e)},ge.prototype.invokeMap=pe(function(e,t){return typeof e=="function"?new ge(this):this.map(function(n){return kn(n,e,t)})}),ge.prototype.reject=function(e){return this.filter(br(ne(e)))},ge.prototype.slice=function(e,t){e=le(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ge(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=le(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ge.prototype.toArray=function(){return this.take(Qe)},xt(ge.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),u=f[i?"take"+(t=="last"?"Right":""):t],c=i||/^find/.test(t);u&&(f.prototype[t]=function(){var v=this.__wrapped__,m=i?[1]:arguments,S=v instanceof ge,O=m[0],I=S||ce(v),L=function(de){var ve=u.apply(f,Dt([de],m));return i&&W?ve[0]:ve};I&&n&&typeof O=="function"&&O.length!=1&&(S=I=!1);var W=this.__chain__,Y=!!this.__actions__.length,re=c&&!W,he=S&&!Y;if(!c&&I){v=he?v:new ge(this);var ie=e.apply(v,m);return ie.__actions__.push({func:yr,args:[L],thisArg:r}),new ft(ie,W)}return re&&he?e.apply(this,m):(ie=this.thru(L),re?i?ie.value()[0]:ie.value():ie)})}),ut(["pop","push","shift","sort","splice","unshift"],function(e){var t=Xn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var c=this.value();return t.apply(ce(c)?c:[],u)}return this[n](function(v){return t.apply(ce(v)?v:[],u)})}}),xt(ge.prototype,function(e,t){var n=f[t];if(n){var i=n.name+"";we.call(cn,i)||(cn[i]=[]),cn[i].push({name:t,func:n})}}),cn[cr(r,J).name]=[{name:"wrapper",func:r}],ge.prototype.clone=gf,ge.prototype.reverse=vf,ge.prototype.value=yf,f.prototype.at=Kl,f.prototype.chain=$l,f.prototype.commit=Jl,f.prototype.next=Yl,f.prototype.plant=Vl,f.prototype.reverse=Ql,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=jl,f.prototype.first=f.prototype.head,xn&&(f.prototype[xn]=Zl),f},un=$a();zt?((zt.exports=un)._=un,Wr._=un):De._=un}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const eventsSdkDefaultOptions={url:"https://monitorapi.voicenter.co.il/monitorAPI/getMonitorUrls",environment:Environment.BROWSER,fallbackServer:{Domain:"monitor5.voicenter.co.il",Priority:0},loginUrl:"https://loginapi.voicenter.co.il/monitorAPI/Login",refreshTokenUrl:"https://loginapi.voicenter.co.il/monitorAPI/RefreshIdentityToken",token:"",loginType:"token",forceNew:!0,reconnectionDelay:1e4,reconnectionDelayMax:1e4,maxReconnectAttempts:5,timeout:1e4,keepAliveTimeout:6e4,idleInterval:6e4*5,protocol:"https",transports:["websocket"],upgrade:!1,store:"",extensionsModuleName:"sdkExtensions",queuesModuleName:"sdkQueues",dialersModuleName:"sdkDialers",serverFetchStrategy:"static",serverType:0,useLogger:!1,loggerSocketConnection:"",loggerServer:"http://127.0.0.1:3000/",loggerConfig:{logToConsole:!0,overloadGlobalConsole:!1,namespace:"events-sdk",socketEmitInterval:1e4},loggerConnectOptions:{reconnection:!0,reconnectionDelay:5e3,reconnectionAttempts:10,perMessageDeflate:!1,upgrade:!1,transports:["websocket"],debug:!1},username:"username",password:"53070875445",email:"FreshTest@Voicenter.com"};function v1_3_7(){return function s(a,r,o){function l(y,A){if(!r[y]){if(!a[y]){var w=typeof require=="function"&&require;if(!A&&w)return w(y,!0);if(h)return h(y,!0);throw new Error("Cannot find module '"+y+"'")}var T=r[y]={exports:{}};a[y][0].call(T.exports,function(b){var g=a[y][1][b];return l(g||b)},T,T.exports,s,a,r,o)}return r[y].exports}for(var h=typeof require=="function"&&require,d=0;d<o.length;d++)l(o[d]);return l}({1:[function(s,a){a.exports=s("./lib/")},{"./lib/":2}],2:[function(s,a,r){function o(w,T){typeof w=="object"&&(T=w,w=void 0),T=T||{};var b,g=l(w),p=g.source,_=g.id;return T.forceNew||T["force new connection"]||T.multiplex===!1?(y("ignoring socket cache for %s",p),b=d(p,T)):(A[_]||(y("new io instance for %s",p),A[_]=d(p,T)),b=A[_]),b.socket(g.path)}var l=s("./url"),h=s("socket.io-parser"),d=s("./manager"),y=s("debug")("socket.io-client");a.exports=r=o;var A=r.managers={};r.protocol=h.protocol,r.connect=o,r.Manager=s("./manager"),r.Socket=s("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":44}],3:[function(s,a){function r(g,p){return this instanceof r?(g&&typeof g=="object"&&(p=g,g=void 0),p=p||{},p.path=p.path||"/socket.io",this.nsps={},this.subs=[],this.opts=p,this.reconnection(p.reconnection!==!1),this.reconnectionAttempts(p.reconnectionAttempts||1/0),this.reconnectionDelay(p.reconnectionDelay||1e3),this.reconnectionDelayMax(p.reconnectionDelayMax||5e3),this.randomizationFactor(p.randomizationFactor||.5),this.backoff=new b({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(p.timeout==null?2e4:p.timeout),this.readyState="closed",this.uri=g,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new d.Encoder,this.decoder=new d.Decoder,this.autoConnect=p.autoConnect!==!1,void(this.autoConnect&&this.open())):new r(g,p)}var o=(s("./url"),s("engine.io-client")),l=s("./socket"),h=s("component-emitter"),d=s("socket.io-parser"),y=s("./on"),A=s("component-bind"),w=(s("object-component"),s("debug")("socket.io-client:manager")),T=s("indexof"),b=s("backo2");a.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var g in this.nsps)this.nsps[g].emit.apply(this.nsps[g],arguments)},r.prototype.updateSocketIds=function(){for(var g in this.nsps)this.nsps[g].id=this.engine.id},h(r.prototype),r.prototype.reconnection=function(g){return arguments.length?(this._reconnection=!!g,this):this._reconnection},r.prototype.reconnectionAttempts=function(g){return arguments.length?(this._reconnectionAttempts=g,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(g){return arguments.length?(this._reconnectionDelay=g,this.backoff&&this.backoff.setMin(g),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(g){return arguments.length?(this._randomizationFactor=g,this.backoff&&this.backoff.setJitter(g),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(g){return arguments.length?(this._reconnectionDelayMax=g,this.backoff&&this.backoff.setMax(g),this):this._reconnectionDelayMax},r.prototype.timeout=function(g){return arguments.length?(this._timeout=g,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},r.prototype.open=r.prototype.connect=function(g){if(w("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;w("opening %s",this.uri),this.engine=o(this.uri,this.opts);var p=this.engine,_=this;this.readyState="opening",this.skipReconnect=!1;var E=y(p,"open",function(){_.onopen(),g&&g()}),k=y(p,"error",function(Z){if(w("connect_error"),_.cleanup(),_.readyState="closed",_.emitAll("connect_error",Z),g){var ue=new Error("Connection error");ue.data=Z,g(ue)}else _.maybeReconnectOnOpen()});if(this._timeout!==!1){var J=this._timeout;w("connect attempt will timeout after %d",J);var se=setTimeout(function(){w("connect attempt timed out after %d",J),E.destroy(),p.close(),p.emit("error","timeout"),_.emitAll("connect_timeout",J)},J);this.subs.push({destroy:function(){clearTimeout(se)}})}return this.subs.push(E),this.subs.push(k),this},r.prototype.onopen=function(){w("open"),this.cleanup(),this.readyState="open",this.emit("open");var g=this.engine;this.subs.push(y(g,"data",A(this,"ondata"))),this.subs.push(y(this.decoder,"decoded",A(this,"ondecoded"))),this.subs.push(y(g,"error",A(this,"onerror"))),this.subs.push(y(g,"close",A(this,"onclose")))},r.prototype.ondata=function(g){this.decoder.add(g)},r.prototype.ondecoded=function(g){this.emit("packet",g)},r.prototype.onerror=function(g){w("error",g),this.emitAll("error",g)},r.prototype.socket=function(g){var p=this.nsps[g];if(!p){p=new l(this,g),this.nsps[g]=p;var _=this;p.on("connect",function(){p.id=_.engine.id,~T(_.connected,p)||_.connected.push(p)})}return p},r.prototype.destroy=function(g){var p=T(this.connected,g);~p&&this.connected.splice(p,1),this.connected.length||this.close()},r.prototype.packet=function(g){w("writing packet %j",g);var p=this;p.encoding?p.packetBuffer.push(g):(p.encoding=!0,this.encoder.encode(g,function(_){for(var E=0;E<_.length;E++)p.engine.write(_[E]);p.encoding=!1,p.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var g=this.packetBuffer.shift();this.packet(g)}},r.prototype.cleanup=function(){for(var g;g=this.subs.shift();)g.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(g){w("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",g),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var g=this;if(this.backoff.attempts>=this._reconnectionAttempts)w("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var p=this.backoff.duration();w("will wait %dms before reconnect attempt",p),this.reconnecting=!0;var _=setTimeout(function(){g.skipReconnect||(w("attempting reconnect"),g.emitAll("reconnect_attempt",g.backoff.attempts),g.emitAll("reconnecting",g.backoff.attempts),g.skipReconnect||g.open(function(E){E?(w("reconnect attempt error"),g.reconnecting=!1,g.reconnect(),g.emitAll("reconnect_error",E.data)):(w("reconnect success"),g.onreconnect())}))},p);this.subs.push({destroy:function(){clearTimeout(_)}})}},r.prototype.onreconnect=function(){var g=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",g)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(s,a){function r(o,l,h){return o.on(l,h),{destroy:function(){o.removeListener(l,h)}}}a.exports=r},{}],5:[function(s,a,r){function o(p,_){this.io=p,this.nsp=_,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var l=s("socket.io-parser"),h=s("component-emitter"),d=s("to-array"),y=s("./on"),A=s("component-bind"),w=s("debug")("socket.io-client:socket"),T=s("has-binary");a.exports=o;var b={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},g=h.prototype.emit;h(o.prototype),o.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[y(p,"open",A(this,"onopen")),y(p,"packet",A(this,"onpacket")),y(p,"close",A(this,"onclose"))]}},o.prototype.open=o.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),this.io.readyState=="open"&&this.onopen(),this)},o.prototype.send=function(){var p=d(arguments);return p.unshift("message"),this.emit.apply(this,p),this},o.prototype.emit=function(p){if(b.hasOwnProperty(p))return g.apply(this,arguments),this;var _=d(arguments),E=l.EVENT;T(_)&&(E=l.BINARY_EVENT);var k={type:E,data:_};return typeof _[_.length-1]=="function"&&(w("emitting packet with ack id %d",this.ids),this.acks[this.ids]=_.pop(),k.id=this.ids++),this.connected?this.packet(k):this.sendBuffer.push(k),this},o.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},o.prototype.onopen=function(){w("transport is open - connecting"),this.nsp!="/"&&this.packet({type:l.CONNECT})},o.prototype.onclose=function(p){w("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},o.prototype.onpacket=function(p){if(p.nsp==this.nsp)switch(p.type){case l.CONNECT:this.onconnect();break;case l.EVENT:this.onevent(p);break;case l.BINARY_EVENT:this.onevent(p);break;case l.ACK:this.onack(p);break;case l.BINARY_ACK:this.onack(p);break;case l.DISCONNECT:this.ondisconnect();break;case l.ERROR:this.emit("error",p.data)}},o.prototype.onevent=function(p){var _=p.data||[];w("emitting event %j",_),p.id!=null&&(w("attaching ack callback to event"),_.push(this.ack(p.id))),this.connected?g.apply(this,_):this.receiveBuffer.push(_)},o.prototype.ack=function(p){var _=this,E=!1;return function(){if(!E){E=!0;var k=d(arguments);w("sending ack %j",k);var J=T(k)?l.BINARY_ACK:l.ACK;_.packet({type:J,id:p,data:k})}}},o.prototype.onack=function(p){w("calling ack %s with %j",p.id,p.data);var _=this.acks[p.id];_.apply(this,p.data),delete this.acks[p.id]},o.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},o.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)g.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},o.prototype.ondisconnect=function(){w("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},o.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},o.prototype.close=o.prototype.disconnect=function(){return this.connected&&(w("performing disconnect (%s)",this.nsp),this.packet({type:l.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":4,"component-bind":8,"component-emitter":9,debug:10,"has-binary":36,"socket.io-parser":44,"to-array":48}],6:[function(s,a){(function(r){function o(d,w){var A=d,w=w||r.location;return d==null&&(d=w.protocol+"//"+w.host),typeof d=="string"&&(d.charAt(0)=="/"&&(d=d.charAt(1)=="/"?w.protocol+d:w.hostname+d),/^(https?|wss?):\/\//.test(d)||(h("protocol-less url %s",d),d=typeof w<"u"?w.protocol+"//"+d:"https://"+d),h("parse %s",d),A=l(d)),A.port||(/^(http|ws)$/.test(A.protocol)?A.port="80":/^(http|ws)s$/.test(A.protocol)&&(A.port="443")),A.path=A.path||"/",A.id=A.protocol+"://"+A.host+":"+A.port,A.href=A.protocol+"://"+A.host+(w&&w.port==A.port?"":":"+A.port),A}var l=s("parseuri"),h=s("debug")("socket.io-client:url");a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{debug:10,parseuri:42}],7:[function(s,a){function r(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}a.exports=r,r.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),h=Math.floor(l*this.jitter*o);o=1&Math.floor(10*l)?o+h:o-h}return 0|Math.min(o,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(o){this.ms=o},r.prototype.setMax=function(o){this.max=o},r.prototype.setJitter=function(o){this.jitter=o}},{}],8:[function(s,a){var r=[].slice;a.exports=function(o,l){if(typeof l=="string"&&(l=o[l]),typeof l!="function")throw new Error("bind() requires a function");var h=r.call(arguments,2);return function(){return l.apply(o,h.concat(r.call(arguments)))}}},{}],9:[function(s,a){function r(l){return l?o(l):void 0}function o(l){for(var h in r.prototype)l[h]=r.prototype[h];return l}a.exports=r,r.prototype.on=r.prototype.addEventListener=function(l,h){return this._callbacks=this._callbacks||{},(this._callbacks[l]=this._callbacks[l]||[]).push(h),this},r.prototype.once=function(l,h){function d(){y.off(l,d),h.apply(this,arguments)}var y=this;return this._callbacks=this._callbacks||{},d.fn=h,this.on(l,d),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(l,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks[l];if(!d)return this;if(arguments.length==1)return delete this._callbacks[l],this;for(var y,A=0;A<d.length;A++)if(y=d[A],y===h||y.fn===h){d.splice(A,1);break}return this},r.prototype.emit=function(l){this._callbacks=this._callbacks||{};var h=[].slice.call(arguments,1),d=this._callbacks[l];if(d){d=d.slice(0);for(var y=0,A=d.length;A>y;++y)d[y].apply(this,h)}return this},r.prototype.listeners=function(l){return this._callbacks=this._callbacks||{},this._callbacks[l]||[]},r.prototype.hasListeners=function(l){return!!this.listeners(l).length}},{}],10:[function(s,a){function r(l){return r.enabled(l)?function(h){h=o(h);var d=new Date,y=d-(r[l]||d);r[l]=d,h=l+" "+h+" +"+r.humanize(y),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function o(l){return l instanceof Error?l.stack||l.message:l}a.exports=r,r.names=[],r.skips=[],r.enable=function(l){try{localStorage.debug=l}catch{}for(var h=(l||"").split(/[\s,]+/),d=h.length,y=0;d>y;y++)l=h[y].replace("*",".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.substr(1)+"$")):r.names.push(new RegExp("^"+l+"$"))},r.disable=function(){r.enable("")},r.humanize=function(l){var h=1e3,d=6e4,y=60*d;return l>=y?(l/y).toFixed(1)+"h":l>=d?(l/d).toFixed(1)+"m":l>=h?(l/h|0)+"s":l+"ms"},r.enabled=function(l){for(var h=0,d=r.skips.length;d>h;h++)if(r.skips[h].test(l))return!1;for(var h=0,d=r.names.length;d>h;h++)if(r.names[h].test(l))return!0;return!1};try{window.localStorage&&r.enable(localStorage.debug)}catch{}},{}],11:[function(s,a){a.exports=s("./lib/")},{"./lib/":12}],12:[function(s,a){a.exports=s("./socket"),a.exports.parser=s("engine.io-parser")},{"./socket":13,"engine.io-parser":25}],13:[function(s,a){(function(r){function o(p,_){if(!(this instanceof o))return new o(p,_);if(_=_||{},p&&typeof p=="object"&&(_=p,p=null),p&&(p=T(p),_.host=p.host,_.secure=p.protocol=="https"||p.protocol=="wss",_.port=p.port,p.query&&(_.query=p.query)),this.secure=_.secure!=null?_.secure:r.location&&location.protocol=="https:",_.host){var E=_.host.split(":");_.hostname=E.shift(),E.length?_.port=E.pop():_.port||(_.port=this.secure?"443":"80")}this.agent=_.agent||!1,this.hostname=_.hostname||(r.location?location.hostname:"localhost"),this.port=_.port||(r.location&&location.port?location.port:this.secure?443:80),this.query=_.query||{},typeof this.query=="string"&&(this.query=g.decode(this.query)),this.upgrade=_.upgrade!==!1,this.path=(_.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!_.forceJSONP,this.jsonp=_.jsonp!==!1,this.forceBase64=!!_.forceBase64,this.enablesXDR=!!_.enablesXDR,this.timestampParam=_.timestampParam||"t",this.timestampRequests=_.timestampRequests,this.transports=_.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=_.policyPort||843,this.rememberUpgrade=_.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=_.onlyBinaryUpgrades,this.pfx=_.pfx||null,this.key=_.key||null,this.passphrase=_.passphrase||null,this.cert=_.cert||null,this.ca=_.ca||null,this.ciphers=_.ciphers||null,this.rejectUnauthorized=_.rejectUnauthorized||null,this.open()}function l(p){var _={};for(var E in p)p.hasOwnProperty(E)&&(_[E]=p[E]);return _}var h=s("./transports"),d=s("component-emitter"),y=s("debug")("engine.io-client:socket"),A=s("indexof"),w=s("engine.io-parser"),T=s("parseuri"),b=s("parsejson"),g=s("parseqs");a.exports=o,o.priorWebsocketSuccess=!1,d(o.prototype),o.protocol=w.protocol,o.Socket=o,o.Transport=s("./transport"),o.transports=s("./transports"),o.parser=s("engine.io-parser"),o.prototype.createTransport=function(p){y('creating transport "%s"',p);var _=l(this.query);_.EIO=w.protocol,_.transport=p,this.id&&(_.sid=this.id);var E=new h[p]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:_,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return E},o.prototype.open=function(){var _;if(this.rememberUpgrade&&o.priorWebsocketSuccess&&this.transports.indexOf("websocket")!=-1)_="websocket";else{if(this.transports.length==0){var p=this;return void setTimeout(function(){p.emit("error","No transports available")},0)}_=this.transports[0]}this.readyState="opening";var _;try{_=this.createTransport(_)}catch{return this.transports.shift(),void this.open()}_.open(),this.setTransport(_)},o.prototype.setTransport=function(p){y("setting transport %s",p.name);var _=this;this.transport&&(y("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=p,p.on("drain",function(){_.onDrain()}).on("packet",function(E){_.onPacket(E)}).on("error",function(E){_.onError(E)}).on("close",function(){_.onClose("transport close")})},o.prototype.probe=function(p){function _(){if(P.onlyBinaryUpgrades){var q=!this.supportsBinary&&P.transport.supportsBinary;U=U||q}U||(y('probe transport "%s" opened',p),X.send([{type:"ping",data:"probe"}]),X.once("packet",function(B){if(!U)if(B.type=="pong"&&B.data=="probe"){if(y('probe transport "%s" pong',p),P.upgrading=!0,P.emit("upgrading",X),!X)return;o.priorWebsocketSuccess=X.name=="websocket",y('pausing current transport "%s"',P.transport.name),P.transport.pause(function(){U||P.readyState!="closed"&&(y("changing transport and sending upgrade packet"),ue(),P.setTransport(X),X.send([{type:"upgrade"}]),P.emit("upgrade",X),X=null,P.upgrading=!1,P.flush())})}else{y('probe transport "%s" failed',p);var F=new Error("probe error");F.transport=X.name,P.emit("upgradeError",F)}}))}function E(){U||(U=!0,ue(),X.close(),X=null)}function k(q){var B=new Error("probe error: "+q);B.transport=X.name,E(),y('probe transport "%s" failed because of error: %s',p,q),P.emit("upgradeError",B)}function J(){k("transport closed")}function se(){k("socket closed")}function Z(q){X&&q.name!=X.name&&(y('"%s" works - aborting "%s"',q.name,X.name),E())}function ue(){X.removeListener("open",_),X.removeListener("error",k),X.removeListener("close",J),P.removeListener("close",se),P.removeListener("upgrading",Z)}y('probing transport "%s"',p);var X=this.createTransport(p,{probe:1}),U=!1,P=this;o.priorWebsocketSuccess=!1,X.once("open",_),X.once("error",k),X.once("close",J),this.once("close",se),this.once("upgrading",Z),X.open()},o.prototype.onOpen=function(){if(y("socket open"),this.readyState="open",o.priorWebsocketSuccess=this.transport.name=="websocket",this.emit("open"),this.flush(),this.readyState=="open"&&this.upgrade&&this.transport.pause){y("starting upgrade probes");for(var p=0,_=this.upgrades.length;_>p;p++)this.probe(this.upgrades[p])}},o.prototype.onPacket=function(p){if(this.readyState=="opening"||this.readyState=="open")switch(y('socket receive: type "%s", data "%s"',p.type,p.data),this.emit("packet",p),this.emit("heartbeat"),p.type){case"open":this.onHandshake(b(p.data));break;case"pong":this.setPing();break;case"error":var _=new Error("server error");_.code=p.data,this.emit("error",_);break;case"message":this.emit("data",p.data),this.emit("message",p.data)}else y('packet received with socket readyState "%s"',this.readyState)},o.prototype.onHandshake=function(p){this.emit("handshake",p),this.id=p.sid,this.transport.query.sid=p.sid,this.upgrades=this.filterUpgrades(p.upgrades),this.pingInterval=p.pingInterval,this.pingTimeout=p.pingTimeout,this.onOpen(),this.readyState!="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},o.prototype.onHeartbeat=function(p){clearTimeout(this.pingTimeoutTimer);var _=this;_.pingTimeoutTimer=setTimeout(function(){_.readyState!="closed"&&_.onClose("ping timeout")},p||_.pingInterval+_.pingTimeout)},o.prototype.setPing=function(){var p=this;clearTimeout(p.pingIntervalTimer),p.pingIntervalTimer=setTimeout(function(){y("writing ping packet - expecting pong within %sms",p.pingTimeout),p.ping(),p.onHeartbeat(p.pingTimeout)},p.pingInterval)},o.prototype.ping=function(){this.sendPacket("ping")},o.prototype.onDrain=function(){for(var p=0;p<this.prevBufferLen;p++)this.callbackBuffer[p]&&this.callbackBuffer[p]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length==0?this.emit("drain"):this.flush()},o.prototype.flush=function(){this.readyState!="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(y("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},o.prototype.write=o.prototype.send=function(p,_){return this.sendPacket("message",p,_),this},o.prototype.sendPacket=function(p,_,E){if(this.readyState!="closing"&&this.readyState!="closed"){var k={type:p,data:_};this.emit("packetCreate",k),this.writeBuffer.push(k),this.callbackBuffer.push(E),this.flush()}},o.prototype.close=function(){function p(){k.onClose("forced close"),y("socket closing - telling transport to close"),k.transport.close()}function _(){k.removeListener("upgrade",_),k.removeListener("upgradeError",_),p()}function E(){k.once("upgrade",_),k.once("upgradeError",_)}if(this.readyState=="opening"||this.readyState=="open"){this.readyState="closing";var k=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?E():p()}):this.upgrading?E():p()}return this},o.prototype.onError=function(p){y("socket error %j",p),o.priorWebsocketSuccess=!1,this.emit("error",p),this.onClose("transport error",p)},o.prototype.onClose=function(p,_){if(this.readyState=="opening"||this.readyState=="open"||this.readyState=="closing"){y('socket close with reason: "%s"',p);var E=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){E.writeBuffer=[],E.callbackBuffer=[],E.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",p,_)}},o.prototype.filterUpgrades=function(p){for(var _=[],E=0,k=p.length;k>E;E++)~A(this.transports,p[E])&&_.push(p[E]);return _}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./transport":14,"./transports":15,"component-emitter":9,debug:22,"engine.io-parser":25,indexof:40,parsejson:32,parseqs:33,parseuri:34}],14:[function(s,a){function r(h){this.path=h.path,this.hostname=h.hostname,this.port=h.port,this.secure=h.secure,this.query=h.query,this.timestampParam=h.timestampParam,this.timestampRequests=h.timestampRequests,this.readyState="",this.agent=h.agent||!1,this.socket=h.socket,this.enablesXDR=h.enablesXDR,this.pfx=h.pfx,this.key=h.key,this.passphrase=h.passphrase,this.cert=h.cert,this.ca=h.ca,this.ciphers=h.ciphers,this.rejectUnauthorized=h.rejectUnauthorized}var o=s("engine.io-parser"),l=s("component-emitter");a.exports=r,l(r.prototype),r.timestamps=0,r.prototype.onError=function(h,d){var y=new Error(h);return y.type="TransportError",y.description=d,this.emit("error",y),this},r.prototype.open=function(){return(this.readyState=="closed"||this.readyState=="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState=="opening"||this.readyState=="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(h){if(this.readyState!="open")throw new Error("Transport not open");this.write(h)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(h){var d=o.decodePacket(h,this.socket.binaryType);this.onPacket(d)},r.prototype.onPacket=function(h){this.emit("packet",h)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":9,"engine.io-parser":25}],15:[function(s,a,r){(function(o){function l(w){var T,b=!1,g=!1,p=w.jsonp!==!1;if(o.location){var _=location.protocol=="https:",E=location.port;E||(E=_?443:80),b=w.hostname!=location.hostname||E!=w.port,g=w.secure!=_}if(w.xdomain=b,w.xscheme=g,T=new h(w),"open"in T&&!w.forceJSONP)return new d(w);if(!p)throw new Error("JSONP disabled");return new y(w)}var h=s("xmlhttprequest"),d=s("./polling-xhr"),y=s("./polling-jsonp"),A=s("./websocket");r.polling=l,r.websocket=A}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(s,a){(function(r){function o(){}function l(T){h.call(this,T),this.query=this.query||{},y||(r.___eio||(r.___eio=[]),y=r.___eio),this.index=y.length;var b=this;y.push(function(g){b.onData(g)}),this.query.j=this.index,r.document&&r.addEventListener&&r.addEventListener("beforeunload",function(){b.script&&(b.script.onerror=o)},!1)}var h=s("./polling"),d=s("component-inherit");a.exports=l;var y,A=/\n/g,w=/\\n/g;d(l,h),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),h.prototype.doClose.call(this)},l.prototype.doPoll=function(){var T=this,b=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),b.async=!0,b.src=this.uri(),b.onerror=function(_){T.onError("jsonp poll error",_)};var g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(b,g),this.script=b;var p=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);p&&setTimeout(function(){var _=document.createElement("iframe");document.body.appendChild(_),document.body.removeChild(_)},100)},l.prototype.doWrite=function(T,b){function g(){p(),b()}function p(){if(_.iframe)try{_.form.removeChild(_.iframe)}catch(ue){_.onError("jsonp polling iframe removal error",ue)}try{var Z='<iframe src="javascript:0" name="'+_.iframeId+'">';E=document.createElement(Z)}catch{E=document.createElement("iframe"),E.name=_.iframeId,E.src="javascript:0"}E.id=_.iframeId,_.form.appendChild(E),_.iframe=E}var _=this;if(!this.form){var E,k=document.createElement("form"),J=document.createElement("textarea"),se=this.iframeId="eio_iframe_"+this.index;k.className="socketio",k.style.position="absolute",k.style.top="-1000px",k.style.left="-1000px",k.target=se,k.method="POST",k.setAttribute("accept-charset","utf-8"),J.name="d",k.appendChild(J),document.body.appendChild(k),this.form=k,this.area=J}this.form.action=this.uri(),p(),T=T.replace(w,`\\
|
|
36
|
-
`),this.area.value=T.replace(A,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){_.iframe.readyState=="complete"&&g()}:this.iframe.onload=g}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling":18,"component-inherit":21}],17:[function(s,a){(function(r){function o(){}function l(g){if(A.call(this,g),r.location){var p=location.protocol=="https:",_=location.port;_||(_=p?443:80),this.xd=g.hostname!=r.location.hostname||_!=g.port,this.xs=g.secure!=p}}function h(g){this.method=g.method||"GET",this.uri=g.uri,this.xd=!!g.xd,this.xs=!!g.xs,this.async=g.async!==!1,this.data=g.data!=null?g.data:null,this.agent=g.agent,this.isBinary=g.isBinary,this.supportsBinary=g.supportsBinary,this.enablesXDR=g.enablesXDR,this.pfx=g.pfx,this.key=g.key,this.passphrase=g.passphrase,this.cert=g.cert,this.ca=g.ca,this.ciphers=g.ciphers,this.rejectUnauthorized=g.rejectUnauthorized,this.create()}function d(){for(var g in h.requests)h.requests.hasOwnProperty(g)&&h.requests[g].abort()}var y=s("xmlhttprequest"),A=s("./polling"),w=s("component-emitter"),T=s("component-inherit"),b=s("debug")("engine.io-client:polling-xhr");a.exports=l,a.exports.Request=h,T(l,A),l.prototype.supportsBinary=!0,l.prototype.request=function(g){return g=g||{},g.uri=this.uri(),g.xd=this.xd,g.xs=this.xs,g.agent=this.agent||!1,g.supportsBinary=this.supportsBinary,g.enablesXDR=this.enablesXDR,g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized,new h(g)},l.prototype.doWrite=function(g,p){var _=typeof g!="string"&&g!==void 0,E=this.request({method:"POST",data:g,isBinary:_}),k=this;E.on("success",p),E.on("error",function(J){k.onError("xhr post error",J)}),this.sendXhr=E},l.prototype.doPoll=function(){b("xhr poll");var g=this.request(),p=this;g.on("data",function(_){p.onData(_)}),g.on("error",function(_){p.onError("xhr poll error",_)}),this.pollXhr=g},w(h.prototype),h.prototype.create=function(){var g={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized;var p=this.xhr=new y(g),_=this;try{if(b("xhr open %s: %s",this.method,this.uri),p.open(this.method,this.uri,this.async),this.supportsBinary&&(p.responseType="arraybuffer"),this.method=="POST")try{this.isBinary?p.setRequestHeader("Content-type","application/octet-stream"):p.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}"withCredentials"in p&&(p.withCredentials=!0),this.hasXDR()?(p.onload=function(){_.onLoad()},p.onerror=function(){_.onError(p.responseText)}):p.onreadystatechange=function(){p.readyState==4&&(p.status==200||p.status==1223?_.onLoad():setTimeout(function(){_.onError(p.status)},0))},b("xhr data %s",this.data),p.send(this.data)}catch(E){return void setTimeout(function(){_.onError(E)},0)}r.document&&(this.index=h.requestsCount++,h.requests[this.index]=this)},h.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},h.prototype.onData=function(g){this.emit("data",g),this.onSuccess()},h.prototype.onError=function(g){this.emit("error",g),this.cleanup(!0)},h.prototype.cleanup=function(g){if(typeof this.xhr<"u"&&this.xhr!==null){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,g)try{this.xhr.abort()}catch{}r.document&&delete h.requests[this.index],this.xhr=null}},h.prototype.onLoad=function(){var g;try{var p;try{p=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch{}g=p==="application/octet-stream"?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(_){this.onError(_)}g!=null&&this.onData(g)},h.prototype.hasXDR=function(){return typeof r.XDomainRequest<"u"&&!this.xs&&this.enablesXDR},h.prototype.abort=function(){this.cleanup()},r.document&&(h.requestsCount=0,h.requests={},r.attachEvent?r.attachEvent("onunload",d):r.addEventListener&&r.addEventListener("beforeunload",d,!1))}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(s,a){function r(w){var T=w&&w.forceBase64;(!A||T)&&(this.supportsBinary=!1),o.call(this,w)}var o=s("../transport"),l=s("parseqs"),h=s("engine.io-parser"),d=s("component-inherit"),y=s("debug")("engine.io-client:polling");a.exports=r;var A=function(){var w=s("xmlhttprequest"),T=new w({xdomain:!1});return T.responseType!=null}();d(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(w){function T(){y("paused"),b.readyState="paused",w()}var b=this;if(this.readyState="pausing",this.polling||!this.writable){var g=0;this.polling&&(y("we are currently polling - waiting to pause"),g++,this.once("pollComplete",function(){y("pre-pause polling complete"),--g||T()})),this.writable||(y("we are currently writing - waiting to pause"),g++,this.once("drain",function(){y("pre-pause writing complete"),--g||T()}))}else T()},r.prototype.poll=function(){y("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(w){var T=this;y("polling got data %s",w);var b=function(g){return T.readyState=="opening"&&T.onOpen(),g.type=="close"?(T.onClose(),!1):void T.onPacket(g)};h.decodePayload(w,this.socket.binaryType,b),this.readyState!="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState=="open"?this.poll():y('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function w(){y("writing close packet"),T.write([{type:"close"}])}var T=this;this.readyState=="open"?(y("transport open - closing"),w()):(y("transport not open - deferring close"),this.once("open",w))},r.prototype.write=function(w){var b=this;this.writable=!1;var T=function(){b.writable=!0,b.emit("drain")},b=this;h.encodePayload(w,this.supportsBinary,function(g){b.doWrite(g,T)})},r.prototype.uri=function(){var w=this.query||{},T=this.secure?"https":"http",b="";return this.timestampRequests!==!1&&(w[this.timestampParam]=+new Date+"-"+o.timestamps++),this.supportsBinary||w.sid||(w.b64=1),w=l.encode(w),this.port&&(T=="https"&&this.port!=443||T=="http"&&this.port!=80)&&(b=":"+this.port),w.length&&(w="?"+w),T+"://"+this.hostname+b+this.path+w}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,xmlhttprequest:20}],19:[function(s,a){function r(w){var T=w&&w.forceBase64;T&&(this.supportsBinary=!1),o.call(this,w)}var o=s("../transport"),l=s("engine.io-parser"),h=s("parseqs"),d=s("component-inherit"),y=s("debug")("engine.io-client:websocket"),A=s("ws");a.exports=r,d(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var w=this.uri(),T=void 0,b={agent:this.agent};b.pfx=this.pfx,b.key=this.key,b.passphrase=this.passphrase,b.cert=this.cert,b.ca=this.ca,b.ciphers=this.ciphers,b.rejectUnauthorized=this.rejectUnauthorized,this.ws=new A(w,T,b),this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var w=this;this.ws.onopen=function(){w.onOpen()},this.ws.onclose=function(){w.onClose()},this.ws.onmessage=function(T){w.onData(T.data)},this.ws.onerror=function(T){w.onError("websocket error",T)}},typeof navigator<"u"&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(r.prototype.onData=function(w){var T=this;setTimeout(function(){o.prototype.onData.call(T,w)},0)}),r.prototype.write=function(w){function T(){b.writable=!0,b.emit("drain")}var b=this;this.writable=!1;for(var g=0,p=w.length;p>g;g++)l.encodePacket(w[g],this.supportsBinary,function(_){try{b.ws.send(_)}catch{y("websocket closed before onclose event")}});setTimeout(T,0)},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},r.prototype.uri=function(){var w=this.query||{},T=this.secure?"wss":"ws",b="";return this.port&&(T=="wss"&&this.port!=443||T=="ws"&&this.port!=80)&&(b=":"+this.port),this.timestampRequests&&(w[this.timestampParam]=+new Date),this.supportsBinary||(w.b64=1),w=h.encode(w),w.length&&(w="?"+w),T+"://"+this.hostname+b+this.path+w},r.prototype.check=function(){return!(!A||"__initialize"in A&&this.name===r.prototype.name)}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,ws:35}],20:[function(s,a){var r=s("has-cors");a.exports=function(o){var l=o.xdomain,h=o.xscheme,d=o.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!l||r))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!h&&d)return new XDomainRequest}catch{}if(!l)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}}},{"has-cors":38}],21:[function(s,a){a.exports=function(r,o){var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}},{}],22:[function(s,a,r){function o(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function l(){var A=arguments,w=this.useColors;if(A[0]=(w?"%c":"")+this.namespace+(w?" %c":" ")+A[0]+(w?"%c ":" ")+"+"+r.humanize(this.diff),!w)return A;var T="color: "+this.color;A=[A[0],T,"color: inherit"].concat(Array.prototype.slice.call(A,1));var b=0,g=0;return A[0].replace(/%[a-z%]/g,function(p){p!=="%%"&&(b++,p==="%c"&&(g=b))}),A.splice(g,0,T),A}function h(){return typeof console=="object"&&typeof console.log=="function"&&Function.prototype.apply.call(console.log,console,arguments)}function d(A){try{A==null?localStorage.removeItem("debug"):localStorage.debug=A}catch{}}function y(){var A;try{A=localStorage.debug}catch{}return A}r=a.exports=s("./debug"),r.log=h,r.formatArgs=l,r.save=d,r.load=y,r.useColors=o,r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(A){return JSON.stringify(A)},r.enable(y())},{"./debug":23}],23:[function(s,a,r){function o(){return r.colors[T++%r.colors.length]}function l(b){function g(){}function p(){var E=p,k=+new Date,J=k-(w||k);E.diff=J,E.prev=w,E.curr=k,w=k,E.useColors==null&&(E.useColors=r.useColors()),E.color==null&&E.useColors&&(E.color=o());var se=Array.prototype.slice.call(arguments);se[0]=r.coerce(se[0]),typeof se[0]!="string"&&(se=["%o"].concat(se));var Z=0;se[0]=se[0].replace(/%([a-z%])/g,function(X,U){if(X==="%%")return X;Z++;var P=r.formatters[U];if(typeof P=="function"){var q=se[Z];X=P.call(E,q),se.splice(Z,1),Z--}return X}),typeof r.formatArgs=="function"&&(se=r.formatArgs.apply(E,se));var ue=p.log||r.log||console.log.bind(console);ue.apply(E,se)}g.enabled=!1,p.enabled=!0;var _=r.enabled(b)?p:g;return _.namespace=b,_}function h(b){r.save(b);for(var g=(b||"").split(/[\s,]+/),p=g.length,_=0;p>_;_++)g[_]&&(b=g[_].replace(/\*/g,".*?"),b[0]==="-"?r.skips.push(new RegExp("^"+b.substr(1)+"$")):r.names.push(new RegExp("^"+b+"$")))}function d(){r.enable("")}function y(b){var g,p;for(g=0,p=r.skips.length;p>g;g++)if(r.skips[g].test(b))return!1;for(g=0,p=r.names.length;p>g;g++)if(r.names[g].test(b))return!0;return!1}function A(b){return b instanceof Error?b.stack||b.message:b}r=a.exports=l,r.coerce=A,r.disable=d,r.enable=h,r.enabled=y,r.humanize=s("ms"),r.names=[],r.skips=[],r.formatters={};var w,T=0},{ms:24}],24:[function(s,a){function r(b){var g=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(b);if(g){var p=parseFloat(g[1]),_=(g[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"y":return p*T;case"days":case"day":case"d":return p*w;case"hours":case"hour":case"h":return p*A;case"minutes":case"minute":case"m":return p*y;case"seconds":case"second":case"s":return p*d;case"ms":return p}}}function o(b){return b>=w?Math.round(b/w)+"d":b>=A?Math.round(b/A)+"h":b>=y?Math.round(b/y)+"m":b>=d?Math.round(b/d)+"s":b+"ms"}function l(b){return h(b,w,"day")||h(b,A,"hour")||h(b,y,"minute")||h(b,d,"second")||b+" ms"}function h(b,g,p){return g>b?void 0:1.5*g>b?Math.floor(b/g)+" "+p:Math.ceil(b/g)+" "+p+"s"}var d=1e3,y=60*d,A=60*y,w=24*A,T=365.25*w;a.exports=function(b,g){return g=g||{},typeof b=="string"?r(b):g.long?l(b):o(b)}},{}],25:[function(s,a,r){(function(o){function l(U,P){var q="b"+r.packets[U.type]+U.data.data;return P(q)}function h(U,P,q){if(!P)return r.encodeBase64Packet(U,q);var B=U.data,F=new Uint8Array(B),K=new Uint8Array(1+B.byteLength);K[0]=se[U.type];for(var j=0;j<F.length;j++)K[j+1]=F[j];return q(K.buffer)}function d(U,P,q){if(!P)return r.encodeBase64Packet(U,q);var B=new FileReader;return B.onload=function(){U.data=B.result,r.encodePacket(U,P,!0,q)},B.readAsArrayBuffer(U.data)}function y(U,P,q){if(!P)return r.encodeBase64Packet(U,q);if(J)return d(U,P,q);var B=new Uint8Array(1);B[0]=se[U.type];var F=new X([B.buffer,U.data]);return q(F)}function A(U,P,q){for(var B=new Array(U.length),F=p(U.length,q),K=function(V,N,be){P(N,function(xe,Ce){B[V]=Ce,be(xe,B)})},j=0;j<U.length;j++)K(j,U[j],F)}var w=s("./keys"),T=s("has-binary"),b=s("arraybuffer.slice"),g=s("base64-arraybuffer"),p=s("after"),_=s("utf8"),E=navigator.userAgent.match(/Android/i),k=/PhantomJS/i.test(navigator.userAgent),J=E||k;r.protocol=3;var se=r.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},Z=w(se),ue={type:"error",data:"parser error"},X=s("blob");r.encodePacket=function(U,P,q,B){typeof P=="function"&&(B=P,P=!1),typeof q=="function"&&(B=q,q=null);var F=U.data===void 0?void 0:U.data.buffer||U.data;if(o.ArrayBuffer&&F instanceof ArrayBuffer)return h(U,P,B);if(X&&F instanceof o.Blob)return y(U,P,B);if(F&&F.base64)return l(U,B);var K=se[U.type];return U.data!==void 0&&(K+=q?_.encode(String(U.data)):String(U.data)),B(""+K)},r.encodeBase64Packet=function(U,P){var q="b"+r.packets[U.type];if(X&&U.data instanceof X){var B=new FileReader;return B.onload=function(){var N=B.result.split(",")[1];P(q+N)},B.readAsDataURL(U.data)}var F;try{F=String.fromCharCode.apply(null,new Uint8Array(U.data))}catch{for(var K=new Uint8Array(U.data),j=new Array(K.length),V=0;V<K.length;V++)j[V]=K[V];F=String.fromCharCode.apply(null,j)}return q+=o.btoa(F),P(q)},r.decodePacket=function(U,P,q){if(typeof U=="string"||U===void 0){if(U.charAt(0)=="b")return r.decodeBase64Packet(U.substr(1),P);if(q)try{U=_.decode(U)}catch{return ue}var F=U.charAt(0);return Number(F)==F&&Z[F]?U.length>1?{type:Z[F],data:U.substring(1)}:{type:Z[F]}:ue}var B=new Uint8Array(U),F=B[0],K=b(U,1);return X&&P==="blob"&&(K=new X([K])),{type:Z[F],data:K}},r.decodeBase64Packet=function(U,P){var q=Z[U.charAt(0)];if(!o.ArrayBuffer)return{type:q,data:{base64:!0,data:U.substr(1)}};var B=g.decode(U.substr(1));return P==="blob"&&X&&(B=new X([B])),{type:q,data:B}},r.encodePayload=function(U,P,q){function B(j){return j.length+":"+j}function F(j,V){r.encodePacket(j,K?P:!1,!0,function(N){V(null,B(N))})}typeof P=="function"&&(q=P,P=null);var K=T(U);return P&&K?X&&!J?r.encodePayloadAsBlob(U,q):r.encodePayloadAsArrayBuffer(U,q):U.length?void A(U,F,function(j,V){return q(V.join(""))}):q("0:")},r.decodePayload=function(U,P,q){if(typeof U!="string")return r.decodePayloadAsBinary(U,P,q);typeof P=="function"&&(q=P,P=null);var B;if(U=="")return q(ue,0,1);for(var F,K,j="",V=0,N=U.length;N>V;V++){var be=U.charAt(V);if(be!=":")j+=be;else{if(j==""||j!=(F=Number(j))||(K=U.substr(V+1,F),j!=K.length))return q(ue,0,1);if(K.length){if(B=r.decodePacket(K,P,!0),ue.type==B.type&&ue.data==B.data)return q(ue,0,1);var xe=q(B,V+F,N);if(xe===!1)return}V+=F,j=""}}return j!=""?q(ue,0,1):void 0},r.encodePayloadAsArrayBuffer=function(U,P){function q(B,F){r.encodePacket(B,!0,!0,function(K){return F(null,K)})}return U.length?void A(U,q,function(B,F){var K=F.reduce(function(N,be){var xe;return xe=typeof be=="string"?be.length:be.byteLength,N+xe.toString().length+xe+2},0),j=new Uint8Array(K),V=0;return F.forEach(function(N){var be=typeof N=="string",xe=N;if(be){for(var Ce=new Uint8Array(N.length),ae=0;ae<N.length;ae++)Ce[ae]=N.charCodeAt(ae);xe=Ce.buffer}j[V++]=be?0:1;for(var Pe=xe.byteLength.toString(),ae=0;ae<Pe.length;ae++)j[V++]=parseInt(Pe[ae]);j[V++]=255;for(var Ce=new Uint8Array(xe),ae=0;ae<Ce.length;ae++)j[V++]=Ce[ae]}),P(j.buffer)}):P(new ArrayBuffer(0))},r.encodePayloadAsBlob=function(U,P){function q(B,F){r.encodePacket(B,!0,!0,function(K){var j=new Uint8Array(1);if(j[0]=1,typeof K=="string"){for(var V=new Uint8Array(K.length),N=0;N<K.length;N++)V[N]=K.charCodeAt(N);K=V.buffer,j[0]=0}for(var be=K instanceof ArrayBuffer?K.byteLength:K.size,xe=be.toString(),Ce=new Uint8Array(xe.length+1),N=0;N<xe.length;N++)Ce[N]=parseInt(xe[N]);if(Ce[xe.length]=255,X){var ae=new X([j.buffer,Ce.buffer,K]);F(null,ae)}})}A(U,q,function(B,F){return P(new X(F))})},r.decodePayloadAsBinary=function(U,P,q){typeof P=="function"&&(q=P,P=null);for(var B=U,F=[],K=!1;B.byteLength>0;){for(var j=new Uint8Array(B),V=j[0]===0,N="",be=1;j[be]!=255;be++){if(N.length>310){K=!0;break}N+=j[be]}if(K)return q(ue,0,1);B=b(B,2+N.length),N=parseInt(N);var xe=b(B,0,N);if(V)try{xe=String.fromCharCode.apply(null,new Uint8Array(xe))}catch{var Ce=new Uint8Array(xe);xe="";for(var be=0;be<Ce.length;be++)xe+=String.fromCharCode(Ce[be])}F.push(xe),B=b(B,N)}var ae=F.length;F.forEach(function(Pe,mt){q(r.decodePacket(Pe,P,!0),mt,ae)})}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./keys":26,after:27,"arraybuffer.slice":28,"base64-arraybuffer":29,blob:30,"has-binary":36,utf8:31}],26:[function(s,a){a.exports=Object.keys||function(r){var o=[],l=Object.prototype.hasOwnProperty;for(var h in r)l.call(r,h)&&o.push(h);return o}},{}],27:[function(s,a){function r(l,h,d){function y(w,T){if(y.count<=0)throw new Error("after called too many times");--y.count,w?(A=!0,h(w),h=d):y.count!==0||A||h(null,T)}var A=!1;return d=d||o,y.count=l,l===0?h():y}function o(){}a.exports=r},{}],28:[function(s,a){a.exports=function(r,o,l){var h=r.byteLength;if(o=o||0,l=l||h,r.slice)return r.slice(o,l);if(0>o&&(o+=h),0>l&&(l+=h),l>h&&(l=h),o>=h||o>=l||h===0)return new ArrayBuffer(0);for(var d=new Uint8Array(r),y=new Uint8Array(l-o),A=o,w=0;l>A;A++,w++)y[w]=d[A];return y.buffer}},{}],29:[function(s,a,r){(function(o){r.encode=function(l){var h,d=new Uint8Array(l),y=d.length,A="";for(h=0;y>h;h+=3)A+=o[d[h]>>2],A+=o[(3&d[h])<<4|d[h+1]>>4],A+=o[(15&d[h+1])<<2|d[h+2]>>6],A+=o[63&d[h+2]];return y%3===2?A=A.substring(0,A.length-1)+"=":y%3===1&&(A=A.substring(0,A.length-2)+"=="),A},r.decode=function(l){var h,d,y,A,w,T=.75*l.length,b=l.length,g=0;l[l.length-1]==="="&&(T--,l[l.length-2]==="="&&T--);var p=new ArrayBuffer(T),_=new Uint8Array(p);for(h=0;b>h;h+=4)d=o.indexOf(l[h]),y=o.indexOf(l[h+1]),A=o.indexOf(l[h+2]),w=o.indexOf(l[h+3]),_[g++]=d<<2|y>>4,_[g++]=(15&y)<<4|A>>2,_[g++]=(3&A)<<6|63&w;return p}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(s,a){(function(r){function o(T){for(var b=0;b<T.length;b++){var g=T[b];if(g.buffer instanceof ArrayBuffer){var p=g.buffer;if(g.byteLength!==p.byteLength){var _=new Uint8Array(g.byteLength);_.set(new Uint8Array(p,g.byteOffset,g.byteLength)),p=_.buffer}T[b]=p}}}function l(T,b){b=b||{};var g=new d;o(T);for(var p=0;p<T.length;p++)g.append(T[p]);return b.type?g.getBlob(b.type):g.getBlob()}function h(T,b){return o(T),new Blob(T,b||{})}var d=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,y=function(){try{var T=new Blob(["hi"]);return T.size===2}catch{return!1}}(),A=y&&function(){try{var T=new Blob([new Uint8Array([1,2])]);return T.size===2}catch{return!1}}(),w=d&&d.prototype.append&&d.prototype.getBlob;a.exports=function(){return y?A?r.Blob:h:w?l:void 0}()}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],31:[function(s,a,r){(function(o){(function(l){function h(B){for(var F,K,j=[],V=0,N=B.length;N>V;)F=B.charCodeAt(V++),F>=55296&&56319>=F&&N>V?(K=B.charCodeAt(V++),(64512&K)==56320?j.push(((1023&F)<<10)+(1023&K)+65536):(j.push(F),V--)):j.push(F);return j}function d(B){for(var F,K=B.length,j=-1,V="";++j<K;)F=B[j],F>65535&&(F-=65536,V+=ue(F>>>10&1023|55296),F=56320|1023&F),V+=ue(F);return V}function y(B){if(B>=55296&&57343>=B)throw Error("Lone surrogate U+"+B.toString(16).toUpperCase()+" is not a scalar value")}function A(B,F){return ue(B>>F&63|128)}function w(B){if(!(4294967168&B))return ue(B);var F="";return 4294965248&B?4294901760&B?!(4292870144&B)&&(F=ue(B>>18&7|240),F+=A(B,12),F+=A(B,6)):(y(B),F=ue(B>>12&15|224),F+=A(B,6)):F=ue(B>>6&31|192),F+=ue(63&B|128)}function T(B){for(var F,K=h(B),j=K.length,V=-1,N="";++V<j;)F=K[V],N+=w(F);return N}function b(){if(Z>=se)throw Error("Invalid byte index");var B=255&J[Z];if(Z++,(192&B)==128)return 63&B;throw Error("Invalid continuation byte")}function g(){var B,F,K,j,V;if(Z>se)throw Error("Invalid byte index");if(Z==se)return!1;if(B=255&J[Z],Z++,(128&B)==0)return B;if((224&B)==192){var F=b();if(V=(31&B)<<6|F,V>=128)return V;throw Error("Invalid continuation byte")}if((240&B)==224){if(F=b(),K=b(),V=(15&B)<<12|F<<6|K,V>=2048)return y(V),V;throw Error("Invalid continuation byte")}if((248&B)==240&&(F=b(),K=b(),j=b(),V=(15&B)<<18|F<<12|K<<6|j,V>=65536&&1114111>=V))return V;throw Error("Invalid UTF-8 detected")}function p(B){J=h(B),se=J.length,Z=0;for(var F,K=[];(F=g())!==!1;)K.push(F);return d(K)}var _=typeof r=="object"&&r,E=typeof a=="object"&&a&&a.exports==_&&a,k=typeof o=="object"&&o;(k.global===k||k.window===k)&&(l=k);var J,se,Z,ue=String.fromCharCode,X={version:"2.0.0",encode:T,decode:p};if(_&&!_.nodeType)if(E)E.exports=X;else{var U={},P=U.hasOwnProperty;for(var q in X)P.call(X,q)&&(_[q]=X[q])}else l.utf8=X})(this)}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],32:[function(s,a){(function(r){var o=/^[\],:{}\s]*$/,l=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,h=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:\s*\[)+/g,y=/^\s+/,A=/\s+$/;a.exports=function(w){return typeof w=="string"&&w?(w=w.replace(y,"").replace(A,""),r.JSON&&JSON.parse?JSON.parse(w):o.test(w.replace(l,"@").replace(h,"]").replace(d,""))?new Function("return "+w)():void 0):null}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],33:[function(s,a,r){r.encode=function(o){var l="";for(var h in o)o.hasOwnProperty(h)&&(l.length&&(l+="&"),l+=encodeURIComponent(h)+"="+encodeURIComponent(o[h]));return l},r.decode=function(o){for(var l={},h=o.split("&"),d=0,y=h.length;y>d;d++){var A=h[d].split("=");l[decodeURIComponent(A[0])]=decodeURIComponent(A[1])}return l}},{}],34:[function(s,a){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];a.exports=function(l){var h=l,d=l.indexOf("["),y=l.indexOf("]");d!=-1&&y!=-1&&(l=l.substring(0,d)+l.substring(d,y).replace(/:/g,";")+l.substring(y,l.length));for(var A=r.exec(l||""),w={},T=14;T--;)w[o[T]]=A[T]||"";return d!=-1&&y!=-1&&(w.source=h,w.host=w.host.substring(1,w.host.length-1).replace(/;/g,":"),w.authority=w.authority.replace("[","").replace("]","").replace(/;/g,":"),w.ipv6uri=!0),w}},{}],35:[function(s,a){function r(h,d){return d?new l(h,d):new l(h)}var o=function(){return self}(),l=o.WebSocket||o.MozWebSocket;a.exports=l?r:null,l&&(r.prototype=l.prototype)},{}],36:[function(s,a){(function(r){function o(h){function d(y){if(!y)return!1;if(r.Buffer&&r.Buffer.isBuffer(y)||r.ArrayBuffer&&y instanceof ArrayBuffer||r.Blob&&y instanceof Blob||r.File&&y instanceof File)return!0;if(l(y)){for(var A=0;A<y.length;A++)if(d(y[A]))return!0}else if(y&&typeof y=="object"){y.toJSON&&(y=y.toJSON());for(var w in y)if(Object.prototype.hasOwnProperty.call(y,w)&&d(y[w]))return!0}return!1}return d(h)}var l=s("isarray");a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{isarray:37}],37:[function(s,a){a.exports=Array.isArray||function(r){return Object.prototype.toString.call(r)=="[object Array]"}},{}],38:[function(s,a){var r=s("global");try{a.exports="XMLHttpRequest"in r&&"withCredentials"in new r.XMLHttpRequest}catch{a.exports=!1}},{global:39}],39:[function(s,a){a.exports=function(){return this}()},{}],40:[function(s,a){var r=[].indexOf;a.exports=function(o,l){if(r)return o.indexOf(l);for(var h=0;h<o.length;++h)if(o[h]===l)return h;return-1}},{}],41:[function(s,a,r){var o=Object.prototype.hasOwnProperty;r.keys=Object.keys||function(l){var h=[];for(var d in l)o.call(l,d)&&h.push(d);return h},r.values=function(l){var h=[];for(var d in l)o.call(l,d)&&h.push(l[d]);return h},r.merge=function(l,h){for(var d in h)o.call(h,d)&&(l[d]=h[d]);return l},r.length=function(l){return r.keys(l).length},r.isEmpty=function(l){return r.length(l)==0}},{}],42:[function(s,a){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];a.exports=function(l){for(var h=r.exec(l||""),d={},y=14;y--;)d[o[y]]=h[y]||"";return d}},{}],43:[function(s,a,r){(function(o){var l=s("isarray"),h=s("./is-buffer");r.deconstructPacket=function(d){function y(b){if(!b)return b;if(h(b)){var g={_placeholder:!0,num:A.length};return A.push(b),g}if(l(b)){for(var p=new Array(b.length),_=0;_<b.length;_++)p[_]=y(b[_]);return p}if(typeof b=="object"&&!(b instanceof Date)){var p={};for(var E in b)p[E]=y(b[E]);return p}return b}var A=[],w=d.data,T=d;return T.data=y(w),T.attachments=A.length,{packet:T,buffers:A}},r.reconstructPacket=function(d,y){function A(w){if(w&&w._placeholder){var T=y[w.num];return T}if(l(w)){for(var b=0;b<w.length;b++)w[b]=A(w[b]);return w}if(w&&typeof w=="object"){for(var g in w)w[g]=A(w[g]);return w}return w}return d.data=A(d.data),d.attachments=void 0,d},r.removeBlobs=function(d,y){function A(b,g,p){if(!b)return b;if(o.Blob&&b instanceof Blob||o.File&&b instanceof File){w++;var _=new FileReader;_.onload=function(){p?p[g]=this.result:T=this.result,--w||y(T)},_.readAsArrayBuffer(b)}else if(l(b))for(var E=0;E<b.length;E++)A(b[E],E,b);else if(b&&typeof b=="object"&&!h(b))for(var k in b)A(b[k],k,b)}var w=0,T=d;A(T),w||y(T)}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./is-buffer":45,isarray:46}],44:[function(s,a,r){function o(){}function l(E){var k="",J=!1;return k+=E.type,(r.BINARY_EVENT==E.type||r.BINARY_ACK==E.type)&&(k+=E.attachments,k+="-"),E.nsp&&E.nsp!="/"&&(J=!0,k+=E.nsp),E.id!=null&&(J&&(k+=",",J=!1),k+=E.id),E.data!=null&&(J&&(k+=","),k+=b.stringify(E.data)),T("encoded %j as %s",E,k),k}function h(E,k){function J(se){var Z=p.deconstructPacket(se),ue=l(Z.packet),X=Z.buffers;X.unshift(ue),k(X)}p.removeBlobs(E,J)}function d(){this.reconstructor=null}function y(E){var k={},J=0;if(k.type=Number(E.charAt(0)),r.types[k.type]==null)return w();if(r.BINARY_EVENT==k.type||r.BINARY_ACK==k.type){for(var se="";E.charAt(++J)!="-"&&(se+=E.charAt(J),J!=E.length););if(se!=Number(se)||E.charAt(J)!="-")throw new Error("Illegal attachments");k.attachments=Number(se)}if(E.charAt(J+1)=="/")for(k.nsp="";++J;){var Z=E.charAt(J);if(Z==","||(k.nsp+=Z,J==E.length))break}else k.nsp="/";var ue=E.charAt(J+1);if(ue!==""&&Number(ue)==ue){for(k.id="";++J;){var Z=E.charAt(J);if(Z==null||Number(Z)!=Z){--J;break}if(k.id+=E.charAt(J),J==E.length)break}k.id=Number(k.id)}if(E.charAt(++J))try{k.data=b.parse(E.substr(J))}catch{return w()}return T("decoded %s as %j",E,k),k}function A(E){this.reconPack=E,this.buffers=[]}function w(){return{type:r.ERROR,data:"parser error"}}var T=s("debug")("socket.io-parser"),b=s("json3"),g=(s("isarray"),s("component-emitter")),p=s("./binary"),_=s("./is-buffer");r.protocol=4,r.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],r.CONNECT=0,r.DISCONNECT=1,r.EVENT=2,r.ACK=3,r.ERROR=4,r.BINARY_EVENT=5,r.BINARY_ACK=6,r.Encoder=o,r.Decoder=d,o.prototype.encode=function(E,k){if(T("encoding packet %j",E),r.BINARY_EVENT==E.type||r.BINARY_ACK==E.type)h(E,k);else{var J=l(E);k([J])}},g(d.prototype),d.prototype.add=function(E){var k;if(typeof E=="string")k=y(E),r.BINARY_EVENT==k.type||r.BINARY_ACK==k.type?(this.reconstructor=new A(k),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",k)):this.emit("decoded",k);else{if(!_(E)&&!E.base64)throw new Error("Unknown type: "+E);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");k=this.reconstructor.takeBinaryData(E),k&&(this.reconstructor=null,this.emit("decoded",k))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},A.prototype.takeBinaryData=function(E){if(this.buffers.push(E),this.buffers.length==this.reconPack.attachments){var k=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),k}return null},A.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":43,"./is-buffer":45,"component-emitter":9,debug:10,isarray:46,json3:47}],45:[function(s,a){(function(r){function o(l){return r.Buffer&&r.Buffer.isBuffer(l)||r.ArrayBuffer&&l instanceof ArrayBuffer}a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],46:[function(s,a){a.exports=s(37)},{}],47:[function(s,a,r){(function(o){function l(H){if(l[H]!==y)return l[H];var $;if(H=="bug-string-char-index")$="a"[0]!="a";else if(H=="json")$=l("json-stringify")&&l("json-parse");else{var M,te='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(H=="json-stringify"){var D=T.stringify,Q=typeof D=="function"&&b;if(Q){(M=function(){return 1}).toJSON=M;try{Q=D(0)==="0"&&D(new Number)==="0"&&D(new String)=='""'&&D(A)===y&&D(y)===y&&D()===y&&D(M)==="1"&&D([M])=="[1]"&&D([y])=="[null]"&&D(null)=="null"&&D([y,A,null])=="[null,null,null]"&&D({a:[M,!0,!1,null,`\0\b
|
|
37
|
-
\f\r `]})==te&&
|
|
35
|
+
}`;var he=mu(function(){return ye(c,Y+"return "+L).apply(r,v)});if(he.source=L,Fi(he))throw he;return he}function fd(e){return me(e).toLowerCase()}function cd(e){return me(e).toUpperCase()}function ld(e,t,n){if(e=me(e),e&&(n||t===r))return Ro(e);if(!e||!(t=nt(t)))return e;var i=gt(e),u=gt(t),c=ko(i,u),v=Oo(i,u)+1;return Xt(i,c,v).join("")}function hd(e,t,n){if(e=me(e),e&&(n||t===r))return e.slice(0,Bo(e)+1);if(!e||!(t=nt(t)))return e;var i=gt(e),u=Oo(i,gt(t))+1;return Xt(i,0,u).join("")}function pd(e,t,n){if(e=me(e),e&&(n||t===r))return e.replace(Fr,"");if(!e||!(t=nt(t)))return e;var i=gt(e),u=ko(i,gt(t));return Xt(i,u).join("")}function dd(e,t){var n=F,i=K;if(ke(t)){var u="separator"in t?t.separator:u;n="length"in t?le(t.length):n,i="omission"in t?nt(t.omission):i}e=me(e);var c=e.length;if(on(e)){var v=gt(e);c=v.length}if(n>=c)return e;var m=n-sn(i);if(m<1)return i;var A=v?Xt(v,0,m).join(""):e.slice(0,m);if(u===r)return A+i;if(v&&(m+=A.length-m),Di(u)){if(e.slice(m).search(u)){var O,I=A;for(u.global||(u=Qr(u.source,me(Yi.exec(u))+"g")),u.lastIndex=0;O=u.exec(I);)var L=O.index;A=A.slice(0,L===r?m:L)}}else if(e.indexOf(nt(u),m)!=m){var W=A.lastIndexOf(u);W>-1&&(A=A.slice(0,W))}return A+i}function gd(e){return e=me(e),e&&Su.test(e)?e.replace(Ki,Xa):e}var vd=pn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Pi=ws("toUpperCase");function _u(e,t,n){return e=me(e),t=n?r:t,t===r?Ma(e)?Ka(e):ka(e):e.match(t)||[]}var mu=pe(function(e,t){try{return et(e,r,t)}catch(n){return Fi(n)?n:new fe(n)}}),yd=Ot(function(e,t){return ut(t,function(n){n=At(n),Rt(e,n,Li(e[n],e))}),e});function _d(e){var t=e==null?0:e.length,n=ne();return e=t?Re(e,function(i){if(typeof i[1]!="function")throw new at(d);return[n(i[0]),i[1]]}):[],pe(function(i){for(var u=-1;++u<t;){var c=e[u];if(et(c[0],this,i))return et(c[1],this,i)}})}function md(e){return Gf(ct(e,b))}function Hi(e){return function(){return e}}function wd(e,t){return e==null||e!==e?t:e}var bd=xs(),xd=xs(!0);function Ze(e){return e}function Wi(e){return Qo(typeof e=="function"?e:ct(e,b))}function Ed(e){return es(ct(e,b))}function Ad(e,t){return ts(e,ct(t,b))}var Sd=pe(function(e,t){return function(n){return kn(n,e,t)}}),Cd=pe(function(e,t){return function(n){return kn(e,n,t)}});function qi(e,t,n){var i=De(t),u=or(t,i);n==null&&!(ke(t)&&(u.length||!i.length))&&(n=t,t=e,e=this,u=or(t,De(t)));var c=!(ke(n)&&"chain"in n)||!!n.chain,v=Bt(e);return ut(u,function(m){var A=t[m];e[m]=A,v&&(e.prototype[m]=function(){var O=this.__chain__;if(c||O){var I=e(this.__wrapped__),L=I.__actions__=Je(this.__actions__);return L.push({func:A,args:arguments,thisArg:e}),I.__chain__=O,I}return A.apply(e,Ut([this.value()],arguments))})}),e}function Td(){return Ue._===this&&(Ue._=Qa),this}function Xi(){}function Rd(e){return e=le(e),pe(function(t){return ns(t,e)})}var kd=wi(Re),Od=wi(Eo),Id=wi(zr);function wu(e){return Ti(e)?Kr(At(e)):uc(e)}function Bd(e){return function(t){return e==null?r:Vt(e,t)}}var Ld=As(),Nd=As(!0);function Gi(){return[]}function zi(){return!1}function Fd(){return{}}function Dd(){return""}function Ud(){return!0}function Md(e,t){if(e=le(e),e<1||e>ae)return[];var n=Qe,i=We(e,Qe);t=ne(t),e-=Qe;for(var u=Yr(i,t);++n<e;)t(n);return u}function Pd(e){return ce(e)?Re(e,At):rt(e)?[e]:Je(Hs(me(e)))}function Hd(e){var t=++Va;return me(e)+t}var Wd=lr(function(e,t){return e+t},0),qd=bi("ceil"),Xd=lr(function(e,t){return e/t},1),Gd=bi("floor");function zd(e){return e&&e.length?ir(e,Ze,si):r}function Kd(e,t){return e&&e.length?ir(e,ne(t,2),si):r}function $d(e){return Co(e,Ze)}function Jd(e,t){return Co(e,ne(t,2))}function Yd(e){return e&&e.length?ir(e,Ze,ci):r}function Vd(e,t){return e&&e.length?ir(e,ne(t,2),ci):r}var Zd=lr(function(e,t){return e*t},1),Qd=bi("round"),jd=lr(function(e,t){return e-t},0);function e0(e){return e&&e.length?Jr(e,Ze):0}function t0(e,t){return e&&e.length?Jr(e,ne(t,2)):0}return f.after=Eh,f.ary=Zs,f.assign=cp,f.assignIn=lu,f.assignInWith=Ar,f.assignWith=lp,f.at=hp,f.before=Qs,f.bind=Li,f.bindAll=yd,f.bindKey=js,f.castArray=Fh,f.chain=Js,f.chunk=Gc,f.compact=zc,f.concat=Kc,f.cond=_d,f.conforms=md,f.constant=Hi,f.countBy=eh,f.create=pp,f.curry=eu,f.curryRight=tu,f.debounce=nu,f.defaults=dp,f.defaultsDeep=gp,f.defer=Ah,f.delay=Sh,f.difference=$c,f.differenceBy=Jc,f.differenceWith=Yc,f.drop=Vc,f.dropRight=Zc,f.dropRightWhile=Qc,f.dropWhile=jc,f.fill=el,f.filter=nh,f.flatMap=oh,f.flatMapDeep=sh,f.flatMapDepth=uh,f.flatten=Gs,f.flattenDeep=tl,f.flattenDepth=nl,f.flip=Ch,f.flow=bd,f.flowRight=xd,f.fromPairs=rl,f.functions=xp,f.functionsIn=Ep,f.groupBy=ah,f.initial=ol,f.intersection=sl,f.intersectionBy=ul,f.intersectionWith=al,f.invert=Sp,f.invertBy=Cp,f.invokeMap=ch,f.iteratee=Wi,f.keyBy=lh,f.keys=De,f.keysIn=Ve,f.map=_r,f.mapKeys=Rp,f.mapValues=kp,f.matches=Ed,f.matchesProperty=Ad,f.memoize=wr,f.merge=Op,f.mergeWith=hu,f.method=Sd,f.methodOf=Cd,f.mixin=qi,f.negate=br,f.nthArg=Rd,f.omit=Ip,f.omitBy=Bp,f.once=Th,f.orderBy=hh,f.over=kd,f.overArgs=Rh,f.overEvery=Od,f.overSome=Id,f.partial=Ni,f.partialRight=ru,f.partition=ph,f.pick=Lp,f.pickBy=pu,f.property=wu,f.propertyOf=Bd,f.pull=hl,f.pullAll=Ks,f.pullAllBy=pl,f.pullAllWith=dl,f.pullAt=gl,f.range=Ld,f.rangeRight=Nd,f.rearg=kh,f.reject=vh,f.remove=vl,f.rest=Oh,f.reverse=Ii,f.sampleSize=_h,f.set=Fp,f.setWith=Dp,f.shuffle=mh,f.slice=yl,f.sortBy=xh,f.sortedUniq=Al,f.sortedUniqBy=Sl,f.split=od,f.spread=Ih,f.tail=Cl,f.take=Tl,f.takeRight=Rl,f.takeRightWhile=kl,f.takeWhile=Ol,f.tap=zl,f.throttle=Bh,f.thru=yr,f.toArray=au,f.toPairs=du,f.toPairsIn=gu,f.toPath=Pd,f.toPlainObject=cu,f.transform=Up,f.unary=Lh,f.union=Il,f.unionBy=Bl,f.unionWith=Ll,f.uniq=Nl,f.uniqBy=Fl,f.uniqWith=Dl,f.unset=Mp,f.unzip=Bi,f.unzipWith=$s,f.update=Pp,f.updateWith=Hp,f.values=vn,f.valuesIn=Wp,f.without=Ul,f.words=_u,f.wrap=Nh,f.xor=Ml,f.xorBy=Pl,f.xorWith=Hl,f.zip=Wl,f.zipObject=ql,f.zipObjectDeep=Xl,f.zipWith=Gl,f.entries=du,f.entriesIn=gu,f.extend=lu,f.extendWith=Ar,qi(f,f),f.add=Wd,f.attempt=mu,f.camelCase=zp,f.capitalize=vu,f.ceil=qd,f.clamp=qp,f.clone=Dh,f.cloneDeep=Mh,f.cloneDeepWith=Ph,f.cloneWith=Uh,f.conformsTo=Hh,f.deburr=yu,f.defaultTo=wd,f.divide=Xd,f.endsWith=Kp,f.eq=yt,f.escape=$p,f.escapeRegExp=Jp,f.every=th,f.find=rh,f.findIndex=qs,f.findKey=vp,f.findLast=ih,f.findLastIndex=Xs,f.findLastKey=yp,f.floor=Gd,f.forEach=Ys,f.forEachRight=Vs,f.forIn=_p,f.forInRight=mp,f.forOwn=wp,f.forOwnRight=bp,f.get=Ui,f.gt=Wh,f.gte=qh,f.has=Ap,f.hasIn=Mi,f.head=zs,f.identity=Ze,f.includes=fh,f.indexOf=il,f.inRange=Xp,f.invoke=Tp,f.isArguments=jt,f.isArray=ce,f.isArrayBuffer=Xh,f.isArrayLike=Ye,f.isArrayLikeObject=Ie,f.isBoolean=Gh,f.isBuffer=Gt,f.isDate=zh,f.isElement=Kh,f.isEmpty=$h,f.isEqual=Jh,f.isEqualWith=Yh,f.isError=Fi,f.isFinite=Vh,f.isFunction=Bt,f.isInteger=iu,f.isLength=xr,f.isMap=ou,f.isMatch=Zh,f.isMatchWith=Qh,f.isNaN=jh,f.isNative=ep,f.isNil=np,f.isNull=tp,f.isNumber=su,f.isObject=ke,f.isObjectLike=Oe,f.isPlainObject=Fn,f.isRegExp=Di,f.isSafeInteger=rp,f.isSet=uu,f.isString=Er,f.isSymbol=rt,f.isTypedArray=gn,f.isUndefined=ip,f.isWeakMap=op,f.isWeakSet=sp,f.join=fl,f.kebabCase=Yp,f.last=ht,f.lastIndexOf=cl,f.lowerCase=Vp,f.lowerFirst=Zp,f.lt=up,f.lte=ap,f.max=zd,f.maxBy=Kd,f.mean=$d,f.meanBy=Jd,f.min=Yd,f.minBy=Vd,f.stubArray=Gi,f.stubFalse=zi,f.stubObject=Fd,f.stubString=Dd,f.stubTrue=Ud,f.multiply=Zd,f.nth=ll,f.noConflict=Td,f.noop=Xi,f.now=mr,f.pad=Qp,f.padEnd=jp,f.padStart=ed,f.parseInt=td,f.random=Gp,f.reduce=dh,f.reduceRight=gh,f.repeat=nd,f.replace=rd,f.result=Np,f.round=Qd,f.runInContext=x,f.sample=yh,f.size=wh,f.snakeCase=id,f.some=bh,f.sortedIndex=_l,f.sortedIndexBy=ml,f.sortedIndexOf=wl,f.sortedLastIndex=bl,f.sortedLastIndexBy=xl,f.sortedLastIndexOf=El,f.startCase=sd,f.startsWith=ud,f.subtract=jd,f.sum=e0,f.sumBy=t0,f.template=ad,f.times=Md,f.toFinite=Lt,f.toInteger=le,f.toLength=fu,f.toLower=fd,f.toNumber=pt,f.toSafeInteger=fp,f.toString=me,f.toUpper=cd,f.trim=ld,f.trimEnd=hd,f.trimStart=pd,f.truncate=dd,f.unescape=gd,f.uniqueId=Hd,f.upperCase=vd,f.upperFirst=Pi,f.each=Ys,f.eachRight=Vs,f.first=zs,qi(f,function(){var e={};return xt(f,function(t,n){we.call(f.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),f.VERSION=o,ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),ut(["drop","take"],function(e,t){ge.prototype[e]=function(n){n=n===r?1:Fe(le(n),0);var i=this.__filtered__&&!t?new ge(this):this.clone();return i.__filtered__?i.__takeCount__=We(n,i.__takeCount__):i.__views__.push({size:We(n,Qe),type:e+(i.__dir__<0?"Right":"")}),i},ge.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),ut(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==N||n==xe;ge.prototype[e]=function(u){var c=this.clone();return c.__iteratees__.push({iteratee:ne(u,3),type:n}),c.__filtered__=c.__filtered__||i,c}}),ut(["head","last"],function(e,t){var n="take"+(t?"Right":"");ge.prototype[e]=function(){return this[n](1).value()[0]}}),ut(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ge.prototype[e]=function(){return this.__filtered__?new ge(this):this[n](1)}}),ge.prototype.compact=function(){return this.filter(Ze)},ge.prototype.find=function(e){return this.filter(e).head()},ge.prototype.findLast=function(e){return this.reverse().find(e)},ge.prototype.invokeMap=pe(function(e,t){return typeof e=="function"?new ge(this):this.map(function(n){return kn(n,e,t)})}),ge.prototype.reject=function(e){return this.filter(br(ne(e)))},ge.prototype.slice=function(e,t){e=le(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ge(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=le(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ge.prototype.toArray=function(){return this.take(Qe)},xt(ge.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),u=f[i?"take"+(t=="last"?"Right":""):t],c=i||/^find/.test(t);u&&(f.prototype[t]=function(){var v=this.__wrapped__,m=i?[1]:arguments,A=v instanceof ge,O=m[0],I=A||ce(v),L=function(de){var ve=u.apply(f,Ut([de],m));return i&&W?ve[0]:ve};I&&n&&typeof O=="function"&&O.length!=1&&(A=I=!1);var W=this.__chain__,Y=!!this.__actions__.length,re=c&&!W,he=A&&!Y;if(!c&&I){v=he?v:new ge(this);var ie=e.apply(v,m);return ie.__actions__.push({func:yr,args:[L],thisArg:r}),new ft(ie,W)}return re&&he?e.apply(this,m):(ie=this.thru(L),re?i?ie.value()[0]:ie.value():ie)})}),ut(["pop","push","shift","sort","splice","unshift"],function(e){var t=Xn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var c=this.value();return t.apply(ce(c)?c:[],u)}return this[n](function(v){return t.apply(ce(v)?v:[],u)})}}),xt(ge.prototype,function(e,t){var n=f[t];if(n){var i=n.name+"";we.call(cn,i)||(cn[i]=[]),cn[i].push({name:t,func:n})}}),cn[cr(r,J).name]=[{name:"wrapper",func:r}],ge.prototype.clone=gf,ge.prototype.reverse=vf,ge.prototype.value=yf,f.prototype.at=Kl,f.prototype.chain=$l,f.prototype.commit=Jl,f.prototype.next=Yl,f.prototype.plant=Zl,f.prototype.reverse=Ql,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=jl,f.prototype.first=f.prototype.head,xn&&(f.prototype[xn]=Vl),f},un=$a();zt?((zt.exports=un)._=un,Wr._=un):Ue._=un}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const eventsSdkDefaultOptions={url:"https://monitorapi.voicenter.co.il/monitorAPI/getMonitorUrls",environment:Environment.BROWSER,fallbackServer:{Domain:"monitor5.voicenter.co.il",Priority:0},loginUrl:"https://loginapi.voicenter.co.il/monitorAPI/Login",refreshTokenUrl:"https://loginapi.voicenter.co.il/monitorAPI/RefreshIdentityToken",token:"",loginType:"token",forceNew:!0,reconnectionDelay:1e4,reconnectionDelayMax:1e4,maxReconnectAttempts:5,timeout:1e4,keepAliveTimeout:6e4,idleInterval:6e4*5,protocol:"https",transports:["websocket"],upgrade:!1,store:"",extensionsModuleName:"sdkExtensions",queuesModuleName:"sdkQueues",dialersModuleName:"sdkDialers",serverFetchStrategy:"static",serverType:0,useLogger:!1,loggerSocketConnection:"",loggerServer:"http://127.0.0.1:3000/",loggerConfig:{logToConsole:!0,overloadGlobalConsole:!1,namespace:"events-sdk",socketEmitInterval:1e4},loggerConnectOptions:{reconnection:!0,reconnectionDelay:5e3,reconnectionAttempts:10,perMessageDeflate:!1,upgrade:!1,transports:["websocket"],debug:!1},username:"username",password:"53070875445",email:"FreshTest@Voicenter.com"};function v1_3_7(){return function s(a,r,o){function l(y,E){if(!r[y]){if(!a[y]){var w=typeof require=="function"&&require;if(!E&&w)return w(y,!0);if(h)return h(y,!0);throw new Error("Cannot find module '"+y+"'")}var T=r[y]={exports:{}};a[y][0].call(T.exports,function(b){var g=a[y][1][b];return l(g||b)},T,T.exports,s,a,r,o)}return r[y].exports}for(var h=typeof require=="function"&&require,d=0;d<o.length;d++)l(o[d]);return l}({1:[function(s,a){a.exports=s("./lib/")},{"./lib/":2}],2:[function(s,a,r){function o(w,T){typeof w=="object"&&(T=w,w=void 0),T=T||{};var b,g=l(w),p=g.source,_=g.id;return T.forceNew||T["force new connection"]||T.multiplex===!1?(y("ignoring socket cache for %s",p),b=d(p,T)):(E[_]||(y("new io instance for %s",p),E[_]=d(p,T)),b=E[_]),b.socket(g.path)}var l=s("./url"),h=s("socket.io-parser"),d=s("./manager"),y=s("debug")("socket.io-client");a.exports=r=o;var E=r.managers={};r.protocol=h.protocol,r.connect=o,r.Manager=s("./manager"),r.Socket=s("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":44}],3:[function(s,a){function r(g,p){return this instanceof r?(g&&typeof g=="object"&&(p=g,g=void 0),p=p||{},p.path=p.path||"/socket.io",this.nsps={},this.subs=[],this.opts=p,this.reconnection(p.reconnection!==!1),this.reconnectionAttempts(p.reconnectionAttempts||1/0),this.reconnectionDelay(p.reconnectionDelay||1e3),this.reconnectionDelayMax(p.reconnectionDelayMax||5e3),this.randomizationFactor(p.randomizationFactor||.5),this.backoff=new b({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(p.timeout==null?2e4:p.timeout),this.readyState="closed",this.uri=g,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new d.Encoder,this.decoder=new d.Decoder,this.autoConnect=p.autoConnect!==!1,void(this.autoConnect&&this.open())):new r(g,p)}var o=(s("./url"),s("engine.io-client")),l=s("./socket"),h=s("component-emitter"),d=s("socket.io-parser"),y=s("./on"),E=s("component-bind"),w=(s("object-component"),s("debug")("socket.io-client:manager")),T=s("indexof"),b=s("backo2");a.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var g in this.nsps)this.nsps[g].emit.apply(this.nsps[g],arguments)},r.prototype.updateSocketIds=function(){for(var g in this.nsps)this.nsps[g].id=this.engine.id},h(r.prototype),r.prototype.reconnection=function(g){return arguments.length?(this._reconnection=!!g,this):this._reconnection},r.prototype.reconnectionAttempts=function(g){return arguments.length?(this._reconnectionAttempts=g,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(g){return arguments.length?(this._reconnectionDelay=g,this.backoff&&this.backoff.setMin(g),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(g){return arguments.length?(this._randomizationFactor=g,this.backoff&&this.backoff.setJitter(g),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(g){return arguments.length?(this._reconnectionDelayMax=g,this.backoff&&this.backoff.setMax(g),this):this._reconnectionDelayMax},r.prototype.timeout=function(g){return arguments.length?(this._timeout=g,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},r.prototype.open=r.prototype.connect=function(g){if(w("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;w("opening %s",this.uri),this.engine=o(this.uri,this.opts);var p=this.engine,_=this;this.readyState="opening",this.skipReconnect=!1;var S=y(p,"open",function(){_.onopen(),g&&g()}),k=y(p,"error",function(V){if(w("connect_error"),_.cleanup(),_.readyState="closed",_.emitAll("connect_error",V),g){var ue=new Error("Connection error");ue.data=V,g(ue)}else _.maybeReconnectOnOpen()});if(this._timeout!==!1){var J=this._timeout;w("connect attempt will timeout after %d",J);var se=setTimeout(function(){w("connect attempt timed out after %d",J),S.destroy(),p.close(),p.emit("error","timeout"),_.emitAll("connect_timeout",J)},J);this.subs.push({destroy:function(){clearTimeout(se)}})}return this.subs.push(S),this.subs.push(k),this},r.prototype.onopen=function(){w("open"),this.cleanup(),this.readyState="open",this.emit("open");var g=this.engine;this.subs.push(y(g,"data",E(this,"ondata"))),this.subs.push(y(this.decoder,"decoded",E(this,"ondecoded"))),this.subs.push(y(g,"error",E(this,"onerror"))),this.subs.push(y(g,"close",E(this,"onclose")))},r.prototype.ondata=function(g){this.decoder.add(g)},r.prototype.ondecoded=function(g){this.emit("packet",g)},r.prototype.onerror=function(g){w("error",g),this.emitAll("error",g)},r.prototype.socket=function(g){var p=this.nsps[g];if(!p){p=new l(this,g),this.nsps[g]=p;var _=this;p.on("connect",function(){p.id=_.engine.id,~T(_.connected,p)||_.connected.push(p)})}return p},r.prototype.destroy=function(g){var p=T(this.connected,g);~p&&this.connected.splice(p,1),this.connected.length||this.close()},r.prototype.packet=function(g){w("writing packet %j",g);var p=this;p.encoding?p.packetBuffer.push(g):(p.encoding=!0,this.encoder.encode(g,function(_){for(var S=0;S<_.length;S++)p.engine.write(_[S]);p.encoding=!1,p.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var g=this.packetBuffer.shift();this.packet(g)}},r.prototype.cleanup=function(){for(var g;g=this.subs.shift();)g.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(g){w("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",g),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var g=this;if(this.backoff.attempts>=this._reconnectionAttempts)w("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var p=this.backoff.duration();w("will wait %dms before reconnect attempt",p),this.reconnecting=!0;var _=setTimeout(function(){g.skipReconnect||(w("attempting reconnect"),g.emitAll("reconnect_attempt",g.backoff.attempts),g.emitAll("reconnecting",g.backoff.attempts),g.skipReconnect||g.open(function(S){S?(w("reconnect attempt error"),g.reconnecting=!1,g.reconnect(),g.emitAll("reconnect_error",S.data)):(w("reconnect success"),g.onreconnect())}))},p);this.subs.push({destroy:function(){clearTimeout(_)}})}},r.prototype.onreconnect=function(){var g=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",g)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(s,a){function r(o,l,h){return o.on(l,h),{destroy:function(){o.removeListener(l,h)}}}a.exports=r},{}],5:[function(s,a,r){function o(p,_){this.io=p,this.nsp=_,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var l=s("socket.io-parser"),h=s("component-emitter"),d=s("to-array"),y=s("./on"),E=s("component-bind"),w=s("debug")("socket.io-client:socket"),T=s("has-binary");a.exports=o;var b={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},g=h.prototype.emit;h(o.prototype),o.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[y(p,"open",E(this,"onopen")),y(p,"packet",E(this,"onpacket")),y(p,"close",E(this,"onclose"))]}},o.prototype.open=o.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),this.io.readyState=="open"&&this.onopen(),this)},o.prototype.send=function(){var p=d(arguments);return p.unshift("message"),this.emit.apply(this,p),this},o.prototype.emit=function(p){if(b.hasOwnProperty(p))return g.apply(this,arguments),this;var _=d(arguments),S=l.EVENT;T(_)&&(S=l.BINARY_EVENT);var k={type:S,data:_};return typeof _[_.length-1]=="function"&&(w("emitting packet with ack id %d",this.ids),this.acks[this.ids]=_.pop(),k.id=this.ids++),this.connected?this.packet(k):this.sendBuffer.push(k),this},o.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},o.prototype.onopen=function(){w("transport is open - connecting"),this.nsp!="/"&&this.packet({type:l.CONNECT})},o.prototype.onclose=function(p){w("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},o.prototype.onpacket=function(p){if(p.nsp==this.nsp)switch(p.type){case l.CONNECT:this.onconnect();break;case l.EVENT:this.onevent(p);break;case l.BINARY_EVENT:this.onevent(p);break;case l.ACK:this.onack(p);break;case l.BINARY_ACK:this.onack(p);break;case l.DISCONNECT:this.ondisconnect();break;case l.ERROR:this.emit("error",p.data)}},o.prototype.onevent=function(p){var _=p.data||[];w("emitting event %j",_),p.id!=null&&(w("attaching ack callback to event"),_.push(this.ack(p.id))),this.connected?g.apply(this,_):this.receiveBuffer.push(_)},o.prototype.ack=function(p){var _=this,S=!1;return function(){if(!S){S=!0;var k=d(arguments);w("sending ack %j",k);var J=T(k)?l.BINARY_ACK:l.ACK;_.packet({type:J,id:p,data:k})}}},o.prototype.onack=function(p){w("calling ack %s with %j",p.id,p.data);var _=this.acks[p.id];_.apply(this,p.data),delete this.acks[p.id]},o.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},o.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)g.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},o.prototype.ondisconnect=function(){w("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},o.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},o.prototype.close=o.prototype.disconnect=function(){return this.connected&&(w("performing disconnect (%s)",this.nsp),this.packet({type:l.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":4,"component-bind":8,"component-emitter":9,debug:10,"has-binary":36,"socket.io-parser":44,"to-array":48}],6:[function(s,a){(function(r){function o(d,w){var E=d,w=w||r.location;return d==null&&(d=w.protocol+"//"+w.host),typeof d=="string"&&(d.charAt(0)=="/"&&(d=d.charAt(1)=="/"?w.protocol+d:w.hostname+d),/^(https?|wss?):\/\//.test(d)||(h("protocol-less url %s",d),d=typeof w<"u"?w.protocol+"//"+d:"https://"+d),h("parse %s",d),E=l(d)),E.port||(/^(http|ws)$/.test(E.protocol)?E.port="80":/^(http|ws)s$/.test(E.protocol)&&(E.port="443")),E.path=E.path||"/",E.id=E.protocol+"://"+E.host+":"+E.port,E.href=E.protocol+"://"+E.host+(w&&w.port==E.port?"":":"+E.port),E}var l=s("parseuri"),h=s("debug")("socket.io-client:url");a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{debug:10,parseuri:42}],7:[function(s,a){function r(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}a.exports=r,r.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),h=Math.floor(l*this.jitter*o);o=1&Math.floor(10*l)?o+h:o-h}return 0|Math.min(o,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(o){this.ms=o},r.prototype.setMax=function(o){this.max=o},r.prototype.setJitter=function(o){this.jitter=o}},{}],8:[function(s,a){var r=[].slice;a.exports=function(o,l){if(typeof l=="string"&&(l=o[l]),typeof l!="function")throw new Error("bind() requires a function");var h=r.call(arguments,2);return function(){return l.apply(o,h.concat(r.call(arguments)))}}},{}],9:[function(s,a){function r(l){return l?o(l):void 0}function o(l){for(var h in r.prototype)l[h]=r.prototype[h];return l}a.exports=r,r.prototype.on=r.prototype.addEventListener=function(l,h){return this._callbacks=this._callbacks||{},(this._callbacks[l]=this._callbacks[l]||[]).push(h),this},r.prototype.once=function(l,h){function d(){y.off(l,d),h.apply(this,arguments)}var y=this;return this._callbacks=this._callbacks||{},d.fn=h,this.on(l,d),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(l,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks[l];if(!d)return this;if(arguments.length==1)return delete this._callbacks[l],this;for(var y,E=0;E<d.length;E++)if(y=d[E],y===h||y.fn===h){d.splice(E,1);break}return this},r.prototype.emit=function(l){this._callbacks=this._callbacks||{};var h=[].slice.call(arguments,1),d=this._callbacks[l];if(d){d=d.slice(0);for(var y=0,E=d.length;E>y;++y)d[y].apply(this,h)}return this},r.prototype.listeners=function(l){return this._callbacks=this._callbacks||{},this._callbacks[l]||[]},r.prototype.hasListeners=function(l){return!!this.listeners(l).length}},{}],10:[function(s,a){function r(l){return r.enabled(l)?function(h){h=o(h);var d=new Date,y=d-(r[l]||d);r[l]=d,h=l+" "+h+" +"+r.humanize(y),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function o(l){return l instanceof Error?l.stack||l.message:l}a.exports=r,r.names=[],r.skips=[],r.enable=function(l){try{localStorage.debug=l}catch{}for(var h=(l||"").split(/[\s,]+/),d=h.length,y=0;d>y;y++)l=h[y].replace("*",".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.substr(1)+"$")):r.names.push(new RegExp("^"+l+"$"))},r.disable=function(){r.enable("")},r.humanize=function(l){var h=1e3,d=6e4,y=60*d;return l>=y?(l/y).toFixed(1)+"h":l>=d?(l/d).toFixed(1)+"m":l>=h?(l/h|0)+"s":l+"ms"},r.enabled=function(l){for(var h=0,d=r.skips.length;d>h;h++)if(r.skips[h].test(l))return!1;for(var h=0,d=r.names.length;d>h;h++)if(r.names[h].test(l))return!0;return!1};try{window.localStorage&&r.enable(localStorage.debug)}catch{}},{}],11:[function(s,a){a.exports=s("./lib/")},{"./lib/":12}],12:[function(s,a){a.exports=s("./socket"),a.exports.parser=s("engine.io-parser")},{"./socket":13,"engine.io-parser":25}],13:[function(s,a){(function(r){function o(p,_){if(!(this instanceof o))return new o(p,_);if(_=_||{},p&&typeof p=="object"&&(_=p,p=null),p&&(p=T(p),_.host=p.host,_.secure=p.protocol=="https"||p.protocol=="wss",_.port=p.port,p.query&&(_.query=p.query)),this.secure=_.secure!=null?_.secure:r.location&&location.protocol=="https:",_.host){var S=_.host.split(":");_.hostname=S.shift(),S.length?_.port=S.pop():_.port||(_.port=this.secure?"443":"80")}this.agent=_.agent||!1,this.hostname=_.hostname||(r.location?location.hostname:"localhost"),this.port=_.port||(r.location&&location.port?location.port:this.secure?443:80),this.query=_.query||{},typeof this.query=="string"&&(this.query=g.decode(this.query)),this.upgrade=_.upgrade!==!1,this.path=(_.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!_.forceJSONP,this.jsonp=_.jsonp!==!1,this.forceBase64=!!_.forceBase64,this.enablesXDR=!!_.enablesXDR,this.timestampParam=_.timestampParam||"t",this.timestampRequests=_.timestampRequests,this.transports=_.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=_.policyPort||843,this.rememberUpgrade=_.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=_.onlyBinaryUpgrades,this.pfx=_.pfx||null,this.key=_.key||null,this.passphrase=_.passphrase||null,this.cert=_.cert||null,this.ca=_.ca||null,this.ciphers=_.ciphers||null,this.rejectUnauthorized=_.rejectUnauthorized||null,this.open()}function l(p){var _={};for(var S in p)p.hasOwnProperty(S)&&(_[S]=p[S]);return _}var h=s("./transports"),d=s("component-emitter"),y=s("debug")("engine.io-client:socket"),E=s("indexof"),w=s("engine.io-parser"),T=s("parseuri"),b=s("parsejson"),g=s("parseqs");a.exports=o,o.priorWebsocketSuccess=!1,d(o.prototype),o.protocol=w.protocol,o.Socket=o,o.Transport=s("./transport"),o.transports=s("./transports"),o.parser=s("engine.io-parser"),o.prototype.createTransport=function(p){y('creating transport "%s"',p);var _=l(this.query);_.EIO=w.protocol,_.transport=p,this.id&&(_.sid=this.id);var S=new h[p]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:_,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return S},o.prototype.open=function(){var _;if(this.rememberUpgrade&&o.priorWebsocketSuccess&&this.transports.indexOf("websocket")!=-1)_="websocket";else{if(this.transports.length==0){var p=this;return void setTimeout(function(){p.emit("error","No transports available")},0)}_=this.transports[0]}this.readyState="opening";var _;try{_=this.createTransport(_)}catch{return this.transports.shift(),void this.open()}_.open(),this.setTransport(_)},o.prototype.setTransport=function(p){y("setting transport %s",p.name);var _=this;this.transport&&(y("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=p,p.on("drain",function(){_.onDrain()}).on("packet",function(S){_.onPacket(S)}).on("error",function(S){_.onError(S)}).on("close",function(){_.onClose("transport close")})},o.prototype.probe=function(p){function _(){if(P.onlyBinaryUpgrades){var q=!this.supportsBinary&&P.transport.supportsBinary;D=D||q}D||(y('probe transport "%s" opened',p),X.send([{type:"ping",data:"probe"}]),X.once("packet",function(B){if(!D)if(B.type=="pong"&&B.data=="probe"){if(y('probe transport "%s" pong',p),P.upgrading=!0,P.emit("upgrading",X),!X)return;o.priorWebsocketSuccess=X.name=="websocket",y('pausing current transport "%s"',P.transport.name),P.transport.pause(function(){D||P.readyState!="closed"&&(y("changing transport and sending upgrade packet"),ue(),P.setTransport(X),X.send([{type:"upgrade"}]),P.emit("upgrade",X),X=null,P.upgrading=!1,P.flush())})}else{y('probe transport "%s" failed',p);var F=new Error("probe error");F.transport=X.name,P.emit("upgradeError",F)}}))}function S(){D||(D=!0,ue(),X.close(),X=null)}function k(q){var B=new Error("probe error: "+q);B.transport=X.name,S(),y('probe transport "%s" failed because of error: %s',p,q),P.emit("upgradeError",B)}function J(){k("transport closed")}function se(){k("socket closed")}function V(q){X&&q.name!=X.name&&(y('"%s" works - aborting "%s"',q.name,X.name),S())}function ue(){X.removeListener("open",_),X.removeListener("error",k),X.removeListener("close",J),P.removeListener("close",se),P.removeListener("upgrading",V)}y('probing transport "%s"',p);var X=this.createTransport(p,{probe:1}),D=!1,P=this;o.priorWebsocketSuccess=!1,X.once("open",_),X.once("error",k),X.once("close",J),this.once("close",se),this.once("upgrading",V),X.open()},o.prototype.onOpen=function(){if(y("socket open"),this.readyState="open",o.priorWebsocketSuccess=this.transport.name=="websocket",this.emit("open"),this.flush(),this.readyState=="open"&&this.upgrade&&this.transport.pause){y("starting upgrade probes");for(var p=0,_=this.upgrades.length;_>p;p++)this.probe(this.upgrades[p])}},o.prototype.onPacket=function(p){if(this.readyState=="opening"||this.readyState=="open")switch(y('socket receive: type "%s", data "%s"',p.type,p.data),this.emit("packet",p),this.emit("heartbeat"),p.type){case"open":this.onHandshake(b(p.data));break;case"pong":this.setPing();break;case"error":var _=new Error("server error");_.code=p.data,this.emit("error",_);break;case"message":this.emit("data",p.data),this.emit("message",p.data)}else y('packet received with socket readyState "%s"',this.readyState)},o.prototype.onHandshake=function(p){this.emit("handshake",p),this.id=p.sid,this.transport.query.sid=p.sid,this.upgrades=this.filterUpgrades(p.upgrades),this.pingInterval=p.pingInterval,this.pingTimeout=p.pingTimeout,this.onOpen(),this.readyState!="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},o.prototype.onHeartbeat=function(p){clearTimeout(this.pingTimeoutTimer);var _=this;_.pingTimeoutTimer=setTimeout(function(){_.readyState!="closed"&&_.onClose("ping timeout")},p||_.pingInterval+_.pingTimeout)},o.prototype.setPing=function(){var p=this;clearTimeout(p.pingIntervalTimer),p.pingIntervalTimer=setTimeout(function(){y("writing ping packet - expecting pong within %sms",p.pingTimeout),p.ping(),p.onHeartbeat(p.pingTimeout)},p.pingInterval)},o.prototype.ping=function(){this.sendPacket("ping")},o.prototype.onDrain=function(){for(var p=0;p<this.prevBufferLen;p++)this.callbackBuffer[p]&&this.callbackBuffer[p]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length==0?this.emit("drain"):this.flush()},o.prototype.flush=function(){this.readyState!="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(y("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},o.prototype.write=o.prototype.send=function(p,_){return this.sendPacket("message",p,_),this},o.prototype.sendPacket=function(p,_,S){if(this.readyState!="closing"&&this.readyState!="closed"){var k={type:p,data:_};this.emit("packetCreate",k),this.writeBuffer.push(k),this.callbackBuffer.push(S),this.flush()}},o.prototype.close=function(){function p(){k.onClose("forced close"),y("socket closing - telling transport to close"),k.transport.close()}function _(){k.removeListener("upgrade",_),k.removeListener("upgradeError",_),p()}function S(){k.once("upgrade",_),k.once("upgradeError",_)}if(this.readyState=="opening"||this.readyState=="open"){this.readyState="closing";var k=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?S():p()}):this.upgrading?S():p()}return this},o.prototype.onError=function(p){y("socket error %j",p),o.priorWebsocketSuccess=!1,this.emit("error",p),this.onClose("transport error",p)},o.prototype.onClose=function(p,_){if(this.readyState=="opening"||this.readyState=="open"||this.readyState=="closing"){y('socket close with reason: "%s"',p);var S=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){S.writeBuffer=[],S.callbackBuffer=[],S.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",p,_)}},o.prototype.filterUpgrades=function(p){for(var _=[],S=0,k=p.length;k>S;S++)~E(this.transports,p[S])&&_.push(p[S]);return _}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./transport":14,"./transports":15,"component-emitter":9,debug:22,"engine.io-parser":25,indexof:40,parsejson:32,parseqs:33,parseuri:34}],14:[function(s,a){function r(h){this.path=h.path,this.hostname=h.hostname,this.port=h.port,this.secure=h.secure,this.query=h.query,this.timestampParam=h.timestampParam,this.timestampRequests=h.timestampRequests,this.readyState="",this.agent=h.agent||!1,this.socket=h.socket,this.enablesXDR=h.enablesXDR,this.pfx=h.pfx,this.key=h.key,this.passphrase=h.passphrase,this.cert=h.cert,this.ca=h.ca,this.ciphers=h.ciphers,this.rejectUnauthorized=h.rejectUnauthorized}var o=s("engine.io-parser"),l=s("component-emitter");a.exports=r,l(r.prototype),r.timestamps=0,r.prototype.onError=function(h,d){var y=new Error(h);return y.type="TransportError",y.description=d,this.emit("error",y),this},r.prototype.open=function(){return(this.readyState=="closed"||this.readyState=="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState=="opening"||this.readyState=="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(h){if(this.readyState!="open")throw new Error("Transport not open");this.write(h)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(h){var d=o.decodePacket(h,this.socket.binaryType);this.onPacket(d)},r.prototype.onPacket=function(h){this.emit("packet",h)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":9,"engine.io-parser":25}],15:[function(s,a,r){(function(o){function l(w){var T,b=!1,g=!1,p=w.jsonp!==!1;if(o.location){var _=location.protocol=="https:",S=location.port;S||(S=_?443:80),b=w.hostname!=location.hostname||S!=w.port,g=w.secure!=_}if(w.xdomain=b,w.xscheme=g,T=new h(w),"open"in T&&!w.forceJSONP)return new d(w);if(!p)throw new Error("JSONP disabled");return new y(w)}var h=s("xmlhttprequest"),d=s("./polling-xhr"),y=s("./polling-jsonp"),E=s("./websocket");r.polling=l,r.websocket=E}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(s,a){(function(r){function o(){}function l(T){h.call(this,T),this.query=this.query||{},y||(r.___eio||(r.___eio=[]),y=r.___eio),this.index=y.length;var b=this;y.push(function(g){b.onData(g)}),this.query.j=this.index,r.document&&r.addEventListener&&r.addEventListener("beforeunload",function(){b.script&&(b.script.onerror=o)},!1)}var h=s("./polling"),d=s("component-inherit");a.exports=l;var y,E=/\n/g,w=/\\n/g;d(l,h),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),h.prototype.doClose.call(this)},l.prototype.doPoll=function(){var T=this,b=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),b.async=!0,b.src=this.uri(),b.onerror=function(_){T.onError("jsonp poll error",_)};var g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(b,g),this.script=b;var p=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);p&&setTimeout(function(){var _=document.createElement("iframe");document.body.appendChild(_),document.body.removeChild(_)},100)},l.prototype.doWrite=function(T,b){function g(){p(),b()}function p(){if(_.iframe)try{_.form.removeChild(_.iframe)}catch(ue){_.onError("jsonp polling iframe removal error",ue)}try{var V='<iframe src="javascript:0" name="'+_.iframeId+'">';S=document.createElement(V)}catch{S=document.createElement("iframe"),S.name=_.iframeId,S.src="javascript:0"}S.id=_.iframeId,_.form.appendChild(S),_.iframe=S}var _=this;if(!this.form){var S,k=document.createElement("form"),J=document.createElement("textarea"),se=this.iframeId="eio_iframe_"+this.index;k.className="socketio",k.style.position="absolute",k.style.top="-1000px",k.style.left="-1000px",k.target=se,k.method="POST",k.setAttribute("accept-charset","utf-8"),J.name="d",k.appendChild(J),document.body.appendChild(k),this.form=k,this.area=J}this.form.action=this.uri(),p(),T=T.replace(w,`\\
|
|
36
|
+
`),this.area.value=T.replace(E,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){_.iframe.readyState=="complete"&&g()}:this.iframe.onload=g}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling":18,"component-inherit":21}],17:[function(s,a){(function(r){function o(){}function l(g){if(E.call(this,g),r.location){var p=location.protocol=="https:",_=location.port;_||(_=p?443:80),this.xd=g.hostname!=r.location.hostname||_!=g.port,this.xs=g.secure!=p}}function h(g){this.method=g.method||"GET",this.uri=g.uri,this.xd=!!g.xd,this.xs=!!g.xs,this.async=g.async!==!1,this.data=g.data!=null?g.data:null,this.agent=g.agent,this.isBinary=g.isBinary,this.supportsBinary=g.supportsBinary,this.enablesXDR=g.enablesXDR,this.pfx=g.pfx,this.key=g.key,this.passphrase=g.passphrase,this.cert=g.cert,this.ca=g.ca,this.ciphers=g.ciphers,this.rejectUnauthorized=g.rejectUnauthorized,this.create()}function d(){for(var g in h.requests)h.requests.hasOwnProperty(g)&&h.requests[g].abort()}var y=s("xmlhttprequest"),E=s("./polling"),w=s("component-emitter"),T=s("component-inherit"),b=s("debug")("engine.io-client:polling-xhr");a.exports=l,a.exports.Request=h,T(l,E),l.prototype.supportsBinary=!0,l.prototype.request=function(g){return g=g||{},g.uri=this.uri(),g.xd=this.xd,g.xs=this.xs,g.agent=this.agent||!1,g.supportsBinary=this.supportsBinary,g.enablesXDR=this.enablesXDR,g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized,new h(g)},l.prototype.doWrite=function(g,p){var _=typeof g!="string"&&g!==void 0,S=this.request({method:"POST",data:g,isBinary:_}),k=this;S.on("success",p),S.on("error",function(J){k.onError("xhr post error",J)}),this.sendXhr=S},l.prototype.doPoll=function(){b("xhr poll");var g=this.request(),p=this;g.on("data",function(_){p.onData(_)}),g.on("error",function(_){p.onError("xhr poll error",_)}),this.pollXhr=g},w(h.prototype),h.prototype.create=function(){var g={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized;var p=this.xhr=new y(g),_=this;try{if(b("xhr open %s: %s",this.method,this.uri),p.open(this.method,this.uri,this.async),this.supportsBinary&&(p.responseType="arraybuffer"),this.method=="POST")try{this.isBinary?p.setRequestHeader("Content-type","application/octet-stream"):p.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}"withCredentials"in p&&(p.withCredentials=!0),this.hasXDR()?(p.onload=function(){_.onLoad()},p.onerror=function(){_.onError(p.responseText)}):p.onreadystatechange=function(){p.readyState==4&&(p.status==200||p.status==1223?_.onLoad():setTimeout(function(){_.onError(p.status)},0))},b("xhr data %s",this.data),p.send(this.data)}catch(S){return void setTimeout(function(){_.onError(S)},0)}r.document&&(this.index=h.requestsCount++,h.requests[this.index]=this)},h.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},h.prototype.onData=function(g){this.emit("data",g),this.onSuccess()},h.prototype.onError=function(g){this.emit("error",g),this.cleanup(!0)},h.prototype.cleanup=function(g){if(typeof this.xhr<"u"&&this.xhr!==null){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,g)try{this.xhr.abort()}catch{}r.document&&delete h.requests[this.index],this.xhr=null}},h.prototype.onLoad=function(){var g;try{var p;try{p=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch{}g=p==="application/octet-stream"?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(_){this.onError(_)}g!=null&&this.onData(g)},h.prototype.hasXDR=function(){return typeof r.XDomainRequest<"u"&&!this.xs&&this.enablesXDR},h.prototype.abort=function(){this.cleanup()},r.document&&(h.requestsCount=0,h.requests={},r.attachEvent?r.attachEvent("onunload",d):r.addEventListener&&r.addEventListener("beforeunload",d,!1))}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(s,a){function r(w){var T=w&&w.forceBase64;(!E||T)&&(this.supportsBinary=!1),o.call(this,w)}var o=s("../transport"),l=s("parseqs"),h=s("engine.io-parser"),d=s("component-inherit"),y=s("debug")("engine.io-client:polling");a.exports=r;var E=function(){var w=s("xmlhttprequest"),T=new w({xdomain:!1});return T.responseType!=null}();d(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(w){function T(){y("paused"),b.readyState="paused",w()}var b=this;if(this.readyState="pausing",this.polling||!this.writable){var g=0;this.polling&&(y("we are currently polling - waiting to pause"),g++,this.once("pollComplete",function(){y("pre-pause polling complete"),--g||T()})),this.writable||(y("we are currently writing - waiting to pause"),g++,this.once("drain",function(){y("pre-pause writing complete"),--g||T()}))}else T()},r.prototype.poll=function(){y("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(w){var T=this;y("polling got data %s",w);var b=function(g){return T.readyState=="opening"&&T.onOpen(),g.type=="close"?(T.onClose(),!1):void T.onPacket(g)};h.decodePayload(w,this.socket.binaryType,b),this.readyState!="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState=="open"?this.poll():y('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function w(){y("writing close packet"),T.write([{type:"close"}])}var T=this;this.readyState=="open"?(y("transport open - closing"),w()):(y("transport not open - deferring close"),this.once("open",w))},r.prototype.write=function(w){var b=this;this.writable=!1;var T=function(){b.writable=!0,b.emit("drain")},b=this;h.encodePayload(w,this.supportsBinary,function(g){b.doWrite(g,T)})},r.prototype.uri=function(){var w=this.query||{},T=this.secure?"https":"http",b="";return this.timestampRequests!==!1&&(w[this.timestampParam]=+new Date+"-"+o.timestamps++),this.supportsBinary||w.sid||(w.b64=1),w=l.encode(w),this.port&&(T=="https"&&this.port!=443||T=="http"&&this.port!=80)&&(b=":"+this.port),w.length&&(w="?"+w),T+"://"+this.hostname+b+this.path+w}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,xmlhttprequest:20}],19:[function(s,a){function r(w){var T=w&&w.forceBase64;T&&(this.supportsBinary=!1),o.call(this,w)}var o=s("../transport"),l=s("engine.io-parser"),h=s("parseqs"),d=s("component-inherit"),y=s("debug")("engine.io-client:websocket"),E=s("ws");a.exports=r,d(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var w=this.uri(),T=void 0,b={agent:this.agent};b.pfx=this.pfx,b.key=this.key,b.passphrase=this.passphrase,b.cert=this.cert,b.ca=this.ca,b.ciphers=this.ciphers,b.rejectUnauthorized=this.rejectUnauthorized,this.ws=new E(w,T,b),this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var w=this;this.ws.onopen=function(){w.onOpen()},this.ws.onclose=function(){w.onClose()},this.ws.onmessage=function(T){w.onData(T.data)},this.ws.onerror=function(T){w.onError("websocket error",T)}},typeof navigator<"u"&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(r.prototype.onData=function(w){var T=this;setTimeout(function(){o.prototype.onData.call(T,w)},0)}),r.prototype.write=function(w){function T(){b.writable=!0,b.emit("drain")}var b=this;this.writable=!1;for(var g=0,p=w.length;p>g;g++)l.encodePacket(w[g],this.supportsBinary,function(_){try{b.ws.send(_)}catch{y("websocket closed before onclose event")}});setTimeout(T,0)},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},r.prototype.uri=function(){var w=this.query||{},T=this.secure?"wss":"ws",b="";return this.port&&(T=="wss"&&this.port!=443||T=="ws"&&this.port!=80)&&(b=":"+this.port),this.timestampRequests&&(w[this.timestampParam]=+new Date),this.supportsBinary||(w.b64=1),w=h.encode(w),w.length&&(w="?"+w),T+"://"+this.hostname+b+this.path+w},r.prototype.check=function(){return!(!E||"__initialize"in E&&this.name===r.prototype.name)}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,ws:35}],20:[function(s,a){var r=s("has-cors");a.exports=function(o){var l=o.xdomain,h=o.xscheme,d=o.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!l||r))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!h&&d)return new XDomainRequest}catch{}if(!l)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}}},{"has-cors":38}],21:[function(s,a){a.exports=function(r,o){var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}},{}],22:[function(s,a,r){function o(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function l(){var E=arguments,w=this.useColors;if(E[0]=(w?"%c":"")+this.namespace+(w?" %c":" ")+E[0]+(w?"%c ":" ")+"+"+r.humanize(this.diff),!w)return E;var T="color: "+this.color;E=[E[0],T,"color: inherit"].concat(Array.prototype.slice.call(E,1));var b=0,g=0;return E[0].replace(/%[a-z%]/g,function(p){p!=="%%"&&(b++,p==="%c"&&(g=b))}),E.splice(g,0,T),E}function h(){return typeof console=="object"&&typeof console.log=="function"&&Function.prototype.apply.call(console.log,console,arguments)}function d(E){try{E==null?localStorage.removeItem("debug"):localStorage.debug=E}catch{}}function y(){var E;try{E=localStorage.debug}catch{}return E}r=a.exports=s("./debug"),r.log=h,r.formatArgs=l,r.save=d,r.load=y,r.useColors=o,r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(E){return JSON.stringify(E)},r.enable(y())},{"./debug":23}],23:[function(s,a,r){function o(){return r.colors[T++%r.colors.length]}function l(b){function g(){}function p(){var S=p,k=+new Date,J=k-(w||k);S.diff=J,S.prev=w,S.curr=k,w=k,S.useColors==null&&(S.useColors=r.useColors()),S.color==null&&S.useColors&&(S.color=o());var se=Array.prototype.slice.call(arguments);se[0]=r.coerce(se[0]),typeof se[0]!="string"&&(se=["%o"].concat(se));var V=0;se[0]=se[0].replace(/%([a-z%])/g,function(X,D){if(X==="%%")return X;V++;var P=r.formatters[D];if(typeof P=="function"){var q=se[V];X=P.call(S,q),se.splice(V,1),V--}return X}),typeof r.formatArgs=="function"&&(se=r.formatArgs.apply(S,se));var ue=p.log||r.log||console.log.bind(console);ue.apply(S,se)}g.enabled=!1,p.enabled=!0;var _=r.enabled(b)?p:g;return _.namespace=b,_}function h(b){r.save(b);for(var g=(b||"").split(/[\s,]+/),p=g.length,_=0;p>_;_++)g[_]&&(b=g[_].replace(/\*/g,".*?"),b[0]==="-"?r.skips.push(new RegExp("^"+b.substr(1)+"$")):r.names.push(new RegExp("^"+b+"$")))}function d(){r.enable("")}function y(b){var g,p;for(g=0,p=r.skips.length;p>g;g++)if(r.skips[g].test(b))return!1;for(g=0,p=r.names.length;p>g;g++)if(r.names[g].test(b))return!0;return!1}function E(b){return b instanceof Error?b.stack||b.message:b}r=a.exports=l,r.coerce=E,r.disable=d,r.enable=h,r.enabled=y,r.humanize=s("ms"),r.names=[],r.skips=[],r.formatters={};var w,T=0},{ms:24}],24:[function(s,a){function r(b){var g=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(b);if(g){var p=parseFloat(g[1]),_=(g[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"y":return p*T;case"days":case"day":case"d":return p*w;case"hours":case"hour":case"h":return p*E;case"minutes":case"minute":case"m":return p*y;case"seconds":case"second":case"s":return p*d;case"ms":return p}}}function o(b){return b>=w?Math.round(b/w)+"d":b>=E?Math.round(b/E)+"h":b>=y?Math.round(b/y)+"m":b>=d?Math.round(b/d)+"s":b+"ms"}function l(b){return h(b,w,"day")||h(b,E,"hour")||h(b,y,"minute")||h(b,d,"second")||b+" ms"}function h(b,g,p){return g>b?void 0:1.5*g>b?Math.floor(b/g)+" "+p:Math.ceil(b/g)+" "+p+"s"}var d=1e3,y=60*d,E=60*y,w=24*E,T=365.25*w;a.exports=function(b,g){return g=g||{},typeof b=="string"?r(b):g.long?l(b):o(b)}},{}],25:[function(s,a,r){(function(o){function l(D,P){var q="b"+r.packets[D.type]+D.data.data;return P(q)}function h(D,P,q){if(!P)return r.encodeBase64Packet(D,q);var B=D.data,F=new Uint8Array(B),K=new Uint8Array(1+B.byteLength);K[0]=se[D.type];for(var j=0;j<F.length;j++)K[j+1]=F[j];return q(K.buffer)}function d(D,P,q){if(!P)return r.encodeBase64Packet(D,q);var B=new FileReader;return B.onload=function(){D.data=B.result,r.encodePacket(D,P,!0,q)},B.readAsArrayBuffer(D.data)}function y(D,P,q){if(!P)return r.encodeBase64Packet(D,q);if(J)return d(D,P,q);var B=new Uint8Array(1);B[0]=se[D.type];var F=new X([B.buffer,D.data]);return q(F)}function E(D,P,q){for(var B=new Array(D.length),F=p(D.length,q),K=function(Z,N,be){P(N,function(xe,Ce){B[Z]=Ce,be(xe,B)})},j=0;j<D.length;j++)K(j,D[j],F)}var w=s("./keys"),T=s("has-binary"),b=s("arraybuffer.slice"),g=s("base64-arraybuffer"),p=s("after"),_=s("utf8"),S=navigator.userAgent.match(/Android/i),k=/PhantomJS/i.test(navigator.userAgent),J=S||k;r.protocol=3;var se=r.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},V=w(se),ue={type:"error",data:"parser error"},X=s("blob");r.encodePacket=function(D,P,q,B){typeof P=="function"&&(B=P,P=!1),typeof q=="function"&&(B=q,q=null);var F=D.data===void 0?void 0:D.data.buffer||D.data;if(o.ArrayBuffer&&F instanceof ArrayBuffer)return h(D,P,B);if(X&&F instanceof o.Blob)return y(D,P,B);if(F&&F.base64)return l(D,B);var K=se[D.type];return D.data!==void 0&&(K+=q?_.encode(String(D.data)):String(D.data)),B(""+K)},r.encodeBase64Packet=function(D,P){var q="b"+r.packets[D.type];if(X&&D.data instanceof X){var B=new FileReader;return B.onload=function(){var N=B.result.split(",")[1];P(q+N)},B.readAsDataURL(D.data)}var F;try{F=String.fromCharCode.apply(null,new Uint8Array(D.data))}catch{for(var K=new Uint8Array(D.data),j=new Array(K.length),Z=0;Z<K.length;Z++)j[Z]=K[Z];F=String.fromCharCode.apply(null,j)}return q+=o.btoa(F),P(q)},r.decodePacket=function(D,P,q){if(typeof D=="string"||D===void 0){if(D.charAt(0)=="b")return r.decodeBase64Packet(D.substr(1),P);if(q)try{D=_.decode(D)}catch{return ue}var F=D.charAt(0);return Number(F)==F&&V[F]?D.length>1?{type:V[F],data:D.substring(1)}:{type:V[F]}:ue}var B=new Uint8Array(D),F=B[0],K=b(D,1);return X&&P==="blob"&&(K=new X([K])),{type:V[F],data:K}},r.decodeBase64Packet=function(D,P){var q=V[D.charAt(0)];if(!o.ArrayBuffer)return{type:q,data:{base64:!0,data:D.substr(1)}};var B=g.decode(D.substr(1));return P==="blob"&&X&&(B=new X([B])),{type:q,data:B}},r.encodePayload=function(D,P,q){function B(j){return j.length+":"+j}function F(j,Z){r.encodePacket(j,K?P:!1,!0,function(N){Z(null,B(N))})}typeof P=="function"&&(q=P,P=null);var K=T(D);return P&&K?X&&!J?r.encodePayloadAsBlob(D,q):r.encodePayloadAsArrayBuffer(D,q):D.length?void E(D,F,function(j,Z){return q(Z.join(""))}):q("0:")},r.decodePayload=function(D,P,q){if(typeof D!="string")return r.decodePayloadAsBinary(D,P,q);typeof P=="function"&&(q=P,P=null);var B;if(D=="")return q(ue,0,1);for(var F,K,j="",Z=0,N=D.length;N>Z;Z++){var be=D.charAt(Z);if(be!=":")j+=be;else{if(j==""||j!=(F=Number(j))||(K=D.substr(Z+1,F),j!=K.length))return q(ue,0,1);if(K.length){if(B=r.decodePacket(K,P,!0),ue.type==B.type&&ue.data==B.data)return q(ue,0,1);var xe=q(B,Z+F,N);if(xe===!1)return}Z+=F,j=""}}return j!=""?q(ue,0,1):void 0},r.encodePayloadAsArrayBuffer=function(D,P){function q(B,F){r.encodePacket(B,!0,!0,function(K){return F(null,K)})}return D.length?void E(D,q,function(B,F){var K=F.reduce(function(N,be){var xe;return xe=typeof be=="string"?be.length:be.byteLength,N+xe.toString().length+xe+2},0),j=new Uint8Array(K),Z=0;return F.forEach(function(N){var be=typeof N=="string",xe=N;if(be){for(var Ce=new Uint8Array(N.length),ae=0;ae<N.length;ae++)Ce[ae]=N.charCodeAt(ae);xe=Ce.buffer}j[Z++]=be?0:1;for(var Pe=xe.byteLength.toString(),ae=0;ae<Pe.length;ae++)j[Z++]=parseInt(Pe[ae]);j[Z++]=255;for(var Ce=new Uint8Array(xe),ae=0;ae<Ce.length;ae++)j[Z++]=Ce[ae]}),P(j.buffer)}):P(new ArrayBuffer(0))},r.encodePayloadAsBlob=function(D,P){function q(B,F){r.encodePacket(B,!0,!0,function(K){var j=new Uint8Array(1);if(j[0]=1,typeof K=="string"){for(var Z=new Uint8Array(K.length),N=0;N<K.length;N++)Z[N]=K.charCodeAt(N);K=Z.buffer,j[0]=0}for(var be=K instanceof ArrayBuffer?K.byteLength:K.size,xe=be.toString(),Ce=new Uint8Array(xe.length+1),N=0;N<xe.length;N++)Ce[N]=parseInt(xe[N]);if(Ce[xe.length]=255,X){var ae=new X([j.buffer,Ce.buffer,K]);F(null,ae)}})}E(D,q,function(B,F){return P(new X(F))})},r.decodePayloadAsBinary=function(D,P,q){typeof P=="function"&&(q=P,P=null);for(var B=D,F=[],K=!1;B.byteLength>0;){for(var j=new Uint8Array(B),Z=j[0]===0,N="",be=1;j[be]!=255;be++){if(N.length>310){K=!0;break}N+=j[be]}if(K)return q(ue,0,1);B=b(B,2+N.length),N=parseInt(N);var xe=b(B,0,N);if(Z)try{xe=String.fromCharCode.apply(null,new Uint8Array(xe))}catch{var Ce=new Uint8Array(xe);xe="";for(var be=0;be<Ce.length;be++)xe+=String.fromCharCode(Ce[be])}F.push(xe),B=b(B,N)}var ae=F.length;F.forEach(function(Pe,mt){q(r.decodePacket(Pe,P,!0),mt,ae)})}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./keys":26,after:27,"arraybuffer.slice":28,"base64-arraybuffer":29,blob:30,"has-binary":36,utf8:31}],26:[function(s,a){a.exports=Object.keys||function(r){var o=[],l=Object.prototype.hasOwnProperty;for(var h in r)l.call(r,h)&&o.push(h);return o}},{}],27:[function(s,a){function r(l,h,d){function y(w,T){if(y.count<=0)throw new Error("after called too many times");--y.count,w?(E=!0,h(w),h=d):y.count!==0||E||h(null,T)}var E=!1;return d=d||o,y.count=l,l===0?h():y}function o(){}a.exports=r},{}],28:[function(s,a){a.exports=function(r,o,l){var h=r.byteLength;if(o=o||0,l=l||h,r.slice)return r.slice(o,l);if(0>o&&(o+=h),0>l&&(l+=h),l>h&&(l=h),o>=h||o>=l||h===0)return new ArrayBuffer(0);for(var d=new Uint8Array(r),y=new Uint8Array(l-o),E=o,w=0;l>E;E++,w++)y[w]=d[E];return y.buffer}},{}],29:[function(s,a,r){(function(o){r.encode=function(l){var h,d=new Uint8Array(l),y=d.length,E="";for(h=0;y>h;h+=3)E+=o[d[h]>>2],E+=o[(3&d[h])<<4|d[h+1]>>4],E+=o[(15&d[h+1])<<2|d[h+2]>>6],E+=o[63&d[h+2]];return y%3===2?E=E.substring(0,E.length-1)+"=":y%3===1&&(E=E.substring(0,E.length-2)+"=="),E},r.decode=function(l){var h,d,y,E,w,T=.75*l.length,b=l.length,g=0;l[l.length-1]==="="&&(T--,l[l.length-2]==="="&&T--);var p=new ArrayBuffer(T),_=new Uint8Array(p);for(h=0;b>h;h+=4)d=o.indexOf(l[h]),y=o.indexOf(l[h+1]),E=o.indexOf(l[h+2]),w=o.indexOf(l[h+3]),_[g++]=d<<2|y>>4,_[g++]=(15&y)<<4|E>>2,_[g++]=(3&E)<<6|63&w;return p}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(s,a){(function(r){function o(T){for(var b=0;b<T.length;b++){var g=T[b];if(g.buffer instanceof ArrayBuffer){var p=g.buffer;if(g.byteLength!==p.byteLength){var _=new Uint8Array(g.byteLength);_.set(new Uint8Array(p,g.byteOffset,g.byteLength)),p=_.buffer}T[b]=p}}}function l(T,b){b=b||{};var g=new d;o(T);for(var p=0;p<T.length;p++)g.append(T[p]);return b.type?g.getBlob(b.type):g.getBlob()}function h(T,b){return o(T),new Blob(T,b||{})}var d=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,y=function(){try{var T=new Blob(["hi"]);return T.size===2}catch{return!1}}(),E=y&&function(){try{var T=new Blob([new Uint8Array([1,2])]);return T.size===2}catch{return!1}}(),w=d&&d.prototype.append&&d.prototype.getBlob;a.exports=function(){return y?E?r.Blob:h:w?l:void 0}()}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],31:[function(s,a,r){(function(o){(function(l){function h(B){for(var F,K,j=[],Z=0,N=B.length;N>Z;)F=B.charCodeAt(Z++),F>=55296&&56319>=F&&N>Z?(K=B.charCodeAt(Z++),(64512&K)==56320?j.push(((1023&F)<<10)+(1023&K)+65536):(j.push(F),Z--)):j.push(F);return j}function d(B){for(var F,K=B.length,j=-1,Z="";++j<K;)F=B[j],F>65535&&(F-=65536,Z+=ue(F>>>10&1023|55296),F=56320|1023&F),Z+=ue(F);return Z}function y(B){if(B>=55296&&57343>=B)throw Error("Lone surrogate U+"+B.toString(16).toUpperCase()+" is not a scalar value")}function E(B,F){return ue(B>>F&63|128)}function w(B){if(!(4294967168&B))return ue(B);var F="";return 4294965248&B?4294901760&B?!(4292870144&B)&&(F=ue(B>>18&7|240),F+=E(B,12),F+=E(B,6)):(y(B),F=ue(B>>12&15|224),F+=E(B,6)):F=ue(B>>6&31|192),F+=ue(63&B|128)}function T(B){for(var F,K=h(B),j=K.length,Z=-1,N="";++Z<j;)F=K[Z],N+=w(F);return N}function b(){if(V>=se)throw Error("Invalid byte index");var B=255&J[V];if(V++,(192&B)==128)return 63&B;throw Error("Invalid continuation byte")}function g(){var B,F,K,j,Z;if(V>se)throw Error("Invalid byte index");if(V==se)return!1;if(B=255&J[V],V++,(128&B)==0)return B;if((224&B)==192){var F=b();if(Z=(31&B)<<6|F,Z>=128)return Z;throw Error("Invalid continuation byte")}if((240&B)==224){if(F=b(),K=b(),Z=(15&B)<<12|F<<6|K,Z>=2048)return y(Z),Z;throw Error("Invalid continuation byte")}if((248&B)==240&&(F=b(),K=b(),j=b(),Z=(15&B)<<18|F<<12|K<<6|j,Z>=65536&&1114111>=Z))return Z;throw Error("Invalid UTF-8 detected")}function p(B){J=h(B),se=J.length,V=0;for(var F,K=[];(F=g())!==!1;)K.push(F);return d(K)}var _=typeof r=="object"&&r,S=typeof a=="object"&&a&&a.exports==_&&a,k=typeof o=="object"&&o;(k.global===k||k.window===k)&&(l=k);var J,se,V,ue=String.fromCharCode,X={version:"2.0.0",encode:T,decode:p};if(_&&!_.nodeType)if(S)S.exports=X;else{var D={},P=D.hasOwnProperty;for(var q in X)P.call(X,q)&&(_[q]=X[q])}else l.utf8=X})(this)}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],32:[function(s,a){(function(r){var o=/^[\],:{}\s]*$/,l=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,h=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:\s*\[)+/g,y=/^\s+/,E=/\s+$/;a.exports=function(w){return typeof w=="string"&&w?(w=w.replace(y,"").replace(E,""),r.JSON&&JSON.parse?JSON.parse(w):o.test(w.replace(l,"@").replace(h,"]").replace(d,""))?new Function("return "+w)():void 0):null}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],33:[function(s,a,r){r.encode=function(o){var l="";for(var h in o)o.hasOwnProperty(h)&&(l.length&&(l+="&"),l+=encodeURIComponent(h)+"="+encodeURIComponent(o[h]));return l},r.decode=function(o){for(var l={},h=o.split("&"),d=0,y=h.length;y>d;d++){var E=h[d].split("=");l[decodeURIComponent(E[0])]=decodeURIComponent(E[1])}return l}},{}],34:[function(s,a){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];a.exports=function(l){var h=l,d=l.indexOf("["),y=l.indexOf("]");d!=-1&&y!=-1&&(l=l.substring(0,d)+l.substring(d,y).replace(/:/g,";")+l.substring(y,l.length));for(var E=r.exec(l||""),w={},T=14;T--;)w[o[T]]=E[T]||"";return d!=-1&&y!=-1&&(w.source=h,w.host=w.host.substring(1,w.host.length-1).replace(/;/g,":"),w.authority=w.authority.replace("[","").replace("]","").replace(/;/g,":"),w.ipv6uri=!0),w}},{}],35:[function(s,a){function r(h,d){return d?new l(h,d):new l(h)}var o=function(){return self}(),l=o.WebSocket||o.MozWebSocket;a.exports=l?r:null,l&&(r.prototype=l.prototype)},{}],36:[function(s,a){(function(r){function o(h){function d(y){if(!y)return!1;if(r.Buffer&&r.Buffer.isBuffer(y)||r.ArrayBuffer&&y instanceof ArrayBuffer||r.Blob&&y instanceof Blob||r.File&&y instanceof File)return!0;if(l(y)){for(var E=0;E<y.length;E++)if(d(y[E]))return!0}else if(y&&typeof y=="object"){y.toJSON&&(y=y.toJSON());for(var w in y)if(Object.prototype.hasOwnProperty.call(y,w)&&d(y[w]))return!0}return!1}return d(h)}var l=s("isarray");a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{isarray:37}],37:[function(s,a){a.exports=Array.isArray||function(r){return Object.prototype.toString.call(r)=="[object Array]"}},{}],38:[function(s,a){var r=s("global");try{a.exports="XMLHttpRequest"in r&&"withCredentials"in new r.XMLHttpRequest}catch{a.exports=!1}},{global:39}],39:[function(s,a){a.exports=function(){return this}()},{}],40:[function(s,a){var r=[].indexOf;a.exports=function(o,l){if(r)return o.indexOf(l);for(var h=0;h<o.length;++h)if(o[h]===l)return h;return-1}},{}],41:[function(s,a,r){var o=Object.prototype.hasOwnProperty;r.keys=Object.keys||function(l){var h=[];for(var d in l)o.call(l,d)&&h.push(d);return h},r.values=function(l){var h=[];for(var d in l)o.call(l,d)&&h.push(l[d]);return h},r.merge=function(l,h){for(var d in h)o.call(h,d)&&(l[d]=h[d]);return l},r.length=function(l){return r.keys(l).length},r.isEmpty=function(l){return r.length(l)==0}},{}],42:[function(s,a){var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];a.exports=function(l){for(var h=r.exec(l||""),d={},y=14;y--;)d[o[y]]=h[y]||"";return d}},{}],43:[function(s,a,r){(function(o){var l=s("isarray"),h=s("./is-buffer");r.deconstructPacket=function(d){function y(b){if(!b)return b;if(h(b)){var g={_placeholder:!0,num:E.length};return E.push(b),g}if(l(b)){for(var p=new Array(b.length),_=0;_<b.length;_++)p[_]=y(b[_]);return p}if(typeof b=="object"&&!(b instanceof Date)){var p={};for(var S in b)p[S]=y(b[S]);return p}return b}var E=[],w=d.data,T=d;return T.data=y(w),T.attachments=E.length,{packet:T,buffers:E}},r.reconstructPacket=function(d,y){function E(w){if(w&&w._placeholder){var T=y[w.num];return T}if(l(w)){for(var b=0;b<w.length;b++)w[b]=E(w[b]);return w}if(w&&typeof w=="object"){for(var g in w)w[g]=E(w[g]);return w}return w}return d.data=E(d.data),d.attachments=void 0,d},r.removeBlobs=function(d,y){function E(b,g,p){if(!b)return b;if(o.Blob&&b instanceof Blob||o.File&&b instanceof File){w++;var _=new FileReader;_.onload=function(){p?p[g]=this.result:T=this.result,--w||y(T)},_.readAsArrayBuffer(b)}else if(l(b))for(var S=0;S<b.length;S++)E(b[S],S,b);else if(b&&typeof b=="object"&&!h(b))for(var k in b)E(b[k],k,b)}var w=0,T=d;E(T),w||y(T)}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./is-buffer":45,isarray:46}],44:[function(s,a,r){function o(){}function l(S){var k="",J=!1;return k+=S.type,(r.BINARY_EVENT==S.type||r.BINARY_ACK==S.type)&&(k+=S.attachments,k+="-"),S.nsp&&S.nsp!="/"&&(J=!0,k+=S.nsp),S.id!=null&&(J&&(k+=",",J=!1),k+=S.id),S.data!=null&&(J&&(k+=","),k+=b.stringify(S.data)),T("encoded %j as %s",S,k),k}function h(S,k){function J(se){var V=p.deconstructPacket(se),ue=l(V.packet),X=V.buffers;X.unshift(ue),k(X)}p.removeBlobs(S,J)}function d(){this.reconstructor=null}function y(S){var k={},J=0;if(k.type=Number(S.charAt(0)),r.types[k.type]==null)return w();if(r.BINARY_EVENT==k.type||r.BINARY_ACK==k.type){for(var se="";S.charAt(++J)!="-"&&(se+=S.charAt(J),J!=S.length););if(se!=Number(se)||S.charAt(J)!="-")throw new Error("Illegal attachments");k.attachments=Number(se)}if(S.charAt(J+1)=="/")for(k.nsp="";++J;){var V=S.charAt(J);if(V==","||(k.nsp+=V,J==S.length))break}else k.nsp="/";var ue=S.charAt(J+1);if(ue!==""&&Number(ue)==ue){for(k.id="";++J;){var V=S.charAt(J);if(V==null||Number(V)!=V){--J;break}if(k.id+=S.charAt(J),J==S.length)break}k.id=Number(k.id)}if(S.charAt(++J))try{k.data=b.parse(S.substr(J))}catch{return w()}return T("decoded %s as %j",S,k),k}function E(S){this.reconPack=S,this.buffers=[]}function w(){return{type:r.ERROR,data:"parser error"}}var T=s("debug")("socket.io-parser"),b=s("json3"),g=(s("isarray"),s("component-emitter")),p=s("./binary"),_=s("./is-buffer");r.protocol=4,r.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],r.CONNECT=0,r.DISCONNECT=1,r.EVENT=2,r.ACK=3,r.ERROR=4,r.BINARY_EVENT=5,r.BINARY_ACK=6,r.Encoder=o,r.Decoder=d,o.prototype.encode=function(S,k){if(T("encoding packet %j",S),r.BINARY_EVENT==S.type||r.BINARY_ACK==S.type)h(S,k);else{var J=l(S);k([J])}},g(d.prototype),d.prototype.add=function(S){var k;if(typeof S=="string")k=y(S),r.BINARY_EVENT==k.type||r.BINARY_ACK==k.type?(this.reconstructor=new E(k),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",k)):this.emit("decoded",k);else{if(!_(S)&&!S.base64)throw new Error("Unknown type: "+S);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");k=this.reconstructor.takeBinaryData(S),k&&(this.reconstructor=null,this.emit("decoded",k))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},E.prototype.takeBinaryData=function(S){if(this.buffers.push(S),this.buffers.length==this.reconPack.attachments){var k=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),k}return null},E.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":43,"./is-buffer":45,"component-emitter":9,debug:10,isarray:46,json3:47}],45:[function(s,a){(function(r){function o(l){return r.Buffer&&r.Buffer.isBuffer(l)||r.ArrayBuffer&&l instanceof ArrayBuffer}a.exports=o}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],46:[function(s,a){a.exports=s(37)},{}],47:[function(s,a,r){(function(o){function l(H){if(l[H]!==y)return l[H];var $;if(H=="bug-string-char-index")$="a"[0]!="a";else if(H=="json")$=l("json-stringify")&&l("json-parse");else{var M,te='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(H=="json-stringify"){var U=T.stringify,Q=typeof U=="function"&&b;if(Q){(M=function(){return 1}).toJSON=M;try{Q=U(0)==="0"&&U(new Number)==="0"&&U(new String)=='""'&&U(E)===y&&U(y)===y&&U()===y&&U(M)==="1"&&U([M])=="[1]"&&U([y])=="[null]"&&U(null)=="null"&&U([y,E,null])=="[null,null,null]"&&U({a:[M,!0,!1,null,`\0\b
|
|
37
|
+
\f\r `]})==te&&U(null,M)==="1"&&U([1,2],null,1)==`[
|
|
38
38
|
1,
|
|
39
39
|
2
|
|
40
|
-
]`&&
|
|
40
|
+
]`&&U(new Date(-864e13))=='"-271821-04-20T00:00:00.000Z"'&&U(new Date(864e13))=='"+275760-09-13T00:00:00.000Z"'&&U(new Date(-621987552e5))=='"-000001-01-01T00:00:00.000Z"'&&U(new Date(-1))=='"1969-12-31T23:59:59.999Z"'}catch{Q=!1}}$=Q}if(H=="json-parse"){var ee=T.parse;if(typeof ee=="function")try{if(ee("0")===0&&!ee(!1)){M=ee(te);var z=M.a.length==5&&M.a[0]===1;if(z){try{z=!ee('" "')}catch{}if(z)try{z=ee("01")!==1}catch{}if(z)try{z=ee("1.")!==1}catch{}}}}catch{z=!1}$=z}}return l[H]=!!$}var h,d,y,E={}.toString,w=typeof JSON=="object"&&JSON,T=typeof r=="object"&&r&&!r.nodeType&&r;T&&w?(T.stringify=w.stringify,T.parse=w.parse):T=o.JSON=w||{};var b=new Date(-0xc782b5b800cec);try{b=b.getUTCFullYear()==-109252&&b.getUTCMonth()===0&&b.getUTCDate()===1&&b.getUTCHours()==10&&b.getUTCMinutes()==37&&b.getUTCSeconds()==6&&b.getUTCMilliseconds()==708}catch{}if(!l("json")){var g="[object Function]",p="[object Date]",_="[object Number]",S="[object String]",k="[object Array]",J="[object Boolean]",se=l("bug-string-char-index");if(!b)var V=Math.floor,ue=[0,31,59,90,120,151,181,212,243,273,304,334],X=function(H,$){return ue[$]+365*(H-1970)+V((H-1969+($=+($>1)))/4)-V((H-1901+$)/100)+V((H-1601+$)/400)};(h={}.hasOwnProperty)||(h=function(H){var $,M={};return(M.__proto__=null,M.__proto__={toString:1},M).toString!=E?h=function(te){var U=this.__proto__,Q=te in(this.__proto__=null,this);return this.__proto__=U,Q}:($=M.constructor,h=function(te){var U=(this.constructor||$).prototype;return te in this&&!(te in U&&this[te]===U[te])}),M=null,h.call(this,H)});var D={boolean:1,number:1,string:1,undefined:1},P=function(H,$){var M=typeof H[$];return M=="object"?!!H[$]:!D[M]};if(d=function(H,$){var M,te,U,Q=0;(M=function(){this.valueOf=0}).prototype.valueOf=0,te=new M;for(U in te)h.call(te,U)&&Q++;return M=te=null,Q?d=Q==2?function(ee,z){var oe,_e={},He=E.call(ee)==g;for(oe in ee)He&&oe=="prototype"||h.call(_e,oe)||!(_e[oe]=1)||!h.call(ee,oe)||z(oe)}:function(ee,z){var oe,_e,He=E.call(ee)==g;for(oe in ee)He&&oe=="prototype"||!h.call(ee,oe)||(_e=oe==="constructor")||z(oe);(_e||h.call(ee,oe="constructor"))&&z(oe)}:(te=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],d=function(ee,z){var oe,_e,He=E.call(ee)==g,Te=!He&&typeof ee.constructor!="function"&&P(ee,"hasOwnProperty")?ee.hasOwnProperty:h;for(oe in ee)He&&oe=="prototype"||!Te.call(ee,oe)||z(oe);for(_e=te.length;oe=te[--_e];Te.call(ee,oe)&&z(oe));}),d(H,$)},!l("json-stringify")){var q={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},B="000000",F=function(H,$){return(B+($||0)).slice(-H)},K="\\u00",j=function(H){var $,M='"',te=0,U=H.length,Q=U>10&&se;for(Q&&($=H.split(""));U>te;te++){var ee=H.charCodeAt(te);switch(ee){case 8:case 9:case 10:case 12:case 13:case 34:case 92:M+=q[ee];break;default:if(32>ee){M+=K+F(2,ee.toString(16));break}M+=Q?$[te]:se?H.charAt(te):H[te]}}return M+'"'},Z=function(H,$,M,te,U,Q,ee){var z,oe,_e,He,Te,dt,yn,je,en,_n,Xe,Ge,wt,bt,mn,St;try{z=$[H]}catch{}if(typeof z=="object"&&z)if(oe=E.call(z),oe!=p||h.call(z,"toJSON"))typeof z.toJSON=="function"&&(oe!=_&&oe!=S&&oe!=k||h.call(z,"toJSON"))&&(z=z.toJSON(H));else if(z>-1/0&&1/0>z){if(X){for(Te=V(z/864e5),_e=V(Te/365.2425)+1970-1;X(_e+1,0)<=Te;_e++);for(He=V((Te-X(_e,0))/30.42);X(_e,He+1)<=Te;He++);Te=1+Te-X(_e,He),dt=(z%864e5+864e5)%864e5,yn=V(dt/36e5)%24,je=V(dt/6e4)%60,en=V(dt/1e3)%60,_n=dt%1e3}else _e=z.getUTCFullYear(),He=z.getUTCMonth(),Te=z.getUTCDate(),yn=z.getUTCHours(),je=z.getUTCMinutes(),en=z.getUTCSeconds(),_n=z.getUTCMilliseconds();z=(0>=_e||_e>=1e4?(0>_e?"-":"+")+F(6,0>_e?-_e:_e):F(4,_e))+"-"+F(2,He+1)+"-"+F(2,Te)+"T"+F(2,yn)+":"+F(2,je)+":"+F(2,en)+"."+F(3,_n)+"Z"}else z=null;if(M&&(z=M.call($,H,z)),z===null)return"null";if(oe=E.call(z),oe==J)return""+z;if(oe==_)return z>-1/0&&1/0>z?""+z:"null";if(oe==S)return j(""+z);if(typeof z=="object"){for(bt=ee.length;bt--;)if(ee[bt]===z)throw TypeError();if(ee.push(z),Xe=[],mn=Q,Q+=U,oe==k){for(wt=0,bt=z.length;bt>wt;wt++)Ge=Z(wt,z,M,te,U,Q,ee),Xe.push(Ge===y?"null":Ge);St=Xe.length?U?`[
|
|
41
41
|
`+Q+Xe.join(`,
|
|
42
42
|
`+Q)+`
|
|
43
|
-
`+mn+"]":"["+Xe.join(",")+"]":"[]"}else d(te||z,function(wn){var Ft=
|
|
43
|
+
`+mn+"]":"["+Xe.join(",")+"]":"[]"}else d(te||z,function(wn){var Ft=Z(wn,z,M,te,U,Q,ee);Ft!==y&&Xe.push(j(wn)+":"+(U?" ":"")+Ft)}),St=Xe.length?U?`{
|
|
44
44
|
`+Q+Xe.join(`,
|
|
45
45
|
`+Q)+`
|
|
46
|
-
`+mn+"}":"{"+Xe.join(",")+"}":"{}";return ee.pop(),
|
|
47
|
-
`,102:"\f",114:"\r"},ae=function(){throw N=be=null,SyntaxError()},Pe=function(){for(var H,$,M,te,
|
|
46
|
+
`+mn+"}":"{"+Xe.join(",")+"}":"{}";return ee.pop(),St}};T.stringify=function(H,$,M){var te,U,Q,ee;if(typeof $=="function"||typeof $=="object"&&$){if((ee=E.call($))==g)U=$;else if(ee==k){Q={};for(var z,oe=0,_e=$.length;_e>oe;z=$[oe++],ee=E.call(z),(ee==S||ee==_)&&(Q[z]=1));}}if(M)if((ee=E.call(M))==_){if((M-=M%1)>0)for(te="",M>10&&(M=10);te.length<M;te+=" ");}else ee==S&&(te=M.length<=10?M:M.slice(0,10));return Z("",(z={},z[""]=H,z),U,Q,te,"",[])}}if(!l("json-parse")){var N,be,xe=String.fromCharCode,Ce={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:`
|
|
47
|
+
`,102:"\f",114:"\r"},ae=function(){throw N=be=null,SyntaxError()},Pe=function(){for(var H,$,M,te,U,Q=be,ee=Q.length;ee>N;)switch(U=Q.charCodeAt(N)){case 9:case 10:case 13:case 32:N++;break;case 123:case 125:case 91:case 93:case 58:case 44:return H=se?Q.charAt(N):Q[N],N++,H;case 34:for(H="@",N++;ee>N;)if(U=Q.charCodeAt(N),32>U)ae();else if(U==92)switch(U=Q.charCodeAt(++N)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:H+=Ce[U],N++;break;case 117:for($=++N,M=N+4;M>N;N++)U=Q.charCodeAt(N),U>=48&&57>=U||U>=97&&102>=U||U>=65&&70>=U||ae();H+=xe("0x"+Q.slice($,N));break;default:ae()}else{if(U==34)break;for(U=Q.charCodeAt(N),$=N;U>=32&&U!=92&&U!=34;)U=Q.charCodeAt(++N);H+=Q.slice($,N)}if(Q.charCodeAt(N)==34)return N++,H;ae();default:if($=N,U==45&&(te=!0,U=Q.charCodeAt(++N)),U>=48&&57>=U){for(U==48&&(U=Q.charCodeAt(N+1),U>=48&&57>=U)&&ae(),te=!1;ee>N&&(U=Q.charCodeAt(N),U>=48&&57>=U);N++);if(Q.charCodeAt(N)==46){for(M=++N;ee>M&&(U=Q.charCodeAt(M),U>=48&&57>=U);M++);M==N&&ae(),N=M}if(U=Q.charCodeAt(N),U==101||U==69){for(U=Q.charCodeAt(++N),(U==43||U==45)&&N++,M=N;ee>M&&(U=Q.charCodeAt(M),U>=48&&57>=U);M++);M==N&&ae(),N=M}return+Q.slice($,N)}if(te&&ae(),Q.slice(N,N+4)=="true")return N+=4,!0;if(Q.slice(N,N+5)=="false")return N+=5,!1;if(Q.slice(N,N+4)=="null")return N+=4,null;ae()}return"$"},mt=function(H){var $,M;if(H=="$"&&ae(),typeof H=="string"){if((se?H.charAt(0):H[0])=="@")return H.slice(1);if(H=="["){for($=[];H=Pe(),H!="]";M||(M=!0))M&&(H==","?(H=Pe(),H=="]"&&ae()):ae()),H==","&&ae(),$.push(mt(H));return $}if(H=="{"){for($={};H=Pe(),H!="}";M||(M=!0))M&&(H==","?(H=Pe(),H=="}"&&ae()):ae()),(H==","||typeof H!="string"||(se?H.charAt(0):H[0])!="@"||Pe()!=":")&&ae(),$[H.slice(1)]=mt(Pe());return $}ae()}return H},Qe=function(H,$,M){var te=Dn(H,$,M);te===y?delete H[$]:H[$]=te},Dn=function(H,$,M){var te,U=H[$];if(typeof U=="object"&&U)if(E.call(U)==k)for(te=U.length;te--;)Qe(U,te,M);else d(U,function(Q){Qe(U,Q,M)});return M.call(H,$,U)};T.parse=function(H,$){var M,te;return N=0,be=""+H,M=mt(Pe()),Pe()!="$"&&ae(),N=be=null,$&&E.call($)==g?Dn((te={},te[""]=M,te),"",$):M}}}})(this)},{}],48:[function(s,a){function r(o,l){var h=[];l=l||0;for(var d=l||0;d<o.length;d++)h[d-l]=o[d];return h}a.exports=r},{}]},{},[1])(1)}const __vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:v1_3_7},Symbol.toStringTag,{value:"Module"})),importModules=Object.assign({"./v1_3_7.js":__vite_glob_0_0}),SOCKET_NAME_REGEX=/v\d+_\d+_\d+/;function isSocketIoFn(s){return typeof s=="function"}const sockets=Object.entries(importModules).reduce((s,a)=>{var l;const r=a[1].default,o=(l=a[0].match(SOCKET_NAME_REGEX))==null?void 0:l[0];return isSocketIoFn(r)&&o&&(s[o]=r()),s},{}),getSocketVersion=s=>{if(s in sockets)return sockets[s];throw new Error(`Socket version ${s} not found`)},makeSocketVersion=(s,...a)=>getSocketVersion(s)(...a),sockets$1={...sockets,getSocketVersion,makeSocketVersion};var EventsEnum=(s=>(s.ALL_DIALER_STATUS="AllDialersStatus",s.ALL_EXTENSION_STATUS="AllExtensionsStatus",s.ALL_USERS_STATUS="AllUsersStatus",s.CONNECT="connect",s.DISCONNECT="disconnect",s.EXTENSION_EVENT="ExtensionEvent",s.KEEP_ALIVE="keepalive",s.KEEP_ALIVE_RESPONSE="keepaliveResponse",s.LOGIN_STATUS="loginStatus",s.LOGIN_SUCCESS="loginSuccess",s.QUEUE_EVENT="QueueEvent",s.ONLINE_STATUS_EVENT="onlineStatusEvent",s.DIALER_EVENT="DialerEvent",s))(EventsEnum||{});class SocketIoClass{constructor(a){Le(this,"io");Le(this,"ioFunction");Le(this,"lastEventTimestamp",new Date().getTime());Le(this,"keepAliveInterval");Le(this,"keepReconnectInterval");Le(this,"connected",!1);this.eventsSdkClass=a,this.eventsSdkClass=a}getSocketIoFunction(a){const r=a.split("v="),o="v".concat(r[r.length-1]).replaceAll(".","_");this.ioFunction=sockets$1.getSocketVersion(o)}initSocketConnection(){const a=this.eventsSdkClass.authClass.token,r=this.eventsSdkClass.options.protocol,o=this.eventsSdkClass.server;try{const l=o.Domain,h=`${r}://${l}`,d={reconnection:!1,upgrade:!1,transports:["websocket"],forceNew:!0,query:{token:a}};a&&(d.query={token:a}),this.ioFunction&&(this.io=this.ioFunction(h,d))}catch{}}initSocketEvents(){this.io&&this.io.on(EventsEnum.LOGIN_SUCCESS,a=>this.eventsSdkClass.emit(EventsEnum.LOGIN_SUCCESS,a)).on(EventsEnum.QUEUE_EVENT,a=>this.eventsSdkClass.emit(EventsEnum.QUEUE_EVENT,a)).on(EventsEnum.EXTENSION_EVENT,a=>this.eventsSdkClass.emit(EventsEnum.EXTENSION_EVENT,a)).on(EventsEnum.DIALER_EVENT,a=>this.eventsSdkClass.emit(EventsEnum.DIALER_EVENT,a)).on(EventsEnum.LOGIN_STATUS,a=>this.eventsSdkClass.emit(EventsEnum.LOGIN_STATUS,a)).on(EventsEnum.ALL_EXTENSION_STATUS,a=>this.eventsSdkClass.emit(EventsEnum.ALL_EXTENSION_STATUS,a)).on(EventsEnum.ALL_DIALER_STATUS,a=>this.eventsSdkClass.emit(EventsEnum.ALL_DIALER_STATUS,a)).on(EventsEnum.KEEP_ALIVE_RESPONSE,a=>this.onKeepAliveResponse(a)).on(EventsEnum.CONNECT,()=>this.onConnect()).on(EventsEnum.DISCONNECT,()=>this.onDisconnect())}initKeepAlive(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(async()=>{if(new Date().getTime()>this.lastEventTimestamp+this.eventsSdkClass.options.keepAliveTimeout&&this.io){this.io.emit(EventsEnum.KEEP_ALIVE,this.eventsSdkClass.authClass.token);return}},this.eventsSdkClass.options.keepAliveTimeout)}closeAllConnections(){this.io&&(this.io.close(),this.io.disconnect(),this.io=void 0),this.eventsSdkClass.options.environment===Environment.BROWSER&&window&&window.sessionStorage.clear(),this.eventsSdkClass.options.environment===Environment.CHROME_EXTENSION&&chrome&&chrome.storage.session.clear()}onKeepAliveResponse(a){if(a.errorCode){this.initSocketConnection();return}this.connected?this.lastEventTimestamp=new Date().getTime():this.initSocketConnection()}onConnect(){this.keepReconnectInterval&&clearInterval(this.keepReconnectInterval),this.connected=!0,this.eventsSdkClass.emit(EventsEnum.ONLINE_STATUS_EVENT,{isSocketConnected:!0})}onDisconnect(){this.connected=!1,this.closeAllConnections(),this.eventsSdkClass.emit(EventsEnum.ONLINE_STATUS_EVENT,{isSocketConnected:!1}),this.keepReconnectInterval=setInterval(()=>{console.log("attempt to connect..."),this.eventsSdkClass.connect(ServerParameter.NEXT,!0)},15e3)}}class EventsSdkClass{constructor(a){Le(this,"argumentOptions");Le(this,"options",{...eventsSdkDefaultOptions});Le(this,"servers",[]);Le(this,"server");Le(this,"socket");Le(this,"authClass",new AuthClass(this));Le(this,"socketIoClass",new SocketIoClass(this));Le(this,"reconnectOptions",{retryCount:1,maxReconnectAttempts:this.options.maxReconnectAttempts,reconnectionDelay:this.options.reconnectionDelay,minReconnectionDelay:this.options.reconnectionDelay,maxReconnectionDelay:6e4*5});Le(this,"retryConnection",lodashExports.debounce(this.connect.bind(this),this.reconnectOptions.reconnectionDelay,{leading:!0,trailing:!1}));Le(this,"listeners",{[EventsEnum.ALL_EXTENSION_STATUS]:[],[EventsEnum.ALL_DIALER_STATUS]:[],[EventsEnum.ALL_USERS_STATUS]:[],[EventsEnum.QUEUE_EVENT]:[],[EventsEnum.EXTENSION_EVENT]:[],[EventsEnum.DIALER_EVENT]:[],[EventsEnum.LOGIN_SUCCESS]:[],[EventsEnum.LOGIN_STATUS]:[],[EventsEnum.KEEP_ALIVE_RESPONSE]:[],[EventsEnum.ONLINE_STATUS_EVENT]:[]});Le(this,"allListeners",[]);this.options={...eventsSdkDefaultOptions,...a},this.server=this.options.fallbackServer,this.argumentOptions={...a}}on(a,r){a==="*"?this.allListeners.push(r):this.listeners[a].push(r)}off(a,r){if(a==="*")this.allListeners=this.allListeners.filter(o=>o!==r);else{const l=this.listeners[a].filter(h=>h!==r);this.listeners={...this.listeners,[a]:l}}}emit(a,r){this.socketIoClass.lastEventTimestamp=new Date().getTime(),this.listeners[a].forEach(l=>l({name:a,data:r}));const o={name:a,data:r};this.allListeners.forEach(l=>l(o))}connect(a=ServerParameter.DEFAULT,r=!1){let o;a===ServerParameter.DEFAULT&&(o=this.findCurrentServer()),a===ServerParameter.NEXT&&(o=this.findNextAvailableServer()),a===ServerParameter.PREVIOUS&&(o=this.findMaxPriorityServer()),o||(this.server=this.findCurrentServer()),this.socketIoClass.initSocketConnection(),this.socketIoClass.initSocketEvents(),this.socketIoClass.initKeepAlive()}findCurrentServer(){return this.servers.length&&(this.server=this.servers[0]),this.server||(this.server=this.options.fallbackServer),this.server}findNextAvailableServer(){const r=this.server.Priority+1,o=this.servers.find(l=>l.Priority===r)||this.findMinPriorityServer();return this.server={...o},this.server}findMaxPriorityServer(){const a=this.getServerWithHighestPriority(this.servers);return this.server?this.server&&a.Domain!==this.server.Domain?(this.server=a,this.server):this.server:(this.server=a,this.server)}findMinPriorityServer(){const a=Math.min(...this.servers.map(o=>o.Priority)),r=this.servers.find(o=>o.Priority===a);return r?(this.server=r,this.server):this.server}getServerWithHighestPriority(a){let r,o=Number.MAX_SAFE_INTEGER;return r=a.find(l=>{l.Priority<o&&(o=l.Priority,r=l)}),r||this.server}async init(){return this.socket,await this.authClass.login(this.options),this.getServers(),!0}getServers(){this.options.serverFetchStrategy==="static"&&this.argumentOptions.servers&&Array.isArray(this.argumentOptions.servers)&&this.argumentOptions.servers.length>1&&(this.servers=this.argumentOptions.servers)}}module.exports=EventsSdkClass;
|
|
48
48
|
//# sourceMappingURL=voicenter-events-sdk.cjs.js.map
|