cmd-control-client-lib 3.0.1
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/.arcconfig +4 -0
- package/.eslintignore +3 -0
- package/.eslintrc.js +65 -0
- package/.husky/pre-commit +5 -0
- package/README.md +35 -0
- package/dist/@types/enum-boolean-digitized.d.ts +4 -0
- package/dist/@types/enum-boolean-stringified-extended.d.ts +6 -0
- package/dist/@types/enum-boolean-stringified.d.ts +4 -0
- package/dist/@types/enum-channel-flags.d.ts +14 -0
- package/dist/@types/enum-currency.d.ts +5 -0
- package/dist/@types/enum-status-type.d.ts +15 -0
- package/dist/@types/icurrency-description.d.ts +5 -0
- package/dist/@types/iemoji.d.ts +4 -0
- package/dist/@types/index.d.ts +9 -0
- package/dist/@types/json-stringified.d.ts +8 -0
- package/dist/cmd-connection.d.ts +71 -0
- package/dist/cmd-control-client-lib.js +2 -0
- package/dist/cmd-control-client-lib.js.map +1 -0
- package/dist/cmd-control-lib.d.ts +5 -0
- package/dist/cmd-protocol.d.ts +35 -0
- package/dist/cmd-session.d.ts +15 -0
- package/dist/logger.d.ts +28 -0
- package/dist/protocol/b2b/b2bcontact.d.ts +58 -0
- package/dist/protocol/b2b/b2buserinfo.d.ts +106 -0
- package/dist/protocol/backend.d.ts +48 -0
- package/dist/protocol/channel.d.ts +341 -0
- package/dist/protocol/channelinfo.d.ts +98 -0
- package/dist/protocol/chatstate.d.ts +42 -0
- package/dist/protocol/command/action.d.ts +116 -0
- package/dist/protocol/command/baseparams.d.ts +40 -0
- package/dist/protocol/command/icommand.d.ts +61 -0
- package/dist/protocol/command/resultcode.d.ts +44 -0
- package/dist/protocol/connection.d.ts +16 -0
- package/dist/protocol/contactnote.d.ts +62 -0
- package/dist/protocol/gifts.d.ts +19 -0
- package/dist/protocol/init.d.ts +64 -0
- package/dist/protocol/live/devicestatus.d.ts +30 -0
- package/dist/protocol/live/live-commands.d.ts +386 -0
- package/dist/protocol/live/login.d.ts +14 -0
- package/dist/protocol/live/onlinesummary.d.ts +21 -0
- package/dist/protocol/live/products-config.d.ts +19 -0
- package/dist/protocol/live/streamstate.d.ts +25 -0
- package/dist/protocol/live/supdate.d.ts +34 -0
- package/dist/protocol/live/usersettings.d.ts +40 -0
- package/dist/protocol/lobby.d.ts +37 -0
- package/dist/protocol/login.d.ts +57 -0
- package/dist/protocol/logout.d.ts +22 -0
- package/dist/protocol/mediaoffer.d.ts +48 -0
- package/dist/protocol/mediapurchase.d.ts +49 -0
- package/dist/protocol/mediaupload.d.ts +86 -0
- package/dist/protocol/message.d.ts +184 -0
- package/dist/protocol/messenger/expo.d.ts +19 -0
- package/dist/protocol/noop.d.ts +14 -0
- package/dist/protocol/onlinestate.d.ts +74 -0
- package/dist/protocol/sessionstate.d.ts +74 -0
- package/dist/protocol/systemmessagekey.d.ts +157 -0
- package/dist/protocol/toy.d.ts +60 -0
- package/dist/protocol/unused.d.ts +26 -0
- package/dist/protocol/update-state.d.ts +11 -0
- package/dist/version.d.ts +1 -0
- package/package.json +88 -0
- package/test/.eslintrc.js +12 -0
- package/test/json-stringified.spec.ts +11 -0
- package/test/result.spec.ts +18 -0
- package/test/session-state.spec.ts +23 -0
- package/workspace.code-workspace +13 -0
package/.arcconfig
ADDED
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// eslint-disable-next-line unicorn/prefer-module
|
|
2
|
+
module.exports = {
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
es6: true,
|
|
6
|
+
},
|
|
7
|
+
globals: {
|
|
8
|
+
Atomics: "readonly",
|
|
9
|
+
SharedArrayBuffer: "readonly",
|
|
10
|
+
},
|
|
11
|
+
parser: "@typescript-eslint/parser",
|
|
12
|
+
extends: [
|
|
13
|
+
"eslint:recommended",
|
|
14
|
+
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
|
|
15
|
+
"plugin:sonarjs/recommended",
|
|
16
|
+
"plugin:unicorn/recommended",
|
|
17
|
+
"plugin:prettier/recommended",
|
|
18
|
+
],
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 2018,
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
},
|
|
23
|
+
plugins: ["@typescript-eslint", "sonarjs", "eslint-plugin-tsdoc", "unicorn", "prettier", "deprecation"],
|
|
24
|
+
rules: {
|
|
25
|
+
// "linebreak-style": ["warn", process.platform === "win32" ? "windows" : "unix"],
|
|
26
|
+
"sonarjs/cognitive-complexity": "warn",
|
|
27
|
+
"tsdoc/syntax": "warn",
|
|
28
|
+
"unicorn/prevent-abbreviations": "off",
|
|
29
|
+
"unicorn/prefer-add-event-listener": "off",
|
|
30
|
+
"unicorn/no-null": "warn",
|
|
31
|
+
"unicorn/no-useless-undefined": "off",
|
|
32
|
+
"unicorn/prefer-ternary": "warn",
|
|
33
|
+
"unicorn/no-array-for-each": "off",
|
|
34
|
+
"unicorn/no-array-reduce": "off",
|
|
35
|
+
"unicorn/numeric-separators-style": "warn",
|
|
36
|
+
"prettier/prettier": ["warn", { endOfLine: "auto" }],
|
|
37
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
38
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
39
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
40
|
+
"@typescript-eslint/consistent-type-assertions": "error",
|
|
41
|
+
"@typescript-eslint/naming-convention": [
|
|
42
|
+
"error",
|
|
43
|
+
{
|
|
44
|
+
selector: "default",
|
|
45
|
+
modifiers: ["private"],
|
|
46
|
+
format: ["camelCase"],
|
|
47
|
+
leadingUnderscore: "require",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
"@typescript-eslint/no-parameter-properties": "error",
|
|
51
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
52
|
+
"@typescript-eslint/prefer-function-type": "warn",
|
|
53
|
+
"@typescript-eslint/prefer-literal-enum-member": "error",
|
|
54
|
+
"@typescript-eslint/prefer-optional-chain": "warn",
|
|
55
|
+
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
56
|
+
"@typescript-eslint/type-annotation-spacing": "warn",
|
|
57
|
+
// '@typescript-eslint/promise-function-async': 'warn',
|
|
58
|
+
// '@typescript-eslint/prefer-readonly-parameter-types': 'warn',
|
|
59
|
+
// '@typescript-eslint/prefer-readonly': 'warn',
|
|
60
|
+
// '@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
61
|
+
// '@typescript-eslint/prefer-includes': 'warn',
|
|
62
|
+
// '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'warn',
|
|
63
|
+
// '@typescript-eslint/no-unnecessary-condition': 'warn'
|
|
64
|
+
},
|
|
65
|
+
};
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# cmd-control-client-lib
|
|
2
|
+
|
|
3
|
+
The library includes:
|
|
4
|
+
|
|
5
|
+
- cmd-control protocol definition
|
|
6
|
+
|
|
7
|
+
- base cmd-control-client-connection wrapper with reconnect, handler for server-switch
|
|
8
|
+
|
|
9
|
+
## Installing
|
|
10
|
+
|
|
11
|
+
For the latest stable version:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install cmd-control-client-lib
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
plese use the repo "cmd-control-client-lib-demo"
|
|
21
|
+
|
|
22
|
+
## Docu
|
|
23
|
+
|
|
24
|
+
generate docs with typedoc
|
|
25
|
+
|
|
26
|
+
markdown:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm run-script generate:docs
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## wiki
|
|
34
|
+
|
|
35
|
+
comming soon
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum EnumChannelFlags {
|
|
2
|
+
ARCHIVED = "archived",
|
|
3
|
+
REGULAR = "regularCustomer",
|
|
4
|
+
ADVERTISED = "advertised",
|
|
5
|
+
DELETED = "deleted",
|
|
6
|
+
LOCKED = "locked",
|
|
7
|
+
UNANSWERED = "unanswered",
|
|
8
|
+
PINNED = "pinned",
|
|
9
|
+
MUTED = "muted",
|
|
10
|
+
BOUGHTMEDIA = "boughtMedia",
|
|
11
|
+
FOLLOWME = "followMe",
|
|
12
|
+
BANNED = "banned",
|
|
13
|
+
BANNEDME = "bannedMe"
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see CMDP_SSTATUS
|
|
3
|
+
*/
|
|
4
|
+
export declare enum EnumStreamStatusType {
|
|
5
|
+
AUDIO_DEVICE_ERROR = "AUDIO_DEVICE_ERROR",
|
|
6
|
+
AUDIO_DEVICE_FROZEN = "AUDIO_DEVICE_FROZEN",
|
|
7
|
+
AUDIO_DEVICE_MUTED = "AUDIO_DEVICE_MUTED",
|
|
8
|
+
AUDIO_DEVICE_UNMUTED = "AUDIO_DEVICE_UNMUTED",
|
|
9
|
+
BITRATE = "BITRATE",
|
|
10
|
+
CPU_OVERLOAD = "CPU_OVERLOAD",
|
|
11
|
+
DROPPED_AUDIO_FRAMES = "DROPPED_AUDIO_FRAMES",
|
|
12
|
+
DROPPED_VIDEO_FRAMES = "DROPPED_VIDEO_FRAMES",
|
|
13
|
+
VIDEO_DEVICE_ERROR = "VIDEO_DEVICE_ERROR",
|
|
14
|
+
VIDEO_DEVICE_FROZEN = "VIDEO_DEVICE_FROZEN"
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./enum-boolean-stringified";
|
|
2
|
+
export * from "./enum-boolean-digitized";
|
|
3
|
+
export * from "./enum-boolean-stringified-extended";
|
|
4
|
+
export * from "./enum-status-type";
|
|
5
|
+
export * from "./enum-channel-flags";
|
|
6
|
+
export * from "./enum-currency";
|
|
7
|
+
export * from "./iemoji";
|
|
8
|
+
export * from "./icurrency-description";
|
|
9
|
+
export * from "./json-stringified";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Logger } from "./logger";
|
|
2
|
+
import * as cmdcontrol from "./cmd-protocol";
|
|
3
|
+
import { SupportedLanguage, CmdClientAgent } from "./protocol/command/baseparams";
|
|
4
|
+
export declare enum EnumInitDataFormat {
|
|
5
|
+
LIVE = "live",
|
|
6
|
+
MESSENGER = "messenger",
|
|
7
|
+
AVS = "avs",
|
|
8
|
+
mc = "mc"
|
|
9
|
+
}
|
|
10
|
+
export declare class ConnectionConfig {
|
|
11
|
+
useWS: boolean;
|
|
12
|
+
host: string;
|
|
13
|
+
wssport: string;
|
|
14
|
+
wsspath: string;
|
|
15
|
+
https: boolean;
|
|
16
|
+
agent: CmdClientAgent;
|
|
17
|
+
language: SupportedLanguage;
|
|
18
|
+
version: string;
|
|
19
|
+
commandHandler: (response: cmdcontrol.IRESPONSE) => any;
|
|
20
|
+
logger: Logger;
|
|
21
|
+
webtoken: string;
|
|
22
|
+
jsonp: boolean;
|
|
23
|
+
connectionRetryInterval: number;
|
|
24
|
+
initdata: EnumInitDataFormat;
|
|
25
|
+
onError?: (error: Event) => unknown;
|
|
26
|
+
toString(): string;
|
|
27
|
+
}
|
|
28
|
+
export declare class CmdConnection {
|
|
29
|
+
private static _commandTimeout;
|
|
30
|
+
private static _timeoutByAction;
|
|
31
|
+
private static _fetchJsonp;
|
|
32
|
+
private static _parsePlainResponse;
|
|
33
|
+
private static _getErrorResponse;
|
|
34
|
+
private readonly _version;
|
|
35
|
+
private _settings;
|
|
36
|
+
private readonly _instanceId;
|
|
37
|
+
private _servletUrl;
|
|
38
|
+
private _platformUrl;
|
|
39
|
+
private _socket;
|
|
40
|
+
private _closing;
|
|
41
|
+
private _counter;
|
|
42
|
+
private _initProcessed;
|
|
43
|
+
private _noop;
|
|
44
|
+
private _dsreload;
|
|
45
|
+
private _queue;
|
|
46
|
+
private readonly _jumpTable;
|
|
47
|
+
private _sessionID;
|
|
48
|
+
private _logPrefix;
|
|
49
|
+
constructor(settings: ConnectionConfig);
|
|
50
|
+
connect(): void;
|
|
51
|
+
send(command: cmdcontrol.ICOMMAND): void;
|
|
52
|
+
close(): void;
|
|
53
|
+
private _send;
|
|
54
|
+
private _openSocket;
|
|
55
|
+
private _onopen;
|
|
56
|
+
private _onmessage;
|
|
57
|
+
private _onerror;
|
|
58
|
+
private _onclose;
|
|
59
|
+
private _getDefaultParams;
|
|
60
|
+
private _processReply;
|
|
61
|
+
private _dequeue;
|
|
62
|
+
private _sendEntry;
|
|
63
|
+
private _reconnect;
|
|
64
|
+
private _sendNoop;
|
|
65
|
+
private _processCommand;
|
|
66
|
+
private _processCmpdInit;
|
|
67
|
+
private _processCmdpLogin;
|
|
68
|
+
private _processCmdpNoop;
|
|
69
|
+
private _processCmdcDsReload;
|
|
70
|
+
private _markAllQueueEntriesAsQueued;
|
|
71
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("xmlentities")):"function"==typeof define&&define.amd?define(["xmlentities"],e):"object"==typeof exports?exports.cmdControlClientLib=e(require("xmlentities")):t.cmdControlClientLib=e(t.xmlentities)}("undefined"!=typeof self?self:this,(function(t){return(()=>{"use strict";var e={6535:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="3.0.1"},3735:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumBooleanDigitized=void 0,(n=e.EnumBooleanDigitized||(e.EnumBooleanDigitized={})).FALSE="0",n.TRUE="1"},6229:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumBooleanStringifiedExtended=void 0,(n=e.EnumBooleanStringifiedExtended||(e.EnumBooleanStringifiedExtended={})).TRUE="true",n.TRUTHY="1",n.FALSE="false",n.FALSY="0"},8659:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumBooleanStringified=void 0,(n=e.EnumBooleanStringified||(e.EnumBooleanStringified={})).TRUE="true",n.FALSE="false"},1798:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumChannelFlags=void 0,(n=e.EnumChannelFlags||(e.EnumChannelFlags={})).ARCHIVED="archived",n.REGULAR="regularCustomer",n.ADVERTISED="advertised",n.DELETED="deleted",n.LOCKED="locked",n.UNANSWERED="unanswered",n.PINNED="pinned",n.MUTED="muted",n.BOUGHTMEDIA="boughtMedia",n.FOLLOWME="followMe",n.BANNED="banned",n.BANNEDME="bannedMe"},8263:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumCurrency=void 0,(n=e.EnumCurrency||(e.EnumCurrency={})).EURO="EUR",n.US_DOLLAR="USD",n.VOUCHER_CREDIT="VOC"},8058:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumStreamStatusType=void 0,(n=e.EnumStreamStatusType||(e.EnumStreamStatusType={})).AUDIO_DEVICE_ERROR="AUDIO_DEVICE_ERROR",n.AUDIO_DEVICE_FROZEN="AUDIO_DEVICE_FROZEN",n.AUDIO_DEVICE_MUTED="AUDIO_DEVICE_MUTED",n.AUDIO_DEVICE_UNMUTED="AUDIO_DEVICE_UNMUTED",n.BITRATE="BITRATE",n.CPU_OVERLOAD="CPU_OVERLOAD",n.DROPPED_AUDIO_FRAMES="DROPPED_AUDIO_FRAMES",n.DROPPED_VIDEO_FRAMES="DROPPED_VIDEO_FRAMES",n.VIDEO_DEVICE_ERROR="VIDEO_DEVICE_ERROR",n.VIDEO_DEVICE_FROZEN="VIDEO_DEVICE_FROZEN"},1819:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8354:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},2744:function(t,e,n){var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),_=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),_(n(8659),e),_(n(3735),e),_(n(6229),e),_(n(8058),e),_(n(1798),e),_(n(8263),e),_(n(8354),e),_(n(1819),e),_(n(1368),e)},1368:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8715:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CmdConnection=e.ConnectionConfig=e.EnumInitDataFormat=void 0;var o,_=n(1994),i=n(5473),r=n(6535),s=n(7292),E=n(7292),a=n(117),C=n(4678);function u(){}!function(t){t.LIVE="live",t.MESSENGER="messenger",t.AVS="avs",t.mc="mc"}(o=e.EnumInitDataFormat||(e.EnumInitDataFormat={}));var c=function(){function t(){this.useWS=!0,this.host="",this.wssport="",this.wsspath="",this.https=!0,this.agent=C.CmdClientAgent.WEB,this.version="?",this.logger=void 0,this.webtoken="",this.jsonp=!1,this.connectionRetryInterval=2e3,this.initdata=o.LIVE}return t.prototype.toString=function(){return"[ useWS="+this.useWS+" host="+this.host+" wssport="+this.wssport+" wsspath="+this.wsspath+" agent="+this.agent+" language="+this.language+" version="+this.version+" logger="+this.logger+" commandHandler= "+this.commandHandler+" ]"},t}();e.ConnectionConfig=c;var S=function(){function t(t){for(this._version=r.VERSION,this._closing=!1,this._counter=1,this._initProcessed=!1,this._noop={active:!1,last:0},this._queue=[],this._sessionID="",this._logPrefix="CMDP.",this._instanceId=Math.ceil(16777216*Math.random()).toString(16);this._instanceId.length<6;)this._instanceId="0"+this._instanceId;this._settings=t,t.logger&&i.setLogger(t.logger),i.logger.log(this._logPrefix+" version="+r.VERSION+" settings: "+t),this._onopen=this._onopen.bind(this),this._onmessage=this._onmessage.bind(this),this._onclose=this._onclose.bind(this),this._onerror=this._onerror.bind(this),this.connect=this.connect.bind(this),window.onunload=this.close.bind(this),this._jumpTable={CMDP_INIT:this._processCmpdInit.bind(this),CMDP_SINIT:this._processCmpdInit.bind(this),CMDP_SLOGIN:this._processCmdpLogin.bind(this),CMDP_LOGIN:this._processCmdpLogin.bind(this),CMDP_NOOP:this._processCmdpNoop.bind(this),CMDC_DSRELOAD:this._processCmdcDsReload.bind(this)}}return t._timeoutByAction=function(t){return this._commandTimeout[t.command.action]||12e4},t._fetchJsonp=function(e,n,o){var _=e+"?action="+n.command.action;for(var r in n.command.params)Object.prototype.hasOwnProperty.call(n.command.params,r)&&(_+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n.command.params[r].toString()));_=_.replace("??","?");var s="_jsonp_"+Date.now()+"_"+Math.ceil(65536*Math.random()).toString(16),a=document.createElement("script"),C=document.querySelectorAll("head")[0],c=function(){n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=void 0),a.remove();try{delete window[s]}catch(t){i.logger.log("send over jsonp",n),window[s]=void 0}};window[s]=function(e){c(),"json"===n.command.params.format?o(Object.assign(n.command,e)):o(Object.assign(n.command,t._parsePlainResponse(e)))},a.src=_+(_.includes("?")?"&":"?")+"callback="+s,a.onerror=function(e){c(),o(Object.assign(n.command,t._getErrorResponse(E.ResultCode.NETWORK_ERROR,e.error)))},C.append(a),n.timeoutId=window.setTimeout((function(){c(),window[s]=u,o(Object.assign(n.command,t._getErrorResponse(E.ResultCode.TIMEOUT,"timeout")))}),this._timeoutByAction(n))},t._parsePlainResponse=function(t){for(var e,n={action:a.ACTION.CMDP_UNDEFINED,params:{},result:new E.RESULT,commands:[],values:{}},o=/\+/g,i=/^CMDC_(\w+)/,r=/(\w+)=(\S+)/g,s=0,C=t.split("\n");s<C.length;s++){var u=C[s];if(e=i.exec(u)){var c=e[1],S={};for(r.lastIndex=0;e=r.exec(u);){var O=e[1],T=_.decode(decodeURIComponent(e[2]));S[O]="text"!==O||"<a+href"===T.slice(0,7)||"CQUERYUSER"===c||u.includes(" from=system")?T.replace(o," "):T}switch(c){case"RESULT":n.result.code=Number.parseInt(S.code,10),n.result.reason=S.reason;break;case"VALUE":for(var O in S)Object.prototype.hasOwnProperty.call(S,O)&&(n.values[O]=S[O]);break;default:n.commands.push({action:E.ACTION["CMDC_"+c],params:S})}}}return n},t._getErrorResponse=function(t,e){return{result:{code:t,reason:e},commands:void 0,values:void 0}},t.prototype.connect=function(){if(this._servletUrl=this._platformUrl?this._platformUrl:(this._settings.https?"https":"http")+"://"+this._settings.host+":"+this._settings.wssport+this._settings.wsspath,this._settings.useWS&&this._openSocket(),!this._initProcessed){var t=Object.assign(new E.CMDP_INIT,{params:{initData:this._settings.initdata}});this._send(t)}},t.prototype.send=function(t){if("CMDP_NOOP"===t.action)throw i.logger.error(this._logPrefix+" dont send the CMDP_NOOP active ",t),new Error("don't send the CMDP_NOOP.");this._send(t)},t.prototype.close=function(){this._closing=!0,this._noop.active=!1,this._socket&&this._socket.close()},t.prototype._send=function(t){t=Object.assign(t,{params:Object.assign(this._getDefaultParams(),t.params)}),i.logger.log(this._logPrefix+"_enqueue",t);var e={callback:this._processReply.bind(this),command:t,timeoutId:0,queued:!0};this._queue.push(e),this._dequeue()},t.prototype._openSocket=function(){var t,e=this,n=(this._settings.https?"wss":"ws")+"://"+this._settings.host+":"+this._settings.wssport+this._settings.wsspath;i.logger.log(this._logPrefix+"_openSocket",n);try{t=new WebSocket(n)}catch(t){return i.logger.warn(this._logPrefix+"_openSocket SECURITY_ERR",t),void setTimeout((function(){e._reconnect()}),this._settings.connectionRetryInterval)}t.onopen=this._onopen,t.onmessage=this._onmessage,t.onerror=this._onerror,t.onclose=this._onclose,this._socket=t},t.prototype._onopen=function(t){i.logger.log(this._logPrefix+"socket.onopen",t),this._dequeue()},t.prototype._onmessage=function(t){i.logger.log(this._logPrefix+"socket.onmessage",t);var e=JSON.parse(t.data);this._processReply(e)},t.prototype._onerror=function(t){i.logger.warn(this._logPrefix+"socket.onerror",t),this._settings.onError&&this._settings.onError(t)},t.prototype._onclose=function(t){var e=this;i.logger.log(this._logPrefix+"socket.onclose",t),this._closing||this._dsreload||!this._settings.useWS||(i.logger.log(this._logPrefix+"retry connect in "+this._settings.connectionRetryInterval+" ms"),setTimeout((function(){e._reconnect()}),this._settings.connectionRetryInterval)),this._dsreload&&(this._dsreload=!1)},t.prototype._getDefaultParams=function(){return{_uniq:(this._counter++).toString(),_iid:this._instanceId,strip:!0,format:s.EnumFormatValues.JSON,agent:this._settings.agent,version:this._settings.version+"/"+this._version,language:this._settings.language,sessionID:this._sessionID,webtoken:this._settings.webtoken}},t.prototype._processReply=function(t){var e=this;i.logger.log(this._logPrefix+"_processReply",t);for(var n,o=t.params._uniq,_=0,r=this._queue.length;_<r;_++)if((n=this._queue[_]).command.params._uniq===o){n.timeoutId&&clearTimeout(n.timeoutId),this._queue.splice(_,1);break}if(n){var s=!0;if(t.result.code===E.ResultCode.NETWORK_ERROR){var a=Number.parseInt(n.command.params._retry.toString()||"0",10);a<10&&(s=!1,setTimeout((function(){i.logger.log(e._logPrefix+".re-enqueue ",n.command),n.command.params._retry=n.command.params._retry?(a+1).toString():"1",e._send(n.command)}),3e3))}s&&(this._processCommand(t),t.commands&&t.commands.length>0&&t.commands.forEach(this._processCommand.bind(this)),this._settings.commandHandler(t)),this._dequeue()}else i.logger.warn(this._logPrefix+"_processReply. Entry not found _uniq="+o,t)},t.prototype._dequeue=function(){if(!this._closing)for(var t=0,e=this._queue.length;t<e;t++){var n=this._queue[t];if(n.queued){this._sendEntry(n);break}}},t.prototype._sendEntry=function(e){if(this._settings.useWS){if(this._socket.readyState===WebSocket.OPEN){e.queued=!1;var n=JSON.stringify(e.command);this._socket.send(n)}}else this._settings.jsonp&&(e.queued=!1,t._fetchJsonp(this._servletUrl,e,this._processReply.bind(this)))},t.prototype._reconnect=function(){this._socket=void 0,this._markAllQueueEntriesAsQueued(),this._settings.jsonp?(i.logger.warn(this._logPrefix+". fallback to JSONP"),this._settings.useWS=!1,this._dequeue()):this._settings.useWS&&this._openSocket()},t.prototype._sendNoop=function(){0===this._noop.last&&(this._noop.last=Date.now()),this._send(new E.CMDP_NOOP)},t.prototype._processCommand=function(t){var e=this._jumpTable[t.action];e&&e(t)},t.prototype._processCmpdInit=function(t){this._initProcessed=!0},t.prototype._processCmdpLogin=function(t){t.result.code===E.ResultCode.OK&&(this._sessionID=t.values.sessionID,this._noop.active||(this._noop.active=!0,this._sendNoop()))},t.prototype._processCmdpNoop=function(t){switch(t.result.code){case E.ResultCode.SESSION_NOT_FOUND:case E.ResultCode.NETWORK_ERROR:this._noop.active=!1,i.logger.warn(this._logPrefix+"NOOP stopped");break;default:this._sendNoop()}},t.prototype._processCmdcDsReload=function(t){i.logger.warn(this._logPrefix+E.ACTION.CMDC_DSRELOAD,t),this._dsreload=!0,this._socket&&this._socket.close(),this._markAllQueueEntriesAsQueued(),this._platformUrl=t.params.PlatformUrl,this._settings.host=t.params.wsshost,this._settings.wssport=t.params.wssport,this._settings.wsspath=t.params.wsspath,this.connect()},t.prototype._markAllQueueEntriesAsQueued=function(){this._queue.forEach((function(t){t.queued||(t.queued=!0)}))},t._commandTimeout={CMDP_CLOGOUT:4e3,CMDP_LOGOUT:4e3,CMDP_NOOP:3e4},t}();e.CmdConnection=S},4793:function(t,e,n){var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),_=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.CmdControlSession=e.EnumInitDataFormat=e.CmdConnection=e.ConnectionConfig=e.LogCollector=e.setLogger=void 0,_(n(7292),e),_(n(2744),e);var i=n(5473);Object.defineProperty(e,"setLogger",{enumerable:!0,get:function(){return i.setLogger}}),Object.defineProperty(e,"LogCollector",{enumerable:!0,get:function(){return i.LogCollector}});var r=n(8715);Object.defineProperty(e,"ConnectionConfig",{enumerable:!0,get:function(){return r.ConnectionConfig}}),Object.defineProperty(e,"CmdConnection",{enumerable:!0,get:function(){return r.CmdConnection}}),Object.defineProperty(e,"EnumInitDataFormat",{enumerable:!0,get:function(){return r.EnumInitDataFormat}});var s=n(6963);Object.defineProperty(e,"CmdControlSession",{enumerable:!0,get:function(){return s.CmdControlSession}})},7292:function(t,e,n){var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),_=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.EnumFormatValues=e.CmdClientAgent=e.SupportedLanguage=void 0,_(n(6333),e),_(n(117),e),_(n(7839),e),_(n(532),e),_(n(208),e),_(n(849),e),_(n(9926),e),_(n(7840),e),_(n(997),e),_(n(835),e),_(n(7723),e),_(n(8931),e),_(n(5362),e),_(n(3015),e),_(n(8210),e),_(n(8025),e),_(n(2579),e),_(n(1563),e),_(n(8799),e),_(n(8262),e),_(n(5114),e),_(n(8612),e),_(n(7847),e),_(n(5394),e),_(n(835),e),_(n(7291),e),_(n(9710),e),_(n(8167),e),_(n(7173),e),_(n(8270),e),_(n(5160),e),_(n(2596),e),_(n(7385),e),_(n(8431),e);var i=n(4678);Object.defineProperty(e,"SupportedLanguage",{enumerable:!0,get:function(){return i.SupportedLanguage}}),Object.defineProperty(e,"CmdClientAgent",{enumerable:!0,get:function(){return i.CmdClientAgent}}),Object.defineProperty(e,"EnumFormatValues",{enumerable:!0,get:function(){return i.EnumFormatValues}})},6963:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CmdControlSession=void 0;var o=n(7292),_=n(8715),i=function(){function t(t){this._connection=new _.CmdConnection(t),this._connection.connect()}return t.prototype.LoginWithUsernamePassword=function(t,e){var n=Object.assign(new o.CMDP_SLOGIN,{params:{login:t,password:e,msn:!0}});this._connection.send(n)},t.prototype.LoginWithSession=function(t){var e=Object.assign(new o.CMDP_SLOGIN,{params:{foreignSID:t,msn:!0}});this._connection.send(e)},t.prototype.LoginWithWebtoken=function(t){var e=Object.assign(new o.CMDP_SLOGIN,{params:{webtoken:t,msn:!0}});this._connection.send(e)},t.prototype.sendCommand=function(t){this._connection.send(t)},t.prototype.logout=function(t){var e=Object.assign(new o.CMDP_LOGOUT,{params:{code:t}});this._connection.send(e)},t.prototype.close=function(){this._connection.close()},t}();e.CmdControlSession=i},5473:function(t,e){var n=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,_=t.length;n<o;n++,_++)t[_]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollector=e.setLogger=e.logger=void 0,e.logger={log:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},warn:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},error:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]}},e.setLogger=function(t){e.logger=t};var o=function(){function t(t){this._logs=[],this._logger=t}return t.prototype.clear=function(){this._logs=[]},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.exportToStr=function(e,n){void 0===e&&(e=0),void 0===n&&(n=0);for(var o="",_=this._logs.length,i=0===n?0:Math.max(_-n,0);i<_;i++){var r=this._logs[i];if(!(r.level<e)){var s=r.level>=t.ERROR?"ERROR":r.level>=t.WARN?"WARN":"INFO",E=new Date(r.time);o+=(E.getHours()<10?"0":"")+E.getHours()+(E.getMinutes()<10?":0":":")+E.getMinutes()+(E.getSeconds()<10?":0":":")+E.getSeconds()+(E.getMilliseconds()<100?E.getMilliseconds()<10?".00":".0":".")+E.getMilliseconds()+" "+s+" "+r.message+(r.params?" "+JSON.stringify(r.params):"")+"\n"}}return o},t.prototype.log=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];this._push(t.LOG,e,n)},t.prototype.warn=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];this._push(t.WARN,e,n)},t.prototype.error=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];this._push(t.ERROR,e,n)},t.prototype._push=function(e,o,_){if(this._logs.push({level:e,time:Date.now(),message:o,params:_}),this._logger){var i=e>=t.WARN?this._logger.warn:e>=t.ERROR?this._logger.error:this._logger.log;if(_){var r=n([o],_);try{i.apply(void 0,r)}catch(t){}}else i(o)}},t.LOG=10,t.WARN=20,t.ERROR=30,t}();e.LogCollector=o},7723:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SGETCONTACTINFO_RESPONSE=e.CMDP_SGETCONTACTINFO=e.CMDP_GETCONTACTINFO_RESPONSE=e.CMDP_GETCONTACTINFO=e.CMDP_SETCONTACTINFO_RESPONSE=e.CMDP_SETCONTACTINFO=e.CMDC_CONTACTINFO=void 0;var i=n(117);e.CMDC_CONTACTINFO=function(){this.action=i.ACTION.CMDC_CONTACTINFO};var r=function(){this.action=i.ACTION.CMDP_SETCONTACTINFO};e.CMDP_SETCONTACTINFO=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SETCONTACTINFO_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_GETCONTACTINFO};e.CMDP_GETCONTACTINFO=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_GETCONTACTINFO_RESPONSE=a;var C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCONTACTINFO,e}return _(e,t),e}(E);e.CMDP_SGETCONTACTINFO=C;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCONTACTINFO,e}return _(e,t),e}(a);e.CMDP_SGETCONTACTINFO_RESPONSE=u},835:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_GETUSERINFO_RESPONSE=e.CMDP_GETUSERINFO=e.CMDP_SETUSERINFO_RESPONSE=e.CMDP_SETUSERINFO=e.CMDC_USERINFO=void 0;var i=n(117);e.CMDC_USERINFO=function(){this.action=i.ACTION.CMDC_USERINFO};var r=function(){this.action=i.ACTION.CMDP_SETUSERINFO};e.CMDP_SETUSERINFO=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SETUSERINFO_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_GETUSERINFO};e.CMDP_GETUSERINFO=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_GETUSERINFO_RESPONSE=a},532:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_BACKENDPAYLOAD=e.CMDC_BACKENDPAYLOAD=e.CMDP_QUERYBACKEND_RESPONSE=e.CMDP_QUERYBACKEND=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_QUERYBACKEND};e.CMDP_QUERYBACKEND=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_QUERYBACKEND_RESPONSE=s;e.CMDC_BACKENDPAYLOAD=function(){this.action=i.ACTION.CMDC_BACKENDPAYLOAD};e.CMDP_BACKENDPAYLOAD=function(){this.action=i.ACTION.CMDP_BACKENDPAYLOAD}},208:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_CHANNELSSUMMARY_RESPONSE=e.CMDP_CHANNELSSUMMARY=e.CMDP_UPDATECHANNEL_RESPONSE=e.CMDP_UPDATECHANNEL=e.updateChannelParamsType=e.EnumUpdateChannelPropertyName=e.CMDP_SCHANNELSEEN_RESPONSE=e.CMDP_CHANNELSEEN_RESPONSE=e.CMDP_SCHANNELSEEN=e.CMDP_CHANNELSEEN=e.CMDP_GETHISTORY_RESPONSE=e.CMDP_GETHISTORY=e.CMDP_SGETCHANNELS_RESPONSE=e.CMDP_SGETCHANNELS=e.CMDP_GETCHANNELS_RESPONSE=e.CMDP_GETCHANNELS=e.EnumProductId=e.EnumChannelFilterValues=e.EnumSortOrder=e.CMDP_SGETCHANNEL_RESPONSE=e.CMDP_SGETCHANNEL=e.CMDP_GETCHANNEL_RESPONSE=e.CMDP_GETCHANNEL=e.CMDP_NEWCHANNEL_RESPONSE=e.CMDP_NEWCHANNEL=e.CMDC_CHANNEL=e.ChannelType=void 0;var i=n(117);e.ChannelType=function(){};e.CMDC_CHANNEL=function(){this.action=i.ACTION.CMDC_CHANNEL};var r=function(){this.action=i.ACTION.CMDP_NEWCHANNEL};e.CMDP_NEWCHANNEL=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_NEWCHANNEL_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_GETCHANNEL};e.CMDP_GETCHANNEL=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_GETCHANNEL_RESPONSE=a;var C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCHANNEL,e}return _(e,t),e}(E);e.CMDP_SGETCHANNEL=C;var u,c,S,O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCHANNEL,e}return _(e,t),e}(C);e.CMDP_SGETCHANNEL_RESPONSE=O,(S=e.EnumSortOrder||(e.EnumSortOrder={})).ASC="ASC",S.DESC="DESC",(c=e.EnumChannelFilterValues||(e.EnumChannelFilterValues={})).ANY="any",c.ONLY="only",c.EXCLUDE="exclude",(u=e.EnumProductId||(e.EnumProductId={})).Default="1",u.PAGES="2",u.PARTNER="3",u.TV="4";var T=function(){this.action=i.ACTION.CMDP_GETCHANNELS};e.CMDP_GETCHANNELS=T;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(T);e.CMDP_GETCHANNELS_RESPONSE=h;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCHANNELS,e}return _(e,t),e}(T);e.CMDP_SGETCHANNELS=l;var D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCHANNELS,e}return _(e,t),e}(h);e.CMDP_SGETCHANNELS_RESPONSE=D;var P=function(){this.action=i.ACTION.CMDP_GETHISTORY};e.CMDP_GETHISTORY=P;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(P);e.CMDP_GETHISTORY_RESPONSE=N;var M=function(){this.action=i.ACTION.CMDP_CHANNELSEEN};e.CMDP_CHANNELSEEN=M;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SCHANNELSEEN,e}return _(e,t),e}(M);e.CMDP_SCHANNELSEEN=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(p);e.CMDP_CHANNELSEEN_RESPONSE=f;var A,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SCHANNELSEEN,e}return _(e,t),e}(f);e.CMDP_SCHANNELSEEN_RESPONSE=d,(A=e.EnumUpdateChannelPropertyName||(e.EnumUpdateChannelPropertyName={})).ARCHIVED="archived",A.REGULAR_CUSTOMER="regularCustomer",A.UNANSWERED="unanswered",A.PINNED="pinned",A.MUTED="muted",A.BANNED="banned";e.updateChannelParamsType=function(){};var R=function(){this.action=i.ACTION.CMDP_UPDATECHANNEL};e.CMDP_UPDATECHANNEL=R;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(R);e.CMDP_UPDATECHANNEL_RESPONSE=I;var v=function(){this.action=i.ACTION.CMDP_CHANNELSSUMMARY};e.CMDP_CHANNELSSUMMARY=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(v);e.CMDP_CHANNELSSUMMARY_RESPONSE=y},849:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SETCHANNELINFO_RESPONSE=e.CMDP_SETCHANNELINFO=e.CMDP_GETCHANNELINFO_RESPONSE=e.CMDP_GETCHANNELINFO=e.CMDC_CHANNELINFO=void 0;var i=n(117);e.CMDC_CHANNELINFO=function(){this.action=i.ACTION.CMDC_CHANNELINFO};var r=function(){this.action=i.ACTION.CMDP_GETCHANNELINFO};e.CMDP_GETCHANNELINFO=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_GETCHANNELINFO_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_SETCHANNELINFO};e.CMDP_SETCHANNELINFO=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_SETCHANNELINFO_RESPONSE=a},7840:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},117:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ACTION=void 0,(n=e.ACTION||(e.ACTION={})).CMDP_INIT="CMDP_INIT",n.CMDP_SINIT="CMDP_SINIT",n.CMDP_LOGIN="CMDP_LOGIN",n.CMDP_SLOGIN="CMDP_SLOGIN",n.CMDP_LOGOUT="CMDP_LOGOUT",n.CMDP_SLOGOUT="CMDP_SLOGOUT",n.CMDC_USERINFO="CMDC_USERINFO",n.CMDP_SETUSERINFO="CMDP_SETUSERINFO",n.CMDP_GETUSERINFO="CMDP_GETUSERINFO",n.CMDC_CONTACTNOTE="CMDC_CONTACTNOTE",n.CMDP_SETCONTACTNOTE="CMDP_SETCONTACTNOTE",n.CMDP_SSETCONTACTNOTE="CMDP_SSETCONTACTNOTE",n.CMDP_GETCONTACTNOTE="CMDP_GETCONTACTNOTE",n.CMDP_SGETCONTACTNOTE="CMDP_SGETCONTACTNOTE",n.CMDC_CONTACTINFO="CMDC_CONTACTINFO",n.CMDP_SETCONTACTINFO="CMDP_SETCONTACTINFO",n.CMDP_SGETCONTACTINFO="CMDP_SGETCONTACTINFO",n.CMDP_GETCONTACTINFO="CMDP_GETCONTACTINFO",n.CMDC_CHANNELINFO="CMDC_CHANNELINFO",n.CMDP_GETCHANNELINFO="CMDP_GETCHANNELINFO",n.CMDP_SETCHANNELINFO="CMDP_SETCHANNELINFO",n.CMDC_CHANNEL="CMDC_CHANNEL",n.CMDP_NEWCHANNEL="CMDP_NEWCHANNEL",n.CMDP_GETCHANNELS="CMDP_GETCHANNELS",n.CMDP_SGETCHANNELS="CMDP_SGETCHANNELS",n.CMDP_GETCHANNEL="CMDP_GETCHANNEL",n.CMDP_SGETCHANNEL="CMDP_SGETCHANNEL",n.CMDP_CHANNELSEEN="CMDP_CHANNELSEEN",n.CMDP_SCHANNELSEEN="CMDP_SCHANNELSEEN",n.CMDP_UPDATECHANNEL="CMDP_UPDATECHANNEL",n.CMDC_CHANNELSSUMMARY="CMDC_CHANNELSSUMMARY",n.CMDP_CHANNELSSUMMARY="CMDP_CHANNELSSUMMARY",n.CMDP_SUPLOADPIC="CMDP_SUPLOADPIC",n.CMDC_CMSG="CMDC_CMSG",n.CMDP_GETHISTORY="CMDP_GETHISTORY",n.CMDP_MSG="CMDP_MSG",n.CMDP_MSGDELETE="CMDP_MSGDELETE",n.CMDC_ONLINESTATE="CMDC_ONLINESTATE",n.CMDP_GETONLINESTATE="CMDP_GETONLINESTATE",n.CMDP_GETONLINESTATES="CMDP_GETONLINESTATES",n.CMDC_VALUE="CMDC_VALUE",n.CMDP_SET_DISCOUNT="CMDP_SET_DISCOUNT",n.CMDP_SQUERY_DISCOUNT="CMDP_SQUERY_DISCOUNT",n.CMDP_QUERYUSER="CMDP_QUERYUSER",n.CMDC_QUERYANSWERED="CMDC_QUERYANSWERED",n.CMDP_SQUERY_FORMAT="CMDP_SQUERY_FORMAT",n.CMDP_STOPLOOPBACK9="CMDP_STOPLOOPBACK9",n.CMDP_STARTLOOPBACK9="CMDP_STARTLOOPBACK9",n.CMDP_STOPBANDWIDTHTEST="CMDP_STOPBANDWIDTHTEST",n.CMDP_STARTBANDWIDTHTEST="CMDP_STARTBANDWIDTHTEST",n.CMDP_STOP_STREAM_PREVIEW="CMDP_STOP_STREAM_PREVIEW",n.CMDP_START_STREAM_PREVIEW="CMDP_START_STREAM_PREVIEW",n.CMDP_UPDATE="CMDP_UPDATE",n.CMDP_SGETCHATS="CMDP_SGETCHATS",n.CMDP_FSK16="CMDP_FSK16",n.CMDP_KICK="CMDP_KICK",n.CMDP_TRACERT_REPLY="CMDP_TRACERT_REPLY",n.CMDP_STOPSEND="CMDP_STOPSEND",n.CMDP_STARTSEND="CMDP_STARTSEND",n.CMDP_SERVICE0900="CMDP_SERVICE0900",n.CMDP_NOOP="CMDP_NOOP",n.CMDP_QUERYBACKEND="CMDP_QUERYBACKEND",n.CMDP_UNDEFINED="CMDP_UNDEFINED",n.CMDC_CINIT="CMDC_CINIT",n.CMDC_FEEDBACK="CMDC_FEEDBACK",n.CMDC_DSRELOAD="CMDC_DSRELOAD",n.CMDC_UPDATE="CMDC_UPDATE",n.CMDC_CEXIT="CMDC_CEXIT",n.CMDC_CSTARTSTREAMPUSH="CMDC_CSTARTSTREAMPUSH",n.CMDC_CSTOPVIDEOPUSH="CMDC_CSTOPVIDEOPUSH",n.CMDC_QUERYUSER="CMDC_QUERYUSER",n.CMDC_CQUERYUSER="CMDC_CQUERYUSER",n.CMDC_UPDATE_CHAT="CMDC_UPDATE_CHAT",n.CMDC_BACKENDPAYLOAD="CMDC_BACKENDPAYLOAD",n.CMDP_BACKENDPAYLOAD="CMDP_BACKENDPAYLOAD",n.CMDP_TOYSTATE="CMDP_TOYSTATE",n.CMDP_TOYACTION="CMDP_TOYACTION",n.CMDC_TOYACTION="CMDC_TOYACTION",n.CMDC_CSTREAMRESTART="CMDC_CSTREAMRESTART",n.CMDP_SUPLOADMEDIA="CMDP_SUPLOADMEDIA",n.CMDC_CSTOPAUDIOPUSH="CMDC_CSTOPAUDIOPUSH",n.CMDC_CSTARTAUDIOPUSH="CMDC_CSTARTAUDIOPUSH",n.CMDP_CSTOPTEXT="CMDP_CSTOPTEXT",n.CMDC_CSTARTVIDEOPULL="CMDC_CSTARTVIDEOPULL",n.CMDC_CSTARTVOYEUR="CMDC_CSTARTVOYEUR",n.CMDC_CSTOPVIDEOPULL="CMDC_CSTOPVIDEOPULL",n.CMDC_CSTOPVOYEUR="CMDC_CSTOPVOYEUR",n.CMDP_SUPDATE="CMDP_SUPDATE",n.CMDC_CSHOWADMIN="CMDC_CSHOWADMIN",n.CMDC_CSTOPSTREAMPUSH="CMDC_CSTOPSTREAMPUSH",n.CMDP_SSTATUS="CMDP_SSTATUS",n.CMDC_CSTARTTEXT="CMDC_CSTARTTEXT",n.CMDC_CSTARTVIDEOPUSH="CMDC_CSTARTVIDEOPUSH",n.CMDC_SLOGOUT="CMDC_SLOGOUT",n.CMDP_SDEVICESTATUS="CMDP_SDEVICESTATUS",n.CMDC_STREAMSTATE="CMDC_STREAMSTATE",n.CMDP_GETONLINESUMMARY="CMDP_GETONLINESUMMARY",n.CMDP_SMEDIAGETPRICES="CMDP_SMEDIAGETPRICES",n.CMDP_SMEDIAPURCHASE="CMDP_SMEDIAPURCHASE",n.CMDP_OPEN_LOBBY="CMDP_OPEN_LOBBY",n.CMDP_CLOSE_LOBBY="CMDP_CLOSE_LOBBY",n.CMDP_SMEDIAOFFERCREATE="CMDP_SMEDIAOFFERCREATE",n.CMDP_SINFORMMEDIAPURCHASED="CMDP_SINFORMMEDIAPURCHASED",n.CMDP_SETEXPOTOKEN="CMDP_SETEXPOTOKEN",n.CMDP_SGETCHATHISTORY="CMDP_SGETCHATHISTORY",n.CMDP_SETSETTINGS="CMDP_SETSETTINGS",n.CMDP_GETSETTINGS="CMDP_GETSETTINGS",n.CMDC_MEDIAPURCHASED="CMDC_MEDIAPURCHASED",n.CMDP_SGETMEDIAINFO="CMDP_SGETMEDIAINFO",n.CMDP_SFORWARDMEDIA="CMDP_SFORWARDMEDIA"},4678:(t,e)=>{var n,o,_;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumFormatValues=e.CmdClientAgent=e.SupportedLanguage=void 0,(_=e.SupportedLanguage||(e.SupportedLanguage={})).DE="de",_.EN="en",_.ES="es",(o=e.CmdClientAgent||(e.CmdClientAgent={})).WEB="we",o.MC="mc",(n=e.EnumFormatValues||(e.EnumFormatValues={})).JSON="json",n.PLAIN="plain"},6333:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RESULT=void 0;e.RESULT=function(){}},7839:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ResultCode=void 0,(n=e.ResultCode||(e.ResultCode={}))[n.OK=2e3]="OK",n[n.WRONG_USER_NAME_OR_PASSWORD=4002]="WRONG_USER_NAME_OR_PASSWORD",n[n.ACCESS_DENIED=4003]="ACCESS_DENIED",n[n.SESSION_NOT_FOUND=4004]="SESSION_NOT_FOUND",n[n.LOGIN_FAILED=4006]="LOGIN_FAILED",n[n.LOGIN_DOUBLE=4007]="LOGIN_DOUBLE",n[n.SESSION_ERROR=4008]="SESSION_ERROR",n[n.PROFIL_NOT_COMPLETE=4009]="PROFIL_NOT_COMPLETE",n[n.TOO_MANY_SESSIONS=4010]="TOO_MANY_SESSIONS",n[n.TOO_MANY_SESSIONS2=4011]="TOO_MANY_SESSIONS2",n[n.TOO_MANY_SESSIONS3=4012]="TOO_MANY_SESSIONS3",n[n.VERSION_NOT_SUPPORTED=4013]="VERSION_NOT_SUPPORTED",n[n.MAIL_NOT_VERYFIED=4014]="MAIL_NOT_VERYFIED",n[n.AUDIO_NOT_AVAILABLE=4015]="AUDIO_NOT_AVAILABLE",n[n.SINGLE_NOT_STARTED=4016]="SINGLE_NOT_STARTED",n[n.CHAT_NOT_CLOSED=4020]="CHAT_NOT_CLOSED",n[n.CHAT_NOT_FOUND=4104]="CHAT_NOT_FOUND",n[n.NOT_ENOUGH_MONEY=4141]="NOT_ENOUGH_MONEY",n[n.CANT_UPDATE_CHAT=4150]="CANT_UPDATE_CHAT",n[n.CANT_UPDATE_CHAT2=4151]="CANT_UPDATE_CHAT2",n[n.INVALID_PARAMETER=5001]="INVALID_PARAMETER",n[n.FEATURE_NOT_AVAILABLE=5002]="FEATURE_NOT_AVAILABLE",n[n.UNEXPECTED=5004]="UNEXPECTED",n[n.NOT_IMPLEMENTED=5005]="NOT_IMPLEMENTED",n[n.NO_CONNECTION=5096]="NO_CONNECTION",n[n.SCRIPT_ERROR=5097]="SCRIPT_ERROR",n[n.TIMEOUT=5098]="TIMEOUT",n[n.NETWORK_ERROR=5099]="NETWORK_ERROR",n[n.B2B_INTERFACE_ERROR=6e3]="B2B_INTERFACE_ERROR",n[n.UNKNOWN_ERROR=6001]="UNKNOWN_ERROR",n[n.INVALID_WEB_TOKEN=6002]="INVALID_WEB_TOKEN",n[n.NO_CREDIT_VIDEOCHAT=6106]="NO_CREDIT_VIDEOCHAT",n[n.MODEL_IS_OFFLINE=6403]="MODEL_IS_OFFLINE",n[n.SOFT_CHAT=6601]="SOFT_CHAT",n[n.PREVIEW_LIMIT_EXCEEDED=6401]="PREVIEW_LIMIT_EXCEEDED",n[n.MODEL_IS_IN_PRIVATE_CHAT=6906]="MODEL_IS_IN_PRIVATE_CHAT"},997:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CMDC_DSRELOAD=void 0;var o=n(117);e.CMDC_DSRELOAD=function(){this.action=o.ACTION.CMDC_DSRELOAD}},9926:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SGETCONTACTNOTE_RESPONSE=e.CMDP_SGETCONTACTNOTE=e.CMDP_SSETCONTACTNOTE_RESPONSE=e.CMDP_SSETCONTACTNOTE=e.CMDP_GETCONTACTNOTE_RESPONSE=e.CMDP_GETCONTACTNOTE=e.CMDP_SETCONTACTNOTE_RESPONSE=e.CMDP_SETCONTACTNOTE=e.CMDC_CONTACTNOTE=void 0;var i=n(7292);e.CMDC_CONTACTNOTE=function(){this.action=i.ACTION.CMDC_CONTACTNOTE};var r=function(){this.action=i.ACTION.CMDP_SETCONTACTNOTE};e.CMDP_SETCONTACTNOTE=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SETCONTACTNOTE_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_GETCONTACTNOTE};e.CMDP_GETCONTACTNOTE=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_GETCONTACTNOTE_RESPONSE=a;var C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SSETCONTACTNOTE,e}return _(e,t),e}(r);e.CMDP_SSETCONTACTNOTE=C;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SSETCONTACTNOTE,e}return _(e,t),e}(s);e.CMDP_SSETCONTACTNOTE_RESPONSE=u;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCONTACTNOTE,e}return _(e,t),e}(E);e.CMDP_SGETCONTACTNOTE=c;var S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SGETCONTACTNOTE,e}return _(e,t),e}(a);e.CMDP_SGETCONTACTNOTE_RESPONSE=S},3015:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8931:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SINIT_RESPONSE=e.CMDP_SINIT=e.CMDP_INIT_RESPONSE=e.CMDP_INIT=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_INIT};e.CMDP_INIT=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_INIT_RESPONSE=s;var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SINIT,e}return _(e,t),e}(r);e.CMDP_SINIT=E;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SINIT,e}return _(e,t),e}(s);e.CMDP_SINIT_RESPONSE=a},7173:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SDEVICESTATUS_RESPONSE=e.CMDP_SDEVICESTATUS=void 0;var i=n(7292),r=function(){this.action=i.ACTION.CMDP_SDEVICESTATUS};e.CMDP_SDEVICESTATUS=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SDEVICESTATUS_RESPONSE=s},7291:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDC_UPDATE_CHAT=e.CMDP_SET_DISCOUNT_RESPONSE=e.CMDP_SET_DISCOUNT=e.CMDP_SQUERY_DISCOUNT_RESPONSE=e.CMDP_SQUERY_DISCOUNT=e.CMDC_QUERYANSWERED=e.CMDP_QUERYUSER_RESPONSE=e.CMDP_QUERYUSER=e.CMDC_QUERYUSER=e.CMDP_SQUERY_FORMAT_RESPONSE=e.CMDP_SQUERY_FORMAT=e.CMDP_STOPLOOPBACK9_RESPONSE=e.CMDP_STOPLOOPBACK9=e.CMDP_STARTLOOPBACK9_RESPONSE=e.CMDP_STARTLOOPBACK9=e.CMDP_STOPBANDWIDTHTEST_RESPONSE=e.CMDP_STOPBANDWIDTHTEST=e.CMDP_STARTBANDWIDTHTEST_RESPONSE=e.CMDP_STARTBANDWIDTHTEST=e.CMDP_STOP_STREAM_PREVIEW_RESPONSE=e.CMDP_STOP_STREAM_PREVIEW=e.CMDP_START_STREAM_PREVIEW_RESPONSE=e.CMDP_START_STREAM_PREVIEW=e.CMDC_CINIT=e.SChatInfo=e.ChatFlags=e.CMDP_SGETCHATHISTORY_RESPONSE=e.CMDP_SGETCHATHISTORY=e.CMDP_SGETCHATS_RESPONSE=e.CMDP_SGETCHATS=e.CMDP_FSK16=e.CMDP_KICK_RESPONSE=e.CMDP_KICK=e.CMDP_TRACERT_REPLY_RESPONSE=e.CMDP_TRACERT_REPLY=e.CMDP_SSTATUS_RESPONSE=e.CMDP_SSTATUS=e.CMDP_STOPSEND_RESPONSE=e.CMDP_STOPSEND=e.CMDP_STARTSEND_RESPONSE=e.CMDP_STARTSEND=void 0;var i=n(117),r=n(2744),s=function(){this.action=i.ACTION.CMDP_STARTSEND};e.CMDP_STARTSEND=s;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(s);e.CMDP_STARTSEND_RESPONSE=E;var a=function(){this.action=i.ACTION.CMDP_STOPSEND};e.CMDP_STOPSEND=a;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(a);e.CMDP_STOPSEND_RESPONSE=C;var u=function(){this.action=i.ACTION.CMDP_SSTATUS};e.CMDP_SSTATUS=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(u);e.CMDP_SSTATUS_RESPONSE=c;var S=function(){this.action=i.ACTION.CMDP_TRACERT_REPLY};e.CMDP_TRACERT_REPLY=S;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(S);e.CMDP_TRACERT_REPLY_RESPONSE=O;var T=function(){this.action=i.ACTION.CMDP_KICK};e.CMDP_KICK=T;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(T);e.CMDP_KICK_RESPONSE=h;e.CMDP_FSK16=function(){};var l=function(){this.action=i.ACTION.CMDP_SGETCHATS};e.CMDP_SGETCHATS=l;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(l);e.CMDP_SGETCHATS_RESPONSE=D;var P=function(){this.action=i.ACTION.CMDP_SGETCHATHISTORY};e.CMDP_SGETCHATHISTORY=P;var N,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(P);e.CMDP_SGETCHATHISTORY_RESPONSE=M,(N=e.ChatFlags||(e.ChatFlags={}))._FREE_="_FREE_",N.VOYEUR="VOYEUR",N.CAM2CAM="CAM2CAM",N.SINGLE="SINGLE",N.DISCOUNT="DISCOUNT",N.TEXT="TEXT",N.FSK16="FSK16",N.VOYEUR2S="VOYEUR2S",N.RECORD="RECORD",N.FREE="FREE",N.HASUPLPICS="HASUPLPICS",N.PREVIEW="PREVIEW",N.FSKACK="FSKACK",N.VOYSHOWN="VOYSHOWN",N.PARTY="PARTY",N.FREECHAT="FREECHAT",N.TOY="TOY",N.CONVERSION="CONVERSION",N.TESTCHAT="TESTCHAT",N.SECONDARY="SECONDARY",N.AUDIO="AUDIO",N.CONVERTED="CONVERTED",N.TIP="TIP",N.GUESTCHAT="GUESTCHAT",N.MOBILE="MOBILE",N.FLATRATE="FLATRATE";e.SChatInfo=function(){this.admin=r.EnumBooleanDigitized.FALSE,this.canBan=r.EnumBooleanDigitized.FALSE,this.canDiscount=r.EnumBooleanDigitized.FALSE,this.isPublicText=r.EnumBooleanDigitized.FALSE,this.isLobby=r.EnumBooleanDigitized.FALSE};e.CMDC_CINIT=function(){this.action=i.ACTION.CMDC_CINIT};var p=function(){this.action=i.ACTION.CMDP_START_STREAM_PREVIEW};e.CMDP_START_STREAM_PREVIEW=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(p);e.CMDP_START_STREAM_PREVIEW_RESPONSE=f;var A=function(){this.action=i.ACTION.CMDP_STOP_STREAM_PREVIEW};e.CMDP_STOP_STREAM_PREVIEW=A;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(A);e.CMDP_STOP_STREAM_PREVIEW_RESPONSE=d;var R=function(){this.action=i.ACTION.CMDP_STARTBANDWIDTHTEST};e.CMDP_STARTBANDWIDTHTEST=R;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(R);e.CMDP_STARTBANDWIDTHTEST_RESPONSE=I;var v=function(){this.action=i.ACTION.CMDP_STOPBANDWIDTHTEST};e.CMDP_STOPBANDWIDTHTEST=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(v);e.CMDP_STOPBANDWIDTHTEST_RESPONSE=y;var g=function(){this.action=i.ACTION.CMDP_STARTLOOPBACK9};e.CMDP_STARTLOOPBACK9=g;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(g);e.CMDP_STARTLOOPBACK9_RESPONSE=m;var L=function(){this.action=i.ACTION.CMDP_STOPLOOPBACK9};e.CMDP_STOPLOOPBACK9=L;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(L);e.CMDP_STOPLOOPBACK9_RESPONSE=U;var b=function(){this.action=i.ACTION.CMDP_SQUERY_FORMAT};e.CMDP_SQUERY_FORMAT=b;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(b);e.CMDP_SQUERY_FORMAT_RESPONSE=G;e.CMDC_QUERYUSER=function(){this.action=i.ACTION.CMDC_QUERYUSER};var F=function(){this.action=i.ACTION.CMDP_QUERYUSER};e.CMDP_QUERYUSER=F;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(F);e.CMDP_QUERYUSER_RESPONSE=H;e.CMDC_QUERYANSWERED=function(){this.action=i.ACTION.CMDC_QUERYANSWERED};var w=function(){this.action=i.ACTION.CMDP_SQUERY_DISCOUNT};e.CMDP_SQUERY_DISCOUNT=w;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(w);e.CMDP_SQUERY_DISCOUNT_RESPONSE=j;var Y=function(){this.action=i.ACTION.CMDP_SET_DISCOUNT};e.CMDP_SET_DISCOUNT=Y;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(Y);e.CMDP_SET_DISCOUNT_RESPONSE=B;e.CMDC_UPDATE_CHAT=function(){this.action=i.ACTION.CMDC_UPDATE_CHAT}},8167:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SLOGIN_RESPONSE=e.CMDP_SLOGIN=void 0;var i=n(5362),r=n(7292),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=r.ACTION.CMDP_SLOGIN,e}return _(e,t),e}(i.CMDP_LOGIN);e.CMDP_SLOGIN=s;var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=r.ACTION.CMDP_SLOGIN,e}return _(e,t),e}(i.CMDP_LOGIN_RESPONSE);e.CMDP_SLOGIN_RESPONSE=E},2596:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_GETONLINESUMMARY_RESPONSE=e.CMDP_GETONLINESUMMARY=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_GETONLINESUMMARY};e.CMDP_GETONLINESUMMARY=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_GETONLINESUMMARY_RESPONSE=s},5160:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CMDC_STREAMSTATE=e.EnumStreamQuality=void 0;var o,_=n(117);(o=e.EnumStreamQuality||(e.EnumStreamQuality={})).NONE="NONE",o.EXCELLENT="EXCELLENT",o.GOOD="GOOD",o.BAD="BAD";e.CMDC_STREAMSTATE=function(){this.action=_.ACTION.CMDC_STREAMSTATE}},8270:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SUPDATE_RESPONSE=e.CMDP_SUPDATE=e.EnumService0900Operation=e.EnumService0900State=void 0;var i,r,s=n(117);(r=e.EnumService0900State||(e.EnumService0900State={})).ACTIVE="active",r.INACTIVE="inactive",(i=e.EnumService0900Operation||(e.EnumService0900Operation={})).ENABLE="turnOn",i.DISABLE="turnOff";var E=function(){this.action=s.ACTION.CMDP_SUPDATE};e.CMDP_SUPDATE=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_SUPDATE_RESPONSE=a},7385:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SETSETTINGS_RESPONSE=e.CMDP_SETSETTINGS=e.CMDP_GETSETTINGS_RESPONSE=e.CMDP_GETSETTINGS=e.EnumPushNotificationFilter=void 0;var i,r=n(7292);(i=e.EnumPushNotificationFilter||(e.EnumPushNotificationFilter={})).ALL="all",i.REGULAR="regular",i.NONE="none";var s=function(){this.action=r.ACTION.CMDP_SETSETTINGS};e.CMDP_GETSETTINGS=s;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(s);e.CMDP_GETSETTINGS_RESPONSE=E;var a=function(){this.action=r.ACTION.CMDP_SETSETTINGS};e.CMDP_SETSETTINGS=a;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(a);e.CMDP_SETSETTINGS_RESPONSE=C},1563:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_CLOSE_LOBBY_RESPONSE=e.CMDP_CLOSE_LOBBY=e.CMDP_OPEN_LOBBY_RESPONSE=e.CMDP_OPEN_LOBBY=void 0;var i=n(7292),r=function(){this.action=i.ACTION.CMDP_OPEN_LOBBY};e.CMDP_OPEN_LOBBY=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_OPEN_LOBBY_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_CLOSE_LOBBY};e.CMDP_CLOSE_LOBBY=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_CLOSE_LOBBY_RESPONSE=a},5362:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_LOGIN_RESPONSE=e.CMDP_LOGIN=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_LOGIN};e.CMDP_LOGIN=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_LOGIN_RESPONSE=s},8210:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SLOGOUT_RESPONSE=e.CMDP_SLOGOUT=e.CMDP_LOGOUT_RESPONSE=e.CMDP_LOGOUT=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_LOGOUT};e.CMDP_LOGOUT=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_LOGOUT_RESPONSE=s;var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SLOGOUT,e}return _(e,t),e}(r);e.CMDP_SLOGOUT=E;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDP_SLOGOUT,e}return _(e,t),e}(s);e.CMDP_SLOGOUT_RESPONSE=a},5114:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SMEDIAOFFERCREATE_PRESPONSE=e.CMDP_SMEDIAOFFERCREATE=e.CMDP_SGETPRICESMEDIA_PRESPONSE=e.CMDP_SMEDIAGETPRICES=void 0;var i=n(7292),r=function(){this.action=i.ACTION.CMDP_SMEDIAGETPRICES};e.CMDP_SMEDIAGETPRICES=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SGETPRICESMEDIA_PRESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_SMEDIAOFFERCREATE};e.CMDP_SMEDIAOFFERCREATE=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_SMEDIAOFFERCREATE_PRESPONSE=a},7847:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDC_MEDIAPURCHASED=e.CMDP_SINFORMMEDIAPURCHASED_RESPONSE=e.CMDP_SINFORMMEDIAPURCHASED=e.CMDP_SMEDIAPURCHASE_PRESPONSE=e.CMDP_SMEDIAPURCHASE=void 0;var i=n(7292),r=n(8025),s=function(){this.action=i.ACTION.CMDP_SMEDIAPURCHASE};e.CMDP_SMEDIAPURCHASE=s;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(s);e.CMDP_SMEDIAPURCHASE_PRESPONSE=E;var a=function(){this.action=i.ACTION.CMDP_SINFORMMEDIAPURCHASED};e.CMDP_SINFORMMEDIAPURCHASED=a;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(a);e.CMDP_SINFORMMEDIAPURCHASED_RESPONSE=C;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=i.ACTION.CMDC_MEDIAPURCHASED,e}return _(e,t),e}(r.CMDC_CMSG);e.CMDC_MEDIAPURCHASED=u},8612:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SFORWARDMEDIA_RESPONSE=e.CMDP_SFORWARDMEDIA=e.CMDP_SGETMEDIAINFO_RESPONSE=e.CMDP_SGETMEDIAINFO=e.CMDP_SUPLOADMEDIA_RESPONSE=e.CMDP_SUPLOADMEDIA=e.UploadStep=void 0;var i,r=n(117);(i=e.UploadStep||(e.UploadStep={})).earlyreject="earlyreject",i.lateaccept="lateaccept",i.informuploaded="informuploaded",i.transcoded="transcoded",i.error="error";var s=function(){this.action=r.ACTION.CMDP_SUPLOADMEDIA};e.CMDP_SUPLOADMEDIA=s;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(s);e.CMDP_SUPLOADMEDIA_RESPONSE=E;var a=function(){this.action=r.ACTION.CMDP_SUPLOADMEDIA};e.CMDP_SGETMEDIAINFO=a;var C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.action=r.ACTION.CMDP_SUPLOADMEDIA,e}return _(e,t),e}(a);e.CMDP_SGETMEDIAINFO_RESPONSE=C;var u=function(){this.action=r.ACTION.CMDP_SFORWARDMEDIA};e.CMDP_SFORWARDMEDIA=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(u);e.CMDP_SFORWARDMEDIA_RESPONSE=c},8025:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_MSGDELETE_RESPONSE=e.CMDP_MSGDELETE=e.CMDP_MSG_RESPONSE=e.CMDP_MSG=e.CMDC_CMSG=e.EnumMessageStyle=e.EnumMediaState=e.EnumMediaType=e.EnumMessageDirection=e.EnumMessageType=e.EnumMessageFlagValue=e.MessageFlags=void 0;var i,r,s,E,a,C,u,c=n(117);(u=e.MessageFlags||(e.MessageFlags={}))[u.canDeleted=0]="canDeleted",u[u.isDeleted=1]="isDeleted",(C=e.EnumMessageFlagValue||(e.EnumMessageFlagValue={})).NO="0",C.YES="1",(a=e.EnumMessageType||(e.EnumMessageType={})).MAIL="mail",a.CHAT="chat",a.MESSENGER="msn",a.SYSTEM="sys",(E=e.EnumMessageDirection||(e.EnumMessageDirection={})).IN="in",E.OUT="out",(s=e.EnumMediaType||(e.EnumMediaType={})).BITMAP="Bitmap",s.AUDIO="Audio",s.VIDEO="Video",(r=e.EnumMediaState||(e.EnumMediaState={})).OK="ok",r.TRANSCODING="transcode",r.ERROR="error",(i=e.EnumMessageStyle||(e.EnumMessageStyle={})).GUEST="g",i.SYSTEM="s",i.INFO="info",i.WARN="warn",i.ERROR="error",i.INFO_HIGHLIGHT="InfoHighlight";e.CMDC_CMSG=function(){this.action=c.ACTION.CMDC_CMSG};var S=function(){this.action=c.ACTION.CMDP_MSG};e.CMDP_MSG=S;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(S);e.CMDP_MSG_RESPONSE=O;var T=function(){this.action=c.ACTION.CMDP_MSGDELETE};e.CMDP_MSGDELETE=T;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(T);e.CMDP_MSGDELETE_RESPONSE=h},8431:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_SETEXPOTOKEN_RESPONSE=e.CMDP_SETEXPOTOKEN=void 0;var i=n(7292),r=function(){this.action=i.ACTION.CMDP_SETEXPOTOKEN};e.CMDP_SETEXPOTOKEN=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_SETEXPOTOKEN_RESPONSE=s},2579:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_NOOP_RESPONSE=e.CMDP_NOOP=void 0;var i=n(117),r=function(){this.action=i.ACTION.CMDP_NOOP};e.CMDP_NOOP=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_NOOP_RESPONSE=s},8799:function(t,e,n){var o,_=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CMDP_GETONLINESTATES_RESPONSE=e.CMDP_GETONLINESTATES=e.CMDP_GETONLINESTATE_RESPONSE=e.CMDP_GETONLINESTATE=e.CMDC_ONLINESTATE=void 0;var i=n(117);e.CMDC_ONLINESTATE=function(){this.action=i.ACTION.CMDC_ONLINESTATE};var r=function(){this.action=i.ACTION.CMDP_GETONLINESTATE};e.CMDP_GETONLINESTATE=r;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(r);e.CMDP_GETONLINESTATE_RESPONSE=s;var E=function(){this.action=i.ACTION.CMDP_GETONLINESTATES};e.CMDP_GETONLINESTATES=E;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(E);e.CMDP_GETONLINESTATES_RESPONSE=a},8262:(t,e)=>{var n,o,_;Object.defineProperty(e,"__esModule",{value:!0}),e.SessionFlag=e.EnumFsk=e.EnumSetTp=void 0,(_=e.EnumSetTp||(e.EnumSetTp={})).OFFLINE="0",_.ONLINE="1",_.GOING_ONLINE="2",(o=e.EnumFsk||(e.EnumFsk={})).SIXTEEN="16",o.EIGHTEEN="18",(n=e.SessionFlag||(e.SessionFlag={})).MASTER="MASTER",n.B2B="B2B",n.FSK16="FSK16",n.FSK18="FSK18",n.BLOCKFSK16="BLOCKFSK16",n.FSKMASK="FSKMASK",n.JWT="JWT",n.MSN="MSN",n.SHARED="SHARED",n.ADMIN="ADMIN",n.HASFSK18CHAT="HASFSK18CHAT",n.WEBCAMAVS="WEBCAMAVS",n.FREEMODE="FREEMODE",n.PARTYMODE="PARTYMODE",n.BBS24="BBS24",n.LOBBY_OPENED="LOBBY_OPENED"},9710:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SystemMessageKey=void 0,(n=e.SystemMessageKey||(e.SystemMessageKey={})).bonusCodeRedemption="bonusCodeRedemption",n.g_chat_auto_charged="g_chat_auto_charged",n.g_chat_host_micro_off="g_chat_host_micro_off",n.g_chat_host_micro_on="g_chat_host_micro_on",n.g_discount_client="g_discount_client",n.g_discount_client_once="g_discount_client_once",n.g_single_not_started="g_single_not_started",n.g_single_rejected="g_single_rejected",n.g_single_started="g_single_started",n.g_video_cancel="g_video_cancel",n.g_video_delayed="g_video_delayed",n.g_video_delerror="g_video_delerror",n.h_chat_admin_start="h_chat_admin_start",n.h_chat_admin_stop="h_chat_admin_stop",n.h_chat_audio_start="h_chat_audio_start",n.h_chat_ban_failed="h_chat_ban_failed",n.h_chat_ban_ok="h_chat_ban_ok",n.h_chat_button_yes_close="h_chat_button_yes_close",n.h_chat_cam2cam_running="h_chat_cam2cam_running",n.h_chat_cam2cam_start="h_chat_cam2cam_start",n.h_chat_cam2cam_stop="h_chat_cam2cam_stop",n.h_chat_category_from="h_chat_category_from",n.h_chat_client_software="h_chat_client_software",n.h_chat_conversion_info_has_top_up="h_chat_conversion_info_has_top_up",n.h_chat_conversion_info_no_top_up="h_chat_conversion_info_no_top_up",n.h_chat_conversion_start="h_chat_conversion_start",n.h_chat_duration="h_chat_duration",n.h_chat_free_mode_converted="h_chat_free_mode_converted",n.h_chat_freeuserconv="h_chat_freeuserconv",n.h_chat_fsk_attention="h_chat_fsk_attention",n.h_chat_fsk_denied="h_chat_fsk_denied",n.h_chat_fsk_text_warn="h_chat_fsk_text_warn",n.h_chat_guest_mobile="h_chat_guest_mobile",n.h_chat_guest_sound_off="h_chat_guest_sound_off",n.h_chat_guest_sound_on="h_chat_guest_sound_on",n.h_chat_guest_visit="h_chat_guest_visit",n.h_chat_guest_visit_first="h_chat_guest_visit_first",n.h_chat_info_about="h_chat_info_about",n.h_chat_kicked="h_chat_kicked",n.h_chat_lovense_not_available="h_chat_lovense_not_available",n.h_chat_no_history="h_chat_no_history",n.h_chat_not_visitx_guest="h_chat_not_visitx_guest",n.h_chat_note_caption="h_chat_note_caption",n.h_chat_note_create="h_chat_note_create",n.h_chat_note_edit="h_chat_note_edit",n.h_chat_note_not_available="h_chat_note_not_available",n.h_chat_party_mode_converted="h_chat_party_mode_converted",n.h_chat_paused_4107="h_chat_paused_4107",n.h_chat_please_micro_on="h_chat_please_micro_on",n.h_chat_preview_start="h_chat_preview_start",n.h_chat_preview_stop="h_chat_preview_stop",n.h_chat_pseudo_user="h_chat_pseudo_user",n.h_chat_quest_voyeur_shown="h_chat_quest_voyeur_shown",n.h_chat_quest_voyeur_start="h_chat_quest_voyeur_start",n.h_chat_rectuited_guest="h_chat_rectuited_guest",n.h_chat_single_available="h_chat_single_available",n.h_chat_single_not_available="h_chat_single_not_available",n.h_chat_single_running="h_chat_single_running",n.h_chat_stop="h_chat_stop",n.h_chat_stop_guest_error="h_chat_stop_guest_error",n.h_chat_test_chat="h_chat_test_chat",n.h_chat_text_chat_goal_video="h_chat_text_chat_goal_video",n.h_chat_text_muted="h_chat_text_muted",n.h_chat_text_start="h_chat_text_start",n.h_chat_text_to_video="h_chat_text_to_video",n.h_chat_text_unmuted="h_chat_text_unmuted",n.h_chat_tip="h_chat_tip",n.h_chat_url_blocked="h_chat_url_blocked",n.h_chat_userisnovip="h_chat_userisnovip",n.h_chat_userisvip="h_chat_userisvip",n.h_chat_video_start="h_chat_video_start",n.h_chat_video_start_voyeur="h_chat_video_start_voyeur",n.h_chat_voyer2single_video_disabled="h_chat_voyer2single_video_disabled",n.h_chat_voyeur2single="h_chat_voyeur2single",n.h_chat_voyeur2single_off="h_chat_voyeur2single_off",n.h_chat_voyeur2single_video_audio_warn="h_chat_voyeur2single_video_audio_warn",n.h_chat_voyeur2single_video_warn="h_chat_voyeur2single_video_warn",n.h_chat_voyeur_shown="h_chat_voyeur_shown",n.h_chat_voyuer="h_chat_voyuer",n.h_chat_voyuer_shown="h_chat_voyuer_shown",n.h_discount_available="h_discount_available",n.h_discount_current="h_discount_current",n.h_discount_invalid="h_discount_invalid",n.h_discount_not_available="h_discount_not_available",n.h_discount_set_ok="h_discount_set_ok",n.h_discount_setforinfo="h_discount_setforinfo",n.h_error_video_send_failed="h_error_video_send_failed",n.h_instant_start="h_instant_start",n.h_instant_stop="h_instant_stop",n.h_media_audio_error="h_media_audio_error",n.h_media_audio_informuploaded="h_media_audio_informuploaded",n.h_media_bitmap_error="h_media_bitmap_error",n.h_media_video_error="h_media_video_error",n.h_media_video_informuploaded="h_media_video_informuploaded",n.h_session_appear_offline="h_session_appear_offline",n.h_session_audio_device_error="h_session_audio_device_error",n.h_session_audio_device_frozen="h_session_audio_device_frozen",n.h_session_audio_loudness_ok="h_session_audio_loudness_ok",n.h_session_audio_no_loudness="h_session_audio_no_loudness",n.h_session_audio_off="h_session_audio_off",n.h_session_audio_on="h_session_audio_on",n.h_session_button_cancel="h_session_button_cancel",n.h_session_button_no="h_session_button_no",n.h_session_button_yes="h_session_button_yes",n.h_session_cpu_overload="h_session_cpu_overload",n.h_session_error="h_session_error",n.h_session_free_mode_off="h_session_free_mode_off",n.h_session_free_mode_on="h_session_free_mode_on",n.h_session_fsk_mixed_profile="h_session_fsk_mixed_profile",n.h_session_livepreview_off="h_session_livepreview_off",n.h_session_livepreview_on="h_session_livepreview_on",n.h_session_mixed_profile_auto_off="h_session_mixed_profile_auto_off",n.h_session_mixed_profile_no="h_session_mixed_profile_no",n.h_session_mixed_profile_not_available="h_session_mixed_profile_not_available",n.h_session_mixed_profile_off="h_session_mixed_profile_off",n.h_session_mixed_profile_on="h_session_mixed_profile_on",n.h_session_mixed_profile_reminder="h_session_mixed_profile_reminder",n.h_session_no_video_allowed="h_session_no_video_allowed",n.h_session_offline="h_session_offline",n.h_session_offline_title="h_session_offline_title",n.h_session_old_ssw="h_session_old_ssw",n.h_session_online="h_session_online",n.h_session_online_today="h_session_online_today",n.h_session_party_mode_off="h_session_party_mode_off",n.h_session_party_mode_on="h_session_party_mode_on",n.h_session_preview_picture_missed="h_session_preview_picture_missed",n.h_session_preview_picture_upload="h_session_preview_picture_upload",n.h_session_service0900state_turnoff="h_session_service0900state_turnoff",n.h_session_service0900state_turnon="h_session_service0900state_turnon",n.h_session_stream_not_found="h_session_stream_not_found",n.h_session_stream_restart="h_session_stream_restart",n.h_session_stream_wait="h_session_stream_wait",n.h_session_toy_start="h_session_toy_start",n.h_session_toy_stop="h_session_toy_stop",n.h_session_user_locked="h_session_user_locked",n.h_session_video_device_error="h_session_video_device_error",n.h_session_video_device_frozen="h_session_video_device_frozen",n.h_single_error="h_single_error",n.h_single_init_failed="h_single_init_failed",n.h_single_init_ok="h_single_init_ok",n.h_single_not_available="h_single_not_available",n.h_single_query="h_single_query",n.h_single_rejected="h_single_rejected",n.h_single_request_90s="h_single_request_90s",n.h_single_started="h_single_started",n.h_single_timeout="h_single_timeout",n.h_video_cancel="h_video_cancel",n.h_video_delayed="h_video_delayed",n.h_video_reconnect="h_video_reconnect",n.h_vcall_code="h_vcall_code",n.h_session_media_purchased="h_session_media_purchased",n.h_media_bitmap_purchased="h_media_bitmap_purchased",n.h_media_video_purchased="h_media_video_purchased",n.h_media_audio_purchased="h_media_audio_purchased"},5394:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CMDC_UPDATE=void 0;var o=n(117);e.CMDC_UPDATE=function(){this.action=o.ACTION.CMDC_UPDATE}},1994:e=>{e.exports=t}},n={};return function t(o){var _=n[o];if(void 0!==_)return _.exports;var i=n[o]={exports:{}};return e[o].call(i.exports,i,i.exports,t),i.exports}(4793)})()}));
|
|
2
|
+
//# sourceMappingURL=cmd-control-client-lib.js.map
|