/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/intenselab-ua-equity-market@1.0.7/intenseLabMarketUaEquity.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(){var t={9662:function(t,e,n){var r=n(7854),o=n(614),i=n(6330),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},9483:function(t,e,n){var r=n(7854),o=n(4411),i=n(6330),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(7854),o=n(614),i=r.String,c=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw c("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070),c=r("unscopables"),u=Array.prototype;null==u[c]&&i.f(u,c,{configurable:!0,value:o(null)}),t.exports=function(t){u[c][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7854),o=n(7976),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},9670:function(t,e,n){var r=n(7854),o=n(111),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},260:function(t,e,n){"use strict";var r,o,i,c=n(4019),u=n(9781),a=n(7854),s=n(614),f=n(111),l=n(2597),y=n(648),p=n(6330),h=n(8880),d=n(1320),b=n(3070).f,v=n(7976),m=n(9518),g=n(7674),w=n(5112),O=n(9711),S=a.Int8Array,E=S&&S.prototype,_=a.Uint8ClampedArray,k=_&&_.prototype,T=S&&m(S),R=E&&m(E),j=Object.prototype,P=a.TypeError,x=w("toStringTag"),U=O("TYPED_ARRAY_TAG"),A=O("TYPED_ARRAY_CONSTRUCTOR"),C=c&&!!g&&"Opera"!==y(a.opera),D=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},q={BigInt64Array:8,BigUint64Array:8},B=function(t){if(!f(t))return!1;var e=y(t);return l(I,e)||l(q,e)};for(r in I)(i=(o=a[r])&&o.prototype)?h(i,A,o):C=!1;for(r in q)(i=(o=a[r])&&o.prototype)&&h(i,A,o);if((!C||!s(T)||T===Function.prototype)&&(T=function(){throw P("Incorrect invocation")},C))for(r in I)a[r]&&g(a[r],T);if((!C||!R||R===j)&&(R=T.prototype,C))for(r in I)a[r]&&g(a[r].prototype,R);if(C&&m(k)!==R&&g(k,R),u&&!l(R,x))for(r in D=!0,b(R,x,{get:function(){return f(this)?this[U]:void 0}}),I)a[r]&&h(a[r],U,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_CONSTRUCTOR:A,TYPED_ARRAY_TAG:D&&U,aTypedArray:function(t){if(B(t))return t;throw P("Target is not a typed array")},aTypedArrayConstructor:function(t){if(s(t)&&(!g||v(T,t)))return t;throw P(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(u){if(n)for(var r in I){var o=a[r];if(o&&l(o.prototype,t))try{delete o.prototype[t]}catch(t){}}R[t]&&!n||d(R,t,n?e:C&&E[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,o;if(u){if(g){if(n)for(r in I)if((o=a[r])&&l(o,t))try{delete o[t]}catch(t){}if(T[t]&&!n)return;try{return d(T,t,n?e:C&&T[t]||e)}catch(t){}}for(r in I)!(o=a[r])||o[t]&&!n||d(o,t,e)}},isView:function(t){if(!f(t))return!1;var e=y(t);return"DataView"===e||l(I,e)||l(q,e)},isTypedArray:B,TypedArray:T,TypedArrayPrototype:R}},3331:function(t,e,n){"use strict";var r=n(7854),o=n(1702),i=n(9781),c=n(4019),u=n(6530),a=n(8880),s=n(2248),f=n(7293),l=n(5787),y=n(9303),p=n(7466),h=n(7067),d=n(1179),b=n(9518),v=n(7674),m=n(8006).f,g=n(3070).f,w=n(1285),O=n(206),S=n(8003),E=n(9909),_=u.PROPER,k=u.CONFIGURABLE,T=E.get,R=E.set,j="ArrayBuffer",P="DataView",x="Wrong index",U=r.ArrayBuffer,A=U,C=A&&A.prototype,D=r.DataView,I=D&&D.prototype,q=Object.prototype,B=r.Array,M=r.RangeError,N=o(w),L=o([].reverse),z=d.pack,F=d.unpack,H=function(t){return[255&t]},Z=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},W=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},G=function(t){return z(t,23,4)},Y=function(t){return z(t,52,8)},K=function(t,e){g(t.prototype,e,{get:function(){return T(this)[e]}})},Q=function(t,e,n,r){var o=h(n),i=T(t);if(o+e>i.byteLength)throw M(x);var c=T(i.buffer).bytes,u=o+i.byteOffset,a=O(c,u,u+e);return r?a:L(a)},J=function(t,e,n,r,o,i){var c=h(n),u=T(t);if(c+e>u.byteLength)throw M(x);for(var a=T(u.buffer).bytes,s=c+u.byteOffset,f=r(+o),l=0;l<e;l++)a[s+l]=f[i?l:e-l-1]};if(c){var X=_&&U.name!==j;if(f((function(){U(1)}))&&f((function(){new U(-1)}))&&!f((function(){return new U,new U(1.5),new U(NaN),X&&!k})))X&&k&&a(U,"name",j);else{(A=function(t){return l(this,C),new U(h(t))}).prototype=C;for(var $,tt=m(U),et=0;tt.length>et;)($=tt[et++])in A||a(A,$,U[$]);C.constructor=A}v&&b(I)!==q&&v(I,q);var nt=new D(new A(2)),rt=o(I.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||s(I,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else C=(A=function(t){l(this,C);var e=h(t);R(this,{bytes:N(B(e),0),byteLength:e}),i||(this.byteLength=e)}).prototype,I=(D=function(t,e,n){l(this,I),l(t,C);var r=T(t).byteLength,o=y(e);if(o<0||o>r)throw M("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw M("Wrong length");R(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o)}).prototype,i&&(K(A,"byteLength"),K(D,"buffer"),K(D,"byteLength"),K(D,"byteOffset")),s(I,{getInt8:function(t){return Q(this,1,t)[0]<<24>>24},getUint8:function(t){return Q(this,1,t)[0]},getInt16:function(t){var e=Q(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Q(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return W(Q(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return W(Q(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return F(Q(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return F(Q(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){J(this,1,t,H,e)},setUint8:function(t,e){J(this,1,t,H,e)},setInt16:function(t,e){J(this,2,t,Z,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){J(this,2,t,Z,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){J(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){J(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){J(this,4,t,G,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){J(this,8,t,Y,e,arguments.length>2?arguments[2]:void 0)}});S(A,j),S(D,P),t.exports={ArrayBuffer:A,DataView:D}},1048:function(t,e,n){"use strict";var r=n(7908),o=n(1400),i=n(6244),c=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=i(n),a=o(t,u),s=o(e,u),f=arguments.length>2?arguments[2]:void 0,l=c((void 0===f?u:o(f,u))-s,u-a),y=1;for(s<a&&a<s+l&&(y=-1,s+=l-1,a+=l-1);l-- >0;)s in n?n[a]=n[s]:delete n[a],a+=y,s+=y;return n}},1285:function(t,e,n){"use strict";var r=n(7908),o=n(1400),i=n(6244);t.exports=function(t){for(var e=r(this),n=i(e),c=arguments.length,u=o(c>1?arguments[1]:void 0,n),a=c>2?arguments[2]:void 0,s=void 0===a?n:o(a,n);s>u;)e[u++]=t;return e}},7745:function(t){t.exports=function(t,e){for(var n=0,r=e.length,o=new t(r);r>n;)o[n]=e[n++];return o}},8457:function(t,e,n){"use strict";var r=n(7854),o=n(9974),i=n(6916),c=n(7908),u=n(3411),a=n(7659),s=n(4411),f=n(6244),l=n(6135),y=n(8554),p=n(1246),h=r.Array;t.exports=function(t){var e=c(t),n=s(this),r=arguments.length,d=r>1?arguments[1]:void 0,b=void 0!==d;b&&(d=o(d,r>2?arguments[2]:void 0));var v,m,g,w,O,S,E=p(e),_=0;if(!E||this==h&&a(E))for(v=f(e),m=n?new this(v):h(v);v>_;_++)S=b?d(e[_],_):e[_],l(m,_,S);else for(O=(w=y(e,E)).next,m=n?new this:[];!(g=i(O,w)).done;_++)S=b?u(w,d,[g.value,_],!0):g.value,l(m,_,S);return m.length=_,m}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),c=function(t){return function(e,n,c){var u,a=r(e),s=i(a),f=o(c,s);if(t&&n!=n){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},2092:function(t,e,n){var r=n(9974),o=n(1702),i=n(8361),c=n(7908),u=n(6244),a=n(5417),s=o([].push),f=function(t){var e=1==t,n=2==t,o=3==t,f=4==t,l=6==t,y=7==t,p=5==t||l;return function(h,d,b,v){for(var m,g,w=c(h),O=i(w),S=r(d,b),E=u(O),_=0,k=v||a,T=e?k(h,E):n||y?k(h,0):void 0;E>_;_++)if((p||_ in O)&&(g=S(m=O[_],_,w),t))if(e)T[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:s(T,m)}else switch(t){case 4:return!1;case 7:s(T,m)}return l?-1:o||f?f:T}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},6583:function(t,e,n){"use strict";var r=n(2104),o=n(5656),i=n(9303),c=n(6244),u=n(9341),a=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=u("lastIndexOf"),y=f||!l;t.exports=y?function(t){if(f)return r(s,this,arguments)||0;var e=o(this),n=c(e),u=n-1;for(arguments.length>1&&(u=a(u,i(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in e&&e[u]===t)return u||0;return-1}:s},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var r=n(7854),o=n(9662),i=n(7908),c=n(8361),u=n(6244),a=r.TypeError,s=function(t){return function(e,n,r,s){o(n);var f=i(e),l=c(f),y=u(f),p=t?y-1:0,h=t?-1:1;if(r<2)for(;;){if(p in l){s=l[p],p+=h;break}if(p+=h,t?p<0:y<=p)throw a("Reduce of empty array with no initial value")}for(;t?p>=0:y>p;p+=h)p in l&&(s=n(s,l[p],p,f));return s}};t.exports={left:s(!1),right:s(!0)}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(206),o=Math.floor,i=function(t,e){var n=t.length,a=o(n/2);return n<8?c(t,e):u(t,i(r(t,0,a),e),i(r(t,a),e),e)},c=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},u=function(t,e,n,r){for(var o=e.length,i=n.length,c=0,u=0;c<o||u<i;)t[c+u]=c<o&&u<i?r(e[c],n[u])<=0?e[c++]:n[u++]:c<o?e[c++]:n[u++];return t};t.exports=i},7475:function(t,e,n){var r=n(7854),o=n(3157),i=n(4411),c=n(111),u=n(5112)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||c(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),o=n(9212);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[r]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(7854),o=n(1694),i=n(614),c=n(4326),u=n(5112)("toStringTag"),a=r.Object,s="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?n:s?c(e):"Object"==(r=c(e))&&i(e.callee)?"Arguments":r}},9320:function(t,e,n){"use strict";var r=n(1702),o=n(2248),i=n(2423).getWeakData,c=n(9670),u=n(111),a=n(5787),s=n(408),f=n(2092),l=n(2597),y=n(9909),p=y.set,h=y.getterFor,d=f.find,b=f.findIndex,v=r([].splice),m=0,g=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},O=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=O(this,t);if(e)return e[1]},has:function(t){return!!O(this,t)},set:function(t,e){var n=O(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=b(this.entries,(function(e){return e[0]===t}));return~e&&v(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,o){a(t,y),p(t,{type:e,id:m++,frozen:void 0}),null!=o&&s(o,t[r],{that:t,AS_ENTRIES:n})})),y=f.prototype,d=h(e),b=function(t,e,n){var r=d(t),o=i(c(e),!0);return!0===o?g(r).set(e,n):o[r.id]=n,t};return o(y,{delete:function(t){var e=d(this);if(!u(t))return!1;var n=i(t);return!0===n?g(e).delete(t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!u(t))return!1;var n=i(t);return!0===n?g(e).has(t):n&&l(n,e.id)}}),o(y,n?{get:function(t){var e=d(this);if(u(t)){var n=i(t);return!0===n?g(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),f}}},7710:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),c=n(4705),u=n(1320),a=n(2423),s=n(408),f=n(5787),l=n(614),y=n(111),p=n(7293),h=n(7072),d=n(8003),b=n(9587);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),g=v?"set":"add",w=o[t],O=w&&w.prototype,S=w,E={},_=function(t){var e=i(O[t]);u(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!y(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return m&&!y(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!y(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(c(t,!l(w)||!(m||O.forEach&&!p((function(){(new w).entries().next()})))))S=n.getConstructor(e,t,v,g),a.enable();else if(c(t,!0)){var k=new S,T=k[g](m?{}:-0,1)!=k,R=p((function(){k.has(1)})),j=h((function(t){new w(t)})),P=!m&&p((function(){for(var t=new w,e=5;e--;)t[g](e,e);return!t.has(-0)}));j||((S=e((function(t,e){f(t,O);var n=b(new w,t,S);return null!=e&&s(e,n[g],{that:n,AS_ENTRIES:v}),n}))).prototype=O,O.constructor=S),(R||P)&&(_("delete"),_("has"),v&&_("get")),(P||T)&&_(g),m&&O.clear&&delete O.clear}return E[t]=S,r({global:!0,forced:S!=w},E),d(S,t),m||n.setStrong(S,t,v),S}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),c=n(3070);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||u(t,f,a(e,f))}}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),c=n(8003),u=n(7497),a=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,s,!1,!0),u[s]=a,t}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),o=n(3070),i=n(9114);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},654:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(1913),c=n(6530),u=n(614),a=n(4994),s=n(9518),f=n(7674),l=n(8003),y=n(8880),p=n(1320),h=n(5112),d=n(7497),b=n(3383),v=c.PROPER,m=c.CONFIGURABLE,g=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,O=h("iterator"),S="keys",E="values",_="entries",k=function(){return this};t.exports=function(t,e,n,c,h,b,T){a(n,e,c);var R,j,P,x=function(t){if(t===h&&I)return I;if(!w&&t in C)return C[t];switch(t){case S:case E:case _:return function(){return new n(this,t)}}return function(){return new n(this)}},U=e+" Iterator",A=!1,C=t.prototype,D=C[O]||C["@@iterator"]||h&&C[h],I=!w&&D||x(h),q="Array"==e&&C.entries||D;if(q&&(R=s(q.call(new t)))!==Object.prototype&&R.next&&(i||s(R)===g||(f?f(R,g):u(R[O])||p(R,O,k)),l(R,U,!0,!0),i&&(d[U]=k)),v&&h==E&&D&&D.name!==E&&(!i&&m?y(C,"name",E):(A=!0,I=function(){return o(D,this)})),h)if(j={values:x(E),keys:b?I:x(S),entries:x(_)},T)for(P in j)(w||A||!(P in C))&&p(C,P,j[P]);else r({target:e,proto:!0,forced:w||A},j);return i&&!T||C[O]===I||p(C,O,I,{name:h}),d[e]=I,j}},7235:function(t,e,n){var r=n(857),o=n(2597),i=n(6061),c=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,n){var r=n(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8886:function(t,e,n){var r=n(8113).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7871:function(t){t.exports="object"==typeof window},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),o=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),o=n(7854);t.exports="process"==r(o.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),c=n(8113),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8008:function(t,e,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),c=n(1320),u=n(3505),a=n(9920),s=n(4705);t.exports=function(t,e){var n,f,l,y,p,h=t.target,d=t.global,b=t.stat;if(n=d?r:b?r[h]||u(h,{}):(r[h]||{}).prototype)for(f in e){if(y=e[f],l=t.noTargetGet?(p=o(n,f))&&p.value:n[f],!s(d?f:h+(b?".":"#")+f,t.forced)&&void 0!==l){if(typeof y==typeof l)continue;a(y,l)}(t.sham||l&&l.sham)&&i(y,"sham",!0),c(n,f,y,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),o=n(1320),i=n(2261),c=n(7293),u=n(5112),a=n(8880),s=u("species"),f=RegExp.prototype;t.exports=function(t,e,n,l){var y=u(t),p=!c((function(){var e={};return e[y]=function(){return 7},7!=""[t](e)})),h=p&&!c((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[y]=/./[y]),n.exec=function(){return e=!0,null},n[y](""),!e}));if(!p||!h||n){var d=r(/./[y]),b=e(y,""[t],(function(t,e,n,o,c){var u=r(t),a=e.exec;return a===i||a===f.exec?p&&!c?{done:!0,value:d(e,n,o)}:{done:!0,value:u(n,e,o)}:{done:!1}}));o(String.prototype,t,b[0]),o(f,y,b[1])}l&&a(f[y],"sham",!0)}},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t){var e=Function.prototype,n=e.apply,r=e.bind,o=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},9974:function(t,e,n){var r=n(1702),o=n(9662),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},7065:function(t,e,n){"use strict";var r=n(7854),o=n(1702),i=n(9662),c=n(111),u=n(2597),a=n(206),s=r.Function,f=o([].concat),l=o([].join),y={},p=function(t,e,n){if(!u(y,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";y[e]=s("C,a","return new C("+l(r,",")+")")}return y[e](t,n)};t.exports=s.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=f(r,a(arguments));return this instanceof o?p(e,n.length,n):e.apply(t,n)};return c(n)&&(o.prototype=n),o}},6916:function(t){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,s=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},1702:function(t){var e=Function.prototype,n=e.bind,r=e.call,o=n&&n.bind(r);t.exports=n?function(t){return t&&o(r,t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),o=n(8173),i=n(7497),c=n(5112)("iterator");t.exports=function(t){if(null!=t)return o(t,c)||o(t,"@@iterator")||i[r(t)]}},8554:function(t,e,n){var r=n(7854),o=n(6916),i=n(9662),c=n(9670),u=n(6330),a=n(1246),s=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return c(o(n,t));throw s(u(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1179:function(t,e,n){var r=n(7854).Array,o=Math.abs,i=Math.pow,c=Math.floor,u=Math.log,a=Math.LN2;t.exports={pack:function(t,e,n){var s,f,l,y=r(n),p=8*n-e-1,h=(1<<p)-1,d=h>>1,b=23===e?i(2,-24)-i(2,-77):0,v=t<0||0===t&&1/t<0?1:0,m=0;for((t=o(t))!=t||t===1/0?(f=t!=t?1:0,s=h):(s=c(u(t)/a),t*(l=i(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?b/l:b*i(2,1-d))*l>=2&&(s++,l/=2),s+d>=h?(f=0,s=h):s+d>=1?(f=(t*l-1)*i(2,e),s+=d):(f=t*i(2,d-1)*i(2,e),s=0));e>=8;y[m++]=255&f,f/=256,e-=8);for(s=s<<e|f,p+=e;p>0;y[m++]=255&s,s/=256,p-=8);return y[--m]|=128*v,y},unpack:function(t,e){var n,r=t.length,o=8*r-e-1,c=(1<<o)-1,u=c>>1,a=o-7,s=r-1,f=t[s--],l=127&f;for(f>>=7;a>0;l=256*l+t[s],s--,a-=8);for(n=l&(1<<-a)-1,l>>=-a,a+=e;a>0;n=256*n+t[s],s--,a-=8);if(0===l)l=1-u;else{if(l===c)return n?NaN:f?-1/0:1/0;n+=i(2,e),l-=u}return(f?-1:1)*n*i(2,l-e)}}},8361:function(t,e,n){var r=n(7854),o=n(1702),i=n(7293),c=n(4326),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},9587:function(t,e,n){var r=n(614),o=n(111),i=n(7674);t.exports=function(t,e,n){var c,u;return i&&r(c=e.constructor)&&c!==n&&o(u=c.prototype)&&u!==n.prototype&&i(t,u),t}},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},2423:function(t,e,n){var r=n(2109),o=n(1702),i=n(3501),c=n(111),u=n(2597),a=n(3070).f,s=n(8006),f=n(1156),l=n(2050),y=n(9711),p=n(6677),h=!1,d=y("meta"),b=0,v=function(t){a(t,d,{value:{objectID:"O"+b++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},h=!0;var t=s.f,e=o([].splice),n={};n[d]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===d){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,d)){if(!l(t))return"F";if(!e)return"E";v(t)}return t[d].objectID},getWeakData:function(t,e){if(!u(t,d)){if(!l(t))return!0;if(!e)return!1;v(t)}return t[d].weakData},onFreeze:function(t){return p&&h&&l(t)&&!u(t,d)&&v(t),t}};i[d]=!0},9909:function(t,e,n){var r,o,i,c=n(8536),u=n(7854),a=n(1702),s=n(111),f=n(8880),l=n(2597),y=n(5465),p=n(6200),h=n(3501),d="Object already initialized",b=u.TypeError,v=u.WeakMap;if(c||y.state){var m=y.state||(y.state=new v),g=a(m.get),w=a(m.has),O=a(m.set);r=function(t,e){if(w(m,t))throw new b(d);return e.facade=t,O(m,t,e),e},o=function(t){return g(m,t)||{}},i=function(t){return w(m,t)}}else{var S=p("state");h[S]=!0,r=function(t,e){if(l(t,S))throw new b(d);return e.facade=t,f(t,S,e),e},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw b("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),o=n(7497),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),c=n(648),u=n(5005),a=n(2788),s=function(){},f=[],l=u("Reflect","construct"),y=/^\s*(?:class|function)\b/,p=r(y.exec),h=!y.exec(s),d=function(t){if(!i(t))return!1;try{return l(s,f,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!p(y,a(t))}:d},5032:function(t,e,n){var r=n(2597);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,c=function(t,e){var n=a[u(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},5988:function(t,e,n){var r=n(111),o=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&o(t)===t}},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),o=n(4326),i=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},2190:function(t,e,n){var r=n(7854),o=n(5005),i=n(614),c=n(7976),u=n(3307),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&c(e.prototype,a(t))}},408:function(t,e,n){var r=n(7854),o=n(9974),i=n(6916),c=n(9670),u=n(6330),a=n(7659),s=n(6244),f=n(7976),l=n(8554),y=n(1246),p=n(9212),h=r.TypeError,d=function(t,e){this.stopped=t,this.result=e},b=d.prototype;t.exports=function(t,e,n){var r,v,m,g,w,O,S,E=n&&n.that,_=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),R=o(e,E),j=function(t){return r&&p(r,"normal",t),new d(!0,t)},P=function(t){return _?(c(t),T?R(t[0],t[1],j):R(t[0],t[1])):T?R(t,j):R(t)};if(k)r=t;else{if(!(v=y(t)))throw h(u(t)+" is not iterable");if(a(v)){for(m=0,g=s(t);g>m;m++)if((w=P(t[m]))&&f(b,w))return w;return new d(!1)}r=l(t,v)}for(O=r.next;!(S=i(O,r)).done;){try{w=P(S.value)}catch(t){p(r,"throw",t)}if("object"==typeof w&&w&&f(b,w))return w}return new d(!1)}},9212:function(t,e,n){var r=n(6916),o=n(9670),i=n(8173);t.exports=function(t,e,n){var c,u;o(t);try{if(!(c=i(t,"return"))){if("throw"===e)throw n;return n}c=r(c,t)}catch(t){u=!0,c=t}if("throw"===e)throw n;if(u)throw c;return o(c),n}},3383:function(t,e,n){"use strict";var r,o,i,c=n(7293),u=n(614),a=n(30),s=n(9518),f=n(1320),l=n(5112),y=n(1913),p=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):h=!0),null==r||c((function(){var t={};return r[p].call(t)!==t}))?r={}:y&&(r=a(r)),u(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},5948:function(t,e,n){var r,o,i,c,u,a,s,f,l=n(7854),y=n(9974),p=n(1236).f,h=n(261).set,d=n(6833),b=n(1528),v=n(1036),m=n(5268),g=l.MutationObserver||l.WebKitMutationObserver,w=l.document,O=l.process,S=l.Promise,E=p(l,"queueMicrotask"),_=E&&E.value;_||(r=function(){var t,e;for(m&&(t=O.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?c():i=void 0,t}}i=void 0,t&&t.enter()},d||m||v||!g||!w?!b&&S&&S.resolve?((s=S.resolve(void 0)).constructor=S,f=y(s.then,s),c=function(){f(r)}):m?c=function(){O.nextTick(r)}:(h=y(h,l),c=function(){h(r)}):(u=!0,a=w.createTextNode(""),new g(r).observe(a,{characterData:!0}),c=function(){a.data=u=!u})),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,c()),i=e}},3366:function(t,e,n){var r=n(7854);t.exports=r.Promise},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(614),i=n(2788),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},8523:function(t,e,n){"use strict";var r=n(9662),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},1574:function(t,e,n){"use strict";var r=n(9781),o=n(1702),i=n(6916),c=n(7293),u=n(1956),a=n(5181),s=n(5296),f=n(7908),l=n(8361),y=Object.assign,p=Object.defineProperty,h=o([].concat);t.exports=!y||c((function(){if(r&&1!==y({b:1},y(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=y({},t)[n]||u(y({},e)).join("")!=o}))?function(t,e){for(var n=f(t),o=arguments.length,c=1,y=a.f,p=s.f;o>c;)for(var d,b=l(arguments[c++]),v=y?h(u(b),y(b)):u(b),m=v.length,g=0;m>g;)d=v[g++],r&&!i(p,b,d)||(n[d]=b[d]);return n}:y},30:function(t,e,n){var r,o=n(9670),i=n(6048),c=n(748),u=n(3501),a=n(490),s=n(317),f=n(6200),l=f("IE_PROTO"),y=function(){},p=function(t){return"<script>"+t+"</"+"script>"},h=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&r?h(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):h(r);for(var n=c.length;n--;)delete d.prototype[c[n]];return d()};u[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(y.prototype=o(t),n=new y,y.prototype=null,n[l]=t):n=d(),void 0===e?n:i(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3070),i=n(9670),c=n(5656),u=n(1956);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),a=u(e),s=a.length,f=0;s>f;)o.f(t,n=a[f++],r[n]);return t}},3070:function(t,e,n){var r=n(7854),o=n(9781),i=n(4664),c=n(9670),u=n(4948),a=r.TypeError,s=Object.defineProperty;e.f=o?s:function(t,e,n){if(c(t),e=u(e),c(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),c=n(9114),u=n(5656),a=n(4948),s=n(2597),f=n(4664),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return c(!o(i.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),o=n(5656),i=n(8006).f,c=n(206),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return c(u)}}(t):i(o(t))}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(7854),o=n(2597),i=n(614),c=n(7908),u=n(6200),a=n(8544),s=u("IE_PROTO"),f=r.Object,l=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=c(t);if(o(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof f?l:null}},2050:function(t,e,n){var r=n(7293),o=n(111),i=n(4326),c=n(7556),u=Object.isExtensible,a=r((function(){u(1)}));t.exports=a||c?function(t){return!!o(t)&&((!c||"ArrayBuffer"!=i(t))&&(!u||u(t)))}:u},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),c=n(1318).indexOf,u=n(3501),a=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,f=[];for(n in r)!o(u,n)&&o(r,n)&&a(f,n);for(;e.length>s;)o(r,n=e[s++])&&(~c(f,n)||a(f,n));return f}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(7854),o=n(6916),i=n(614),c=n(111),u=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!c(r=o(n,t)))return r;if(i(n=t.valueOf)&&!c(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!c(r=o(n,t)))return r;throw u("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),c=n(5181),u=n(9670),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=c.f;return n?a(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,e,n){var r=n(9670),o=n(111),i=n(8523);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},2248:function(t,e,n){var r=n(1320);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},1320:function(t,e,n){var r=n(7854),o=n(614),i=n(2597),c=n(8880),u=n(3505),a=n(2788),s=n(9909),f=n(6530).CONFIGURABLE,l=s.get,y=s.enforce,p=String(String).split("String");(t.exports=function(t,e,n,a){var s,l=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet,b=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==b)&&c(n,"name",b),(s=y(n)).source||(s.source=p.join("string"==typeof b?b:""))),t!==r?(l?!d&&t[e]&&(h=!0):delete t[e],h?t[e]=n:c(t,e,n)):h?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},7651:function(t,e,n){var r=n(7854),o=n(6916),i=n(9670),c=n(614),u=n(4326),a=n(2261),s=r.TypeError;t.exports=function(t,e){var n=t.exec;if(c(n)){var r=o(n,t,e);return null!==r&&i(r),r}if("RegExp"===u(t))return o(a,t,e);throw s("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r,o,i=n(6916),c=n(1702),u=n(1340),a=n(7066),s=n(2999),f=n(2309),l=n(30),y=n(9909).get,p=n(9441),h=n(7168),d=f("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,v=b,m=c("".charAt),g=c("".indexOf),w=c("".replace),O=c("".slice),S=(o=/b*/g,i(b,r=/a/,"a"),i(b,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=s.UNSUPPORTED_Y||s.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(S||_||E||p||h)&&(v=function(t){var e,n,r,o,c,s,f,p=this,h=y(p),k=u(t),T=h.raw;if(T)return T.lastIndex=p.lastIndex,e=i(v,T,k),p.lastIndex=T.lastIndex,e;var R=h.groups,j=E&&p.sticky,P=i(a,p),x=p.source,U=0,A=k;if(j&&(P=w(P,"y",""),-1===g(P,"g")&&(P+="g"),A=O(k,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(k,p.lastIndex-1))&&(x="(?: "+x+")",A=" "+A,U++),n=new RegExp("^(?:"+x+")",P)),_&&(n=new RegExp("^"+x+"$(?!\\s)",P)),S&&(r=p.lastIndex),o=i(b,j?n:p,A),j?o?(o.input=O(o.input,U),o[0]=O(o[0],U),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),_&&o&&o.length>1&&i(d,o[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(o[c]=void 0)})),o&&R)for(o.groups=s=l(null),c=0;c<R.length;c++)s[(f=R[c])[0]]=o[f[1]];return o}),t.exports=v},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,n){var r=n(7293),o=n(7854).RegExp;e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:function(t,e,n){var r=n(7293),o=n(7854).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),o=n(7854).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),c=n(9781),u=i("species");t.exports=function(t){var e=r(t),n=o.f;c&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(t,e,n){var r=n(9670),o=n(9483),i=n(5112)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||null==(n=r(c)[i])?e:o(n)}},8710:function(t,e,n){var r=n(1702),o=n(9303),i=n(1340),c=n(4488),u=r("".charAt),a=r("".charCodeAt),s=r("".slice),f=function(t){return function(e,n){var r,f,l=i(c(e)),y=o(n),p=l.length;return y<0||y>=p?t?"":void 0:(r=a(l,y))<55296||r>56319||y+1===p||(f=a(l,y+1))<56320||f>57343?t?u(l,y):r:t?s(l,y,y+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},3111:function(t,e,n){var r=n(1702),o=n(4488),i=n(1340),c=n(1361),u=r("".replace),a="["+c+"]",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=u(n,s,"")),2&t&&(n=u(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},261:function(t,e,n){var r,o,i,c,u=n(7854),a=n(2104),s=n(9974),f=n(614),l=n(2597),y=n(7293),p=n(490),h=n(206),d=n(317),b=n(6833),v=n(5268),m=u.setImmediate,g=u.clearImmediate,w=u.process,O=u.Dispatch,S=u.Function,E=u.MessageChannel,_=u.String,k=0,T={},R="onreadystatechange";try{r=u.location}catch(t){}var j=function(t){if(l(T,t)){var e=T[t];delete T[t],e()}},P=function(t){return function(){j(t)}},x=function(t){j(t.data)},U=function(t){u.postMessage(_(t),r.protocol+"//"+r.host)};m&&g||(m=function(t){var e=h(arguments,1);return T[++k]=function(){a(f(t)?t:S(t),void 0,e)},o(k),k},g=function(t){delete T[t]},v?o=function(t){w.nextTick(P(t))}:O&&O.now?o=function(t){O.now(P(t))}:E&&!b?(c=(i=new E).port2,i.port1.onmessage=x,o=s(c.postMessage,c)):u.addEventListener&&f(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!y(U)?(o=U,u.addEventListener("message",x,!1)):o=R in d("script")?function(t){p.appendChild(d("script")).onreadystatechange=function(){p.removeChild(this),j(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:m,clear:g}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},7067:function(t,e,n){var r=n(7854),o=n(9303),i=n(7466),c=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=o(t),n=i(e);if(e!==n)throw c("Wrong length or index");return n}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),o=n(4488),i=r.Object;t.exports=function(t){return i(o(t))}},4590:function(t,e,n){var r=n(7854),o=n(3002),i=r.RangeError;t.exports=function(t,e){var n=o(t);if(n%e)throw i("Wrong offset");return n}},3002:function(t,e,n){var r=n(7854),o=n(9303),i=r.RangeError;t.exports=function(t){var e=o(t);if(e<0)throw i("The argument can't be less than 0");return e}},7593:function(t,e,n){var r=n(7854),o=n(6916),i=n(111),c=n(2190),u=n(8173),a=n(2140),s=n(5112),f=r.TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||c(t))return t;var n,r=u(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||c(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(7854),o=n(648),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:function(t,e,n){var r=n(7854).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9843:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(6916),c=n(9781),u=n(3832),a=n(260),s=n(3331),f=n(5787),l=n(9114),y=n(8880),p=n(5988),h=n(7466),d=n(7067),b=n(4590),v=n(4948),m=n(2597),g=n(648),w=n(111),O=n(2190),S=n(30),E=n(7976),_=n(7674),k=n(8006).f,T=n(7321),R=n(2092).forEach,j=n(6340),P=n(3070),x=n(1236),U=n(9909),A=n(9587),C=U.get,D=U.set,I=P.f,q=x.f,B=Math.round,M=o.RangeError,N=s.ArrayBuffer,L=N.prototype,z=s.DataView,F=a.NATIVE_ARRAY_BUFFER_VIEWS,H=a.TYPED_ARRAY_CONSTRUCTOR,Z=a.TYPED_ARRAY_TAG,V=a.TypedArray,W=a.TypedArrayPrototype,G=a.aTypedArrayConstructor,Y=a.isTypedArray,K="BYTES_PER_ELEMENT",Q="Wrong length",J=function(t,e){G(t);for(var n=0,r=e.length,o=new t(r);r>n;)o[n]=e[n++];return o},X=function(t,e){I(t,e,{get:function(){return C(this)[e]}})},$=function(t){var e;return E(L,t)||"ArrayBuffer"==(e=g(t))||"SharedArrayBuffer"==e},tt=function(t,e){return Y(t)&&!O(e)&&e in t&&p(+e)&&e>=0},et=function(t,e){return e=v(e),tt(t,e)?l(2,t[e]):q(t,e)},nt=function(t,e,n){return e=v(e),!(tt(t,e)&&w(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?I(t,e,n):(t[e]=n.value,t)};c?(F||(x.f=et,P.f=nt,X(W,"buffer"),X(W,"byteOffset"),X(W,"byteLength"),X(W,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var c=t.match(/\d+$/)[0]/8,a=t+(n?"Clamped":"")+"Array",s="get"+t,l="set"+t,p=o[a],v=p,m=v&&v.prototype,g={},O=function(t,e){I(t,e,{get:function(){return function(t,e){var n=C(t);return n.view[s](e*c+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=C(t);n&&(r=(r=B(r))<0?0:r>255?255:255&r),o.view[l](e*c+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};F?u&&(v=e((function(t,e,n,r){return f(t,m),A(w(e)?$(e)?void 0!==r?new p(e,b(n,c),r):void 0!==n?new p(e,b(n,c)):new p(e):Y(e)?J(v,e):i(T,v,e):new p(d(e)),t,v)})),_&&_(v,V),R(k(p),(function(t){t in v||y(v,t,p[t])})),v.prototype=m):(v=e((function(t,e,n,r){f(t,m);var o,u,a,s=0,l=0;if(w(e)){if(!$(e))return Y(e)?J(v,e):i(T,v,e);o=e,l=b(n,c);var y=e.byteLength;if(void 0===r){if(y%c)throw M(Q);if((u=y-l)<0)throw M(Q)}else if((u=h(r)*c)+l>y)throw M(Q);a=u/c}else a=d(e),o=new N(u=a*c);for(D(t,{buffer:o,byteOffset:l,byteLength:u,length:a,view:new z(o)});s<a;)O(t,s++)})),_&&_(v,V),m=v.prototype=S(W)),m.constructor!==v&&y(m,"constructor",v),y(m,H,v),Z&&y(m,Z,a),g[a]=v,r({global:!0,forced:v!=p,sham:!F},g),K in v||y(v,K,c),K in m||y(m,K,c),j(a)}):t.exports=function(){}},3832:function(t,e,n){var r=n(7854),o=n(7293),i=n(7072),c=n(260).NATIVE_ARRAY_BUFFER_VIEWS,u=r.ArrayBuffer,a=r.Int8Array;t.exports=!c||!o((function(){a(1)}))||!o((function(){new a(-1)}))||!i((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||o((function(){return 1!==new a(new u(2),1,void 0).length}))},3074:function(t,e,n){var r=n(7745),o=n(6304);t.exports=function(t,e){return r(o(t),e)}},7321:function(t,e,n){var r=n(9974),o=n(6916),i=n(9483),c=n(7908),u=n(6244),a=n(8554),s=n(1246),f=n(7659),l=n(260).aTypedArrayConstructor;t.exports=function(t){var e,n,y,p,h,d,b=i(this),v=c(t),m=arguments.length,g=m>1?arguments[1]:void 0,w=void 0!==g,O=s(v);if(O&&!f(O))for(d=(h=a(v,O)).next,v=[];!(p=o(d,h)).done;)v.push(p.value);for(w&&m>2&&(g=r(g,arguments[2])),n=u(v),y=new(l(b))(n),e=0;n>e;e++)y[e]=w?g(v[e],e):v[e];return y}},6304:function(t,e,n){var r=n(260),o=n(6707),i=r.TYPED_ARRAY_CONSTRUCTOR,c=r.aTypedArrayConstructor;t.exports=function(t){return c(o(t,t[i]))}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),c=n(9711),u=n(133),a=n(3307),s=o("wks"),f=r.Symbol,l=f&&f.for,y=a?f:f&&f.withoutSetter||c;t.exports=function(t){if(!i(s,t)||!u&&"string"!=typeof s[t]){var e="Symbol."+t;u&&i(f,t)?s[t]=f[t]:s[t]=a&&l?l(e):y(e)}return s[t]}},1361:function(t){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},9575:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(7293),c=n(3331),u=n(9670),a=n(1400),s=n(7466),f=n(6707),l=c.ArrayBuffer,y=c.DataView,p=y.prototype,h=o(l.prototype.slice),d=o(p.getUint8),b=o(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(h&&void 0===e)return h(u(this),t);for(var n=u(this).byteLength,r=a(t,n),o=a(void 0===e?n:e,n),i=new(f(this,l))(s(o-r)),c=new y(this),p=new y(i),v=0;r<o;)b(p,v++,d(c,r++));return i}})},2222:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(7293),c=n(3157),u=n(111),a=n(7908),s=n(6244),f=n(6135),l=n(5417),y=n(1194),p=n(5112),h=n(7392),d=p("isConcatSpreadable"),b=9007199254740991,v="Maximum allowed index exceeded",m=o.TypeError,g=h>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),w=y("concat"),O=function(t){if(!u(t))return!1;var e=t[d];return void 0!==e?!!e:c(t)};r({target:"Array",proto:!0,forced:!g||!w},{concat:function(t){var e,n,r,o,i,c=a(this),u=l(c,0),y=0;for(e=-1,r=arguments.length;e<r;e++)if(O(i=-1===e?c:arguments[e])){if(y+(o=s(i))>b)throw m(v);for(n=0;n<o;n++,y++)n in i&&f(u,y,i[n])}else{if(y>=b)throw m(v);f(u,y++,i)}return u.length=y,u}})},1038:function(t,e,n){var r=n(2109),o=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:o})},9753:function(t,e,n){n(2109)({target:"Array",stat:!0},{isArray:n(3157)})},6992:function(t,e,n){"use strict";var r=n(5656),o=n(1223),i=n(7497),c=n(9909),u=n(654),a="Array Iterator",s=c.set,f=c.getterFor(a);t.exports=u(Array,"Array",(function(t,e){s(this,{type:a,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},9600:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(8361),c=n(5656),u=n(9341),a=o([].join),s=i!=Object,f=u("join",",");r({target:"Array",proto:!0,forced:s||!f},{join:function(t){return a(c(this),void 0===t?",":t)}})},7042:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(3157),c=n(4411),u=n(111),a=n(1400),s=n(6244),f=n(5656),l=n(6135),y=n(5112),p=n(1194),h=n(206),d=p("slice"),b=y("species"),v=o.Array,m=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,o,y=f(this),p=s(y),d=a(t,p),g=a(void 0===e?p:e,p);if(i(y)&&(n=y.constructor,(c(n)&&(n===v||i(n.prototype))||u(n)&&null===(n=n[b]))&&(n=void 0),n===v||void 0===n))return h(y,d,g);for(r=new(void 0===n?v:n)(m(g-d,0)),o=0;d<g;d++,o++)d in y&&l(r,o,y[d]);return r.length=o,r}})},2707:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(9662),c=n(7908),u=n(6244),a=n(1340),s=n(7293),f=n(4362),l=n(9341),y=n(8886),p=n(256),h=n(7392),d=n(8008),b=[],v=o(b.sort),m=o(b.push),g=s((function(){b.sort(void 0)})),w=s((function(){b.sort(null)})),O=l("sort"),S=!s((function(){if(h)return h<70;if(!(y&&y>3)){if(p)return!0;if(d)return d<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)b.push({k:e+r,v:n})}for(b.sort((function(t,e){return e.v-t.v})),r=0;r<b.length;r++)e=b[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:g||!w||!O||!S},{sort:function(t){void 0!==t&&i(t);var e=c(this);if(S)return void 0===t?v(e):v(e,t);var n,r,o=[],s=u(e);for(r=0;r<s;r++)r in e&&m(o,e[r]);for(f(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:a(e)>a(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<s;)delete e[r++];return e}})},561:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1400),c=n(9303),u=n(6244),a=n(7908),s=n(5417),f=n(6135),l=n(1194)("splice"),y=o.TypeError,p=Math.max,h=Math.min,d=9007199254740991,b="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,o,l,v,m,g=a(this),w=u(g),O=i(t,w),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=w-O):(n=S-2,r=h(p(c(e),0),w-O)),w+n-r>d)throw y(b);for(o=s(g,r),l=0;l<r;l++)(v=O+l)in g&&f(o,l,g[v]);if(o.length=r,n<r){for(l=O;l<w-r;l++)m=l+n,(v=l+r)in g?g[m]=g[v]:delete g[m];for(l=w;l>w-r+n;l--)delete g[l-1]}else if(n>r)for(l=w-r;l>O;l--)m=l+n-1,(v=l+r-1)in g?g[m]=g[v]:delete g[m];for(l=0;l<n;l++)g[l+O]=arguments[l+2];return g.length=w-r+n,o}})},3710:function(t,e,n){var r=n(1702),o=n(1320),i=Date.prototype,c="Invalid Date",u="toString",a=r(i.toString),s=r(i.getTime);String(new Date(NaN))!=c&&o(i,u,(function(){var t=s(this);return t==t?a(this):c}))},4812:function(t,e,n){n(2109)({target:"Function",proto:!0},{bind:n(7065)})},8309:function(t,e,n){var r=n(9781),o=n(6530).EXISTS,i=n(1702),c=n(3070).f,u=Function.prototype,a=i(u.toString),s=/^\s*function ([^ (]*)/,f=i(s.exec);r&&!o&&c(u,"name",{configurable:!0,get:function(){try{return f(s,a(this))[1]}catch(t){return""}}})},9653:function(t,e,n){"use strict";var r=n(9781),o=n(7854),i=n(1702),c=n(4705),u=n(1320),a=n(2597),s=n(9587),f=n(7976),l=n(2190),y=n(7593),p=n(7293),h=n(8006).f,d=n(1236).f,b=n(3070).f,v=n(863),m=n(3111).trim,g="Number",w=o.Number,O=w.prototype,S=o.TypeError,E=i("".slice),_=i("".charCodeAt),k=function(t){var e=y(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,n,r,o,i,c,u,a,s=y(t,"number");if(l(s))throw S("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=m(s),43===(e=_(s,0))||45===e){if(88===(n=_(s,2))||120===n)return NaN}else if(48===e){switch(_(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(c=(i=E(s,2)).length,u=0;u<c;u++)if((a=_(i,u))<48||a>o)return NaN;return parseInt(i,r)}return+s};if(c(g,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var R,j=function(t){var e=arguments.length<1?0:w(k(t)),n=this;return f(O,n)&&p((function(){v(n)}))?s(Object(e),n,j):e},P=r?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),x=0;P.length>x;x++)a(w,R=P[x])&&!a(j,R)&&b(j,R,d(w,R));j.prototype=O,O.constructor=j,u(o,g,j)}},9601:function(t,e,n){var r=n(2109),o=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},8011:function(t,e,n){n(2109)({target:"Object",stat:!0,sham:!n(9781)},{create:n(30)})},9070:function(t,e,n){var r=n(2109),o=n(9781);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(3070).f})},3371:function(t,e,n){var r=n(2109),o=n(6677),i=n(7293),c=n(111),u=n(2423).onFreeze,a=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!o},{freeze:function(t){return a&&c(t)?a(u(t)):t}})},5003:function(t,e,n){var r=n(2109),o=n(7293),i=n(5656),c=n(1236).f,u=n(9781),a=o((function(){c(1)}));r({target:"Object",stat:!0,forced:!u||a,sham:!u},{getOwnPropertyDescriptor:function(t,e){return c(i(t),e)}})},489:function(t,e,n){var r=n(2109),o=n(7293),i=n(7908),c=n(9518),u=n(8544);r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!u},{getPrototypeOf:function(t){return c(i(t))}})},7941:function(t,e,n){var r=n(2109),o=n(7908),i=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},8304:function(t,e,n){n(2109)({target:"Object",stat:!0},{setPrototypeOf:n(7674)})},1539:function(t,e,n){var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},8674:function(t,e,n){"use strict";var r,o,i,c,u=n(2109),a=n(1913),s=n(7854),f=n(5005),l=n(6916),y=n(3366),p=n(1320),h=n(2248),d=n(7674),b=n(8003),v=n(6340),m=n(9662),g=n(614),w=n(111),O=n(5787),S=n(2788),E=n(408),_=n(7072),k=n(6707),T=n(261).set,R=n(5948),j=n(9478),P=n(842),x=n(8523),U=n(2534),A=n(9909),C=n(4705),D=n(5112),I=n(7871),q=n(5268),B=n(7392),M=D("species"),N="Promise",L=A.get,z=A.set,F=A.getterFor(N),H=y&&y.prototype,Z=y,V=H,W=s.TypeError,G=s.document,Y=s.process,K=x.f,Q=K,J=!!(G&&G.createEvent&&s.dispatchEvent),X=g(s.PromiseRejectionEvent),$="unhandledrejection",tt=!1,et=C(N,(function(){var t=S(Z),e=t!==String(Z);if(!e&&66===B)return!0;if(a&&!V.finally)return!0;if(B>=51&&/native code/.test(t))return!1;var n=new Z((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(tt=n.then((function(){}))instanceof r)||!e&&I&&!X})),nt=et||!_((function(t){Z.all(t).catch((function(){}))})),rt=function(t){var e;return!(!w(t)||!g(e=t.then))&&e},ot=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;R((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,u,a,s=n[i++],f=o?s.ok:s.fail,y=s.resolve,p=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&at(t),t.rejection=1),!0===f?c=r:(h&&h.enter(),c=f(r),h&&(h.exit(),a=!0)),c===s.promise?p(W("Promise-chain cycle")):(u=rt(c))?l(u,c,y,p):y(c)):p(r)}catch(t){h&&!a&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ct(t)}))}},it=function(t,e,n){var r,o;J?((r=G.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!X&&(o=s["on"+t])?o(r):t===$&&P("Unhandled promise rejection",n)},ct=function(t){l(T,s,(function(){var e,n=t.facade,r=t.value;if(ut(t)&&(e=U((function(){q?Y.emit("unhandledRejection",r,n):it($,n,r)})),t.rejection=q||ut(t)?2:1,e.error))throw e.value}))},ut=function(t){return 1!==t.rejection&&!t.parent},at=function(t){l(T,s,(function(){var e=t.facade;q?Y.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ft=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ot(t,!0))},lt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=rt(e);r?R((function(){var n={done:!1};try{l(r,e,st(lt,n,t),st(ft,n,t))}catch(e){ft(n,e,t)}})):(t.value=e,t.state=1,ot(t,!1))}catch(e){ft({done:!1},e,t)}}};if(et&&(V=(Z=function(t){O(this,V),m(t),l(r,this);var e=L(this);try{t(st(lt,e),st(ft,e))}catch(t){ft(e,t)}}).prototype,(r=function(t){z(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(V,{then:function(t,e){var n=F(this),r=n.reactions,o=K(k(this,Z));return o.ok=!g(t)||t,o.fail=g(e)&&e,o.domain=q?Y.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ot(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=L(t);this.promise=t,this.resolve=st(lt,e),this.reject=st(ft,e)},x.f=K=function(t){return t===Z||t===i?new o(t):Q(t)},!a&&g(y)&&H!==Object.prototype)){c=H.then,tt||(p(H,"then",(function(t,e){var n=this;return new Z((function(t,e){l(c,n,t,e)})).then(t,e)}),{unsafe:!0}),p(H,"catch",V.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}d&&d(H,V)}u({global:!0,wrap:!0,forced:et},{Promise:Z}),b(Z,N,!1,!0),v(N),i=f(N),u({target:N,stat:!0,forced:et},{reject:function(t){var e=K(this);return l(e.reject,void 0,t),e.promise}}),u({target:N,stat:!0,forced:a||et},{resolve:function(t){return j(a&&this===i?Z:this,t)}}),u({target:N,stat:!0,forced:nt},{all:function(t){var e=this,n=K(e),r=n.resolve,o=n.reject,i=U((function(){var n=m(e.resolve),i=[],c=0,u=1;E(t,(function(t){var a=c++,s=!1;u++,l(n,e,t).then((function(t){s||(s=!0,i[a]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=K(e),r=n.reject,o=U((function(){var o=m(e.resolve);E(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},2419:function(t,e,n){var r=n(2109),o=n(5005),i=n(2104),c=n(7065),u=n(9483),a=n(9670),s=n(111),f=n(30),l=n(7293),y=o("Reflect","construct"),p=Object.prototype,h=[].push,d=l((function(){function t(){}return!(y((function(){}),[],t)instanceof t)})),b=!l((function(){y((function(){}))})),v=d||b;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){u(t),a(e);var n=arguments.length<3?t:u(arguments[2]);if(b&&!d)return y(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(h,r,e),new(i(c,t,r))}var o=n.prototype,l=f(s(o)?o:p),v=i(t,l,e);return s(v)?v:l}})},4819:function(t,e,n){var r=n(2109),o=n(6916),i=n(111),c=n(9670),u=n(5032),a=n(1236),s=n(9518);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,f,l=arguments.length<3?e:arguments[2];return c(e)===l?e[n]:(r=a.f(e,n))?u(r)?r.value:void 0===r.get?void 0:o(r.get,l):i(f=s(e))?t(f,n,l):void 0}})},4916:function(t,e,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2087:function(t,e,n){var r=n(9781),o=n(3070),i=n(7066),c=n(7293),u=RegExp.prototype;r&&c((function(){return"sy"!==Object.getOwnPropertyDescriptor(u,"flags").get.call({dotAll:!0,sticky:!0})}))&&o.f(u,"flags",{configurable:!0,get:i})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),c=n(654),u="String Iterator",a=i.set,s=i.getterFor(u);c(String,"String",(function(t){a(this,{type:u,string:o(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},3123:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),c=n(7007),u=n(7850),a=n(9670),s=n(4488),f=n(6707),l=n(1530),y=n(7466),p=n(1340),h=n(8173),d=n(206),b=n(7651),v=n(2261),m=n(2999),g=n(7293),w=m.UNSUPPORTED_Y,O=4294967295,S=Math.min,E=[].push,_=i(/./.exec),k=i(E),T=i("".slice),R=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));c("split",(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=p(s(this)),c=void 0===n?O:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!u(t))return o(e,i,t,c);for(var a,f,l,y=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),b=0,m=new RegExp(t.source,h+"g");(a=o(v,m,i))&&!((f=m.lastIndex)>b&&(k(y,T(i,b,a.index)),a.length>1&&a.index<i.length&&r(E,y,d(a,1)),l=a[0].length,b=f,y.length>=c));)m.lastIndex===a.index&&m.lastIndex++;return b===i.length?!l&&_(m,"")||k(y,""):k(y,T(i,b)),y.length>c?d(y,0,c):y}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:o(e,this,t,n)}:e,[function(e,n){var r=s(this),c=null==e?void 0:h(e,t);return c?o(c,e,r,n):o(i,p(r),e,n)},function(t,r){var o=a(this),c=p(t),u=n(i,o,c,r,i!==e);if(u.done)return u.value;var s=f(o,RegExp),h=o.unicode,d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(w?"g":"y"),v=new s(w?"^(?:"+o.source+")":o,d),m=void 0===r?O:r>>>0;if(0===m)return[];if(0===c.length)return null===b(v,c)?[c]:[];for(var g=0,E=0,_=[];E<c.length;){v.lastIndex=w?0:E;var R,j=b(v,w?T(c,E):c);if(null===j||(R=S(y(v.lastIndex+(w?E:0)),c.length))===g)E=l(c,E,h);else{if(k(_,T(c,g,E)),_.length===m)return _;for(var P=1;P<=j.length-1;P++)if(k(_,j[P]),_.length===m)return _;E=g=R}}return k(_,T(c,g)),_}]}),!R,w)},1817:function(t,e,n){"use strict";var r=n(2109),o=n(9781),i=n(7854),c=n(1702),u=n(2597),a=n(614),s=n(7976),f=n(1340),l=n(3070).f,y=n(9920),p=i.Symbol,h=p&&p.prototype;if(o&&a(p)&&(!("description"in h)||void 0!==p().description)){var d={},b=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=s(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(d[e]=!0),e};y(b,p),b.prototype=h,h.constructor=b;var v="Symbol(test)"==String(p("test")),m=c(h.toString),g=c(h.valueOf),w=/^Symbol\((.*)\)[^)]+$/,O=c("".replace),S=c("".slice);l(h,"description",{configurable:!0,get:function(){var t=g(this),e=m(t);if(u(d,t))return"";var n=v?S(e,7,-1):O(e,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:b})}},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(5005),c=n(2104),u=n(6916),a=n(1702),s=n(1913),f=n(9781),l=n(133),y=n(7293),p=n(2597),h=n(3157),d=n(614),b=n(111),v=n(7976),m=n(2190),g=n(9670),w=n(7908),O=n(5656),S=n(4948),E=n(1340),_=n(9114),k=n(30),T=n(1956),R=n(8006),j=n(1156),P=n(5181),x=n(1236),U=n(3070),A=n(5296),C=n(206),D=n(1320),I=n(2309),q=n(6200),B=n(3501),M=n(9711),N=n(5112),L=n(6061),z=n(7235),F=n(8003),H=n(9909),Z=n(2092).forEach,V=q("hidden"),W="Symbol",G=N("toPrimitive"),Y=H.set,K=H.getterFor(W),Q=Object.prototype,J=o.Symbol,X=J&&J.prototype,$=o.TypeError,tt=o.QObject,et=i("JSON","stringify"),nt=x.f,rt=U.f,ot=j.f,it=A.f,ct=a([].push),ut=I("symbols"),at=I("op-symbols"),st=I("string-to-symbol-registry"),ft=I("symbol-to-string-registry"),lt=I("wks"),yt=!tt||!tt.prototype||!tt.prototype.findChild,pt=f&&y((function(){return 7!=k(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=nt(Q,e);r&&delete Q[e],rt(t,e,n),r&&t!==Q&&rt(Q,e,r)}:rt,ht=function(t,e){var n=ut[t]=k(X);return Y(n,{type:W,tag:t,description:e}),f||(n.description=e),n},dt=function(t,e,n){t===Q&&dt(at,e,n),g(t);var r=S(e);return g(n),p(ut,r)?(n.enumerable?(p(t,V)&&t[V][r]&&(t[V][r]=!1),n=k(n,{enumerable:_(0,!1)})):(p(t,V)||rt(t,V,_(1,{})),t[V][r]=!0),pt(t,r,n)):rt(t,r,n)},bt=function(t,e){g(t);var n=O(e),r=T(n).concat(wt(n));return Z(r,(function(e){f&&!u(vt,n,e)||dt(t,e,n[e])})),t},vt=function(t){var e=S(t),n=u(it,this,e);return!(this===Q&&p(ut,e)&&!p(at,e))&&(!(n||!p(this,e)||!p(ut,e)||p(this,V)&&this[V][e])||n)},mt=function(t,e){var n=O(t),r=S(e);if(n!==Q||!p(ut,r)||p(at,r)){var o=nt(n,r);return!o||!p(ut,r)||p(n,V)&&n[V][r]||(o.enumerable=!0),o}},gt=function(t){var e=ot(O(t)),n=[];return Z(e,(function(t){p(ut,t)||p(B,t)||ct(n,t)})),n},wt=function(t){var e=t===Q,n=ot(e?at:O(t)),r=[];return Z(n,(function(t){!p(ut,t)||e&&!p(Q,t)||ct(r,ut[t])})),r};(l||(J=function(){if(v(X,this))throw $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,e=M(t),n=function(t){this===Q&&u(n,at,t),p(this,V)&&p(this[V],e)&&(this[V][e]=!1),pt(this,e,_(1,t))};return f&&yt&&pt(Q,e,{configurable:!0,set:n}),ht(e,t)},D(X=J.prototype,"toString",(function(){return K(this).tag})),D(J,"withoutSetter",(function(t){return ht(M(t),t)})),A.f=vt,U.f=dt,x.f=mt,R.f=j.f=gt,P.f=wt,L.f=function(t){return ht(N(t),t)},f&&(rt(X,"description",{configurable:!0,get:function(){return K(this).description}}),s||D(Q,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:J}),Z(T(lt),(function(t){z(t)})),r({target:W,stat:!0,forced:!l},{for:function(t){var e=E(t);if(p(st,e))return st[e];var n=J(e);return st[e]=n,ft[n]=e,n},keyFor:function(t){if(!m(t))throw $(t+" is not a symbol");if(p(ft,t))return ft[t]},useSetter:function(){yt=!0},useSimple:function(){yt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!f},{create:function(t,e){return void 0===e?k(t):bt(k(t),e)},defineProperty:dt,defineProperties:bt,getOwnPropertyDescriptor:mt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:gt,getOwnPropertySymbols:wt}),r({target:"Object",stat:!0,forced:y((function(){P.f(1)}))},{getOwnPropertySymbols:function(t){return P.f(w(t))}}),et)&&r({target:"JSON",stat:!0,forced:!l||y((function(){var t=J();return"[null]"!=et([t])||"{}"!=et({a:t})||"{}"!=et(Object(t))}))},{stringify:function(t,e,n){var r=C(arguments),o=e;if((b(e)||void 0!==t)&&!m(t))return h(e)||(e=function(t,e){if(d(o)&&(e=u(o,this,t,e)),!m(e))return e}),r[1]=e,c(et,null,r)}});if(!X[G]){var Ot=X.valueOf;D(X,G,(function(t){return u(Ot,this)}))}F(J,W),B[V]=!0},2990:function(t,e,n){"use strict";var r=n(1702),o=n(260),i=r(n(1048)),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(t,e){return i(c(this),t,e,arguments.length>2?arguments[2]:void 0)}))},8927:function(t,e,n){"use strict";var r=n(260),o=n(2092).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},3105:function(t,e,n){"use strict";var r=n(260),o=n(6916),i=n(1285),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){var e=arguments.length;return o(i,c(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},5035:function(t,e,n){"use strict";var r=n(260),o=n(2092).filter,i=n(3074),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=o(c(this),t,arguments.length>1?arguments[1]:void 0);return i(this,e)}))},7174:function(t,e,n){"use strict";var r=n(260),o=n(2092).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},4345:function(t,e,n){"use strict";var r=n(260),o=n(2092).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},2846:function(t,e,n){"use strict";var r=n(260),o=n(2092).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},4731:function(t,e,n){"use strict";var r=n(260),o=n(1318).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},7209:function(t,e,n){"use strict";var r=n(260),o=n(1318).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},6319:function(t,e,n){"use strict";var r=n(7854),o=n(1702),i=n(6530).PROPER,c=n(260),u=n(6992),a=n(5112)("iterator"),s=r.Uint8Array,f=o(u.values),l=o(u.keys),y=o(u.entries),p=c.aTypedArray,h=c.exportTypedArrayMethod,d=s&&s.prototype[a],b=!!d&&"values"===d.name,v=function(){return f(p(this))};h("entries",(function(){return y(p(this))})),h("keys",(function(){return l(p(this))})),h("values",v,i&&!b),h(a,v,i&&!b)},8867:function(t,e,n){"use strict";var r=n(260),o=n(1702),i=r.aTypedArray,c=r.exportTypedArrayMethod,u=o([].join);c("join",(function(t){return u(i(this),t)}))},7789:function(t,e,n){"use strict";var r=n(260),o=n(2104),i=n(6583),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return o(i,c(this),e>1?[t,arguments[1]]:[t])}))},3739:function(t,e,n){"use strict";var r=n(260),o=n(2092).map,i=n(6304),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return o(c(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(i(t))(e)}))}))},4483:function(t,e,n){"use strict";var r=n(260),o=n(3671).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return o(i(this),t,e,e>1?arguments[1]:void 0)}))},9368:function(t,e,n){"use strict";var r=n(260),o=n(3671).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return o(i(this),t,e,e>1?arguments[1]:void 0)}))},2056:function(t,e,n){"use strict";var r=n(260),o=r.aTypedArray,i=r.exportTypedArrayMethod,c=Math.floor;i("reverse",(function(){for(var t,e=this,n=o(e).length,r=c(n/2),i=0;i<r;)t=e[i],e[i++]=e[--n],e[n]=t;return e}))},3462:function(t,e,n){"use strict";var r=n(7854),o=n(260),i=n(6244),c=n(4590),u=n(7908),a=n(7293),s=r.RangeError,f=o.aTypedArray;(0,o.exportTypedArrayMethod)("set",(function(t){f(this);var e=c(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=u(t),o=i(r),a=0;if(o+e>n)throw s("Wrong length");for(;a<o;)this[e+a]=r[a++]}),a((function(){new Int8Array(1).set({})})))},678:function(t,e,n){"use strict";var r=n(260),o=n(6304),i=n(7293),c=n(206),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=c(u(this),t,e),r=o(this),i=0,a=n.length,s=new r(a);a>i;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},7462:function(t,e,n){"use strict";var r=n(260),o=n(2092).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},3824:function(t,e,n){"use strict";var r=n(7854),o=n(1702),i=n(7293),c=n(9662),u=n(4362),a=n(260),s=n(8886),f=n(256),l=n(7392),y=n(8008),p=r.Array,h=a.aTypedArray,d=a.exportTypedArrayMethod,b=r.Uint16Array,v=b&&o(b.prototype.sort),m=!(!v||i((function(){v(new b(2),null)}))&&i((function(){v(new b(2),{})}))),g=!!v&&!i((function(){if(l)return l<74;if(s)return s<67;if(f)return!0;if(y)return y<602;var t,e,n=new b(516),r=p(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(v(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));d("sort",(function(t){return void 0!==t&&c(t),g?v(this,t):u(h(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!g||m)},5021:function(t,e,n){"use strict";var r=n(260),o=n(7466),i=n(1400),c=n(6304),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=u(this),r=n.length,a=i(t,r);return new(c(n))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,o((void 0===e?r:i(e,r))-a))}))},2974:function(t,e,n){"use strict";var r=n(7854),o=n(2104),i=n(260),c=n(7293),u=n(206),a=r.Int8Array,s=i.aTypedArray,f=i.exportTypedArrayMethod,l=[].toLocaleString,y=!!a&&c((function(){l.call(new a(1))}));f("toLocaleString",(function(){return o(l,y?u(s(this)):s(this),u(arguments))}),c((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!c((function(){a.prototype.toLocaleString.call([1,2])})))},5016:function(t,e,n){"use strict";var r=n(260).exportTypedArrayMethod,o=n(7293),i=n(7854),c=n(1702),u=i.Uint8Array,a=u&&u.prototype||{},s=[].toString,f=c([].join);o((function(){s.call({})}))&&(s=function(){return f(this)});var l=a.toString!=s;r("toString",s,l)},9135:function(t,e,n){n(9843)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},2472:function(t,e,n){n(9843)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},4129:function(t,e,n){"use strict";var r,o=n(7854),i=n(1702),c=n(2248),u=n(2423),a=n(7710),s=n(9320),f=n(111),l=n(2050),y=n(9909).enforce,p=n(8536),h=!o.ActiveXObject&&"ActiveXObject"in o,d=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},b=a("WeakMap",d,s);if(p&&h){r=s.getConstructor(d,"WeakMap",!0),u.enable();var v=b.prototype,m=i(v.delete),g=i(v.has),w=i(v.get),O=i(v.set);c(v,{delete:function(t){if(f(t)&&!l(t)){var e=y(this);return e.frozen||(e.frozen=new r),m(this,t)||e.frozen.delete(t)}return m(this,t)},has:function(t){if(f(t)&&!l(t)){var e=y(this);return e.frozen||(e.frozen=new r),g(this,t)||e.frozen.has(t)}return g(this,t)},get:function(t){if(f(t)&&!l(t)){var e=y(this);return e.frozen||(e.frozen=new r),g(this,t)?w(this,t):e.frozen.get(t)}return w(this,t)},set:function(t,e){if(f(t)&&!l(t)){var n=y(this);n.frozen||(n.frozen=new r),g(this,t)?O(this,t,e):n.frozen.set(t,e)}else O(this,t,e);return this}})}},3948:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),c=n(6992),u=n(8880),a=n(5112),s=a("iterator"),f=a("toStringTag"),l=c.values,y=function(t,e){if(t){if(t[s]!==l)try{u(t,s,l)}catch(e){t[s]=l}if(t[f]||u(t,f,e),o[e])for(var n in c)if(t[n]!==c[n])try{u(t,n,c[n])}catch(e){t[n]=c[n]}}};for(var p in o)y(r[p]&&r[p].prototype,p);y(i,"DOMTokenList")},2564:function(t,e,n){var r=n(2109),o=n(7854),i=n(2104),c=n(614),u=n(8113),a=n(206),s=/MSIE .\./.test(u),f=o.Function,l=function(t){return function(e,n){var r=arguments.length>2,o=r?a(arguments,2):void 0;return t(r?function(){i(c(e)?e:f(e),this,o)}:e,n)}};r({global:!0,bind:!0,forced:s},{setTimeout:l(o.setTimeout),setInterval:l(o.setInterval)})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r),n.d(r,{default:function(){return QO}});var t={};n.r(t),n.d(t,{deserialize:function(){return Gd},getSerializationType:function(){return Wd},serialize:function(){return Yd}});var e={};n.r(e),n.d(e,{deserialize:function(){return Db},getRequestModel:function(){return Cb},getSerializationType:function(){return Ab},serialize:function(){return Ib}});n(8309),n(9070),n(3710);var o=!1,i="",c=function(){return new Date(2e3,0,1)},u=-1,a=4,s=4,f=4,l=16,y=1,p=(n(7042),n(1539),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165),n(6992),n(3948),n(9753),n(561),function(t,e){for(var n=t.length,r=0;r<n;){if(e===t[r])return r;r+=1}return u}),h=function(t,e){var n=p(t,e);return n!==u&&(t.splice(n,1),!0)},d=function(t,e){for(var n=0;n<t.length;n++){e(t[n])}},b=function(t){return t.slice(0)},v=function(t){t.length=0};function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.subscribers=e}var e,n,r;return e=t,(n=[{key:"subscribe",value:function(t){h(this.subscribers,t),this.subscribers.push(t)}},{key:"unsubscribe",value:function(t){h(this.subscribers,t)}}])&&m(e.prototype,n),r&&m(e,r),t}();function w(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var E=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"asObservable",(function(){return new g(e.subscribers)})),this.subscribers=[]}var e,n,r;return e=t,n=[{key:"notify",value:function(t){var e,n=w(this.subscribers);try{for(n.s();!(e=n.n()).done;)(0,e.value)(t)}catch(t){n.e(t)}finally{n.f()}}},{key:"dispose",value:function(){v(this.subscribers)}}],n&&S(e.prototype,n),r&&S(e,r),t}();function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.subject=new E,this.observer=this.subject.asObservable()}var e,n,r;return e=t,r=[{key:"createNotifierCallback",value:function(t,e){return function(n){t[e].notify(n)}}}],(n=[{key:"notify",value:function(t){this.subject.notify(t)}},{key:"subscribe",value:function(t){this.observer.subscribe(t)}},{key:"unsubscribe",value:function(t){this.observer.unsubscribe(t)}},{key:"dispose",value:function(){this.subject.dispose()}}])&&_(e.prototype,n),r&&_(e,r),t}();function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var R=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.socket=void 0,this.onOpen=new k,this.onClose=new k,this.onError=new k,this.onMessage=new k}var e,n,r;return e=t,(n=[{key:"webSocketState",get:function(){return void 0===this.socket?WebSocket.CLOSED:this.socket.readyState}},{key:"connect",value:function(t){this.socket=new WebSocket(t),this.socket.binaryType="arraybuffer",this.socket.onopen=k.createNotifierCallback(this,"onOpen"),this.socket.onclose=k.createNotifierCallback(this,"onClose"),this.socket.onerror=k.createNotifierCallback(this,"onError"),this.socket.onmessage=k.createNotifierCallback(this,"onMessage")}},{key:"disconnect",value:function(){void 0!==this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.readyState!==this.socket.CLOSING&&this.socket.close()}},{key:"send",value:function(t){void 0!==this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(t)}},{key:"dispose",value:function(){this.onOpen.dispose(),this.onClose.dispose(),this.onMessage.dispose(),this.onError.dispose()}}])&&T(e.prototype,n),r&&T(e,r),t}();n(7941),n(8304),n(489),n(2419),n(8011),n(3371);var j=function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.key=e,this.name=n,this.type=r,Object.freeze(this)};function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(j,"createEmpty",(function(){return new j(0,"","")}));var x=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,n=[{key:"getDefault",value:function(){var t=Object.keys(this);if(0!==t.length)return this[t[0]]}},{key:"getValue",value:function(t){if(t instanceof j){if(t.type===this.getDefault().type)return this[t.name]}else{if("string"==typeof t||t instanceof String)return this[t];if(t instanceof Object)return this[t.name]}}},{key:"getValueByKey",value:function(t){for(var e=Object.keys(this),n=0;n<e.length;n++){var r=this[e[n]];if(r.key===t)return r}}}],r=[{key:"equal",value:function(t,e){return t.type===e.type&&t.id===e.id&&t.name===e.name}}],n&&P(e.prototype,n),r&&P(e,r),t}(),U=(n(2222),function(t,e,n){if(e=e||"UnknownCollection",n instanceof Array)for(var r=0;r<n.length;r++){var o=n[r];t[o]=new j(r,o,e)}else{if(!(n instanceof Object))throw TypeError("wrong type of parameter in creating enumeration, this parameter should be Array or Object");for(var i=[],c=[],a=Object.keys(n),s=0;s<a.length;s++){var f=a[s],l=n[f];if(t[f]=new j(l,f,e),p(i,l)!==u){var y=c[p(i,l)];throw new Error('values of object "'.concat(f,'" and "').concat(y,'" have key "').concat(l,'", all values should be had difference key of object.'))}i.push(l),c.push(f)}}Object.freeze(t)});function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function C(t,e){return C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},C(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){if(e&&("object"===A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return q(t)}function q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}var M=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}(n,t);var e=D(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Disconnected=j.createEmpty(),t.Problem=j.createEmpty(),t.Connected=j.createEmpty(),t.Ready=j.createEmpty(),t.Connecting=j.createEmpty(),U(q(t),"ServerState",Object.keys(q(t))),t}return n}(x)),N=(n(9575),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9601),n(8674),n(9600),n(2087),n(4819),n(5003),{SystemPingMessage:1813230784,HandShakeResponse:1228152700,AuthenticationRequest:3545385214,UaEquityHistoricalDataRequest:3006304282,UaEquityExecutionHistoryRequest:2146130062,NewUaEquityOrder:3066726493,CancelUaEquityOrder:1669369706,LinkedUaEquityAccountsRequest:582922951,UaEquityOrderStatusRequest:3360939710,UaEquityMarketDataRequest:3156118754,UaEquityTimeRequest:129884098,EquityAccountInfoRequest:1305027763,CryptoAccountInfoRequest:295785155,UaEquityAccountInfoRequest:1282218392,UaFndAccountInfoRequest:3990861192,UaBonAccountInfoRequest:3881079041,PasswordChangeRequest:1024507285}),L={1703126137:"UaEquityAccountInfoUpdate",4050756429:"UaEquityMarketDataRequestReject",1585548560:"UaEquityPending",1242242234:"UaEquityCanceled",512238236:"AuthenticationFailedResponse",2962507984:"UaEquityMarketTime",1869191053:"UaEquitySending",4119418981:"UserUaEquityAccountLinkInfo",472177354:"UaEquityOrderBookCache",610746762:"UaEquityAccountOpenUpdate",1927405556:"UaEquityOrderStatusResponse",2617885985:"UaEquityPositionOpenUpdate",1498229118:"AuthenticationSuccessResponse",1813230784:"SystemPingMessage",1889001321:"RequestResult",1418680286:"UaEquityExecutionHistoryResponse",2691196110:"UaEquityAccountInfoResponse",1540553472:"LinkedUaEquityAccountsResponse",2499486626:"UaEquityReject",2752217915:"HandShake",1002061658:"UaEquityQuote",378154114:"UaEquityCancelling",3920407374:"UaEquityPosition",785496008:"UaEquityTrade",342546427:"UaEquityCancelReject",486386153:"UaEquityTodayInfo",1838833035:"UaEquityOrderError",1159563464:"UaEquityPrint",2736905035:"UaEquityHistoricalDataResponse",1194766959:"UaEquityAlert",3663534370:"ServerStateMessage",1066352767:"UaEquityLevelData",3880847928:"HeartBeat",2796212066:"UaEquityExecutorAccountConnectionStatus",4214160612:"SystemNotification",731712738:"UaEquityTimeResponse",883983438:"UserInfo",2710166257:"UaEquityGeneralSymbolInfo"};n(4129),n(4812);var z=new WeakMap,F=function(){return function(t){return z.has(t)||z.set(t,{}),z.get(t)}},H=function(t,e){for(var n in e)t[n]=e[n]},Z=function(t){var e={};return H(e,t),e},V=function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];n[t[o]]=o}return n};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function G(t,e){return G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},G(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=J(t);if(e){var o=J(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Q(t)}function Q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},J(t)}var X=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&G(t,e)}(n,t);var e=Y(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).JsonPacketSerializer=j.createEmpty(),t.MsgPackSerializer=j.createEmpty(),U(Q(t),"SerializerType",Object.keys(Q(t))),t}return n}(x));function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function tt(t,e){return tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},tt(t,e)}function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ot(t);if(e){var o=ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(t,e){if(e&&("object"===$(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rt(t)}function rt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}var it={Unknown:0,Authentication:1,EquityMarketData:2,EquityExecutionData:3,EquityHistoricalData:4,Administration:5,CryptoMarketData:6,CryptoHistoricalData:7,CryptoExecutionData:8,ManagementData:9,UaEquityMarketData:10,UaEquityExecutionData:11,UaEquityHistoricalData:12,UaFndMarketData:13,UaFndExecutionData:14,UaFndHistoricalData:15,UaBonMarketData:16,UaBonExecutionData:17,UaBonHistoricalData:18},ct=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tt(t,e)}(n,t);var e=et(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Unknown=j.createEmpty(),t.Authentication=j.createEmpty(),t.Administration=j.createEmpty(),t.EquityMarketData=j.createEmpty(),t.EquityExecutionData=j.createEmpty(),t.EquityHistoricalData=j.createEmpty(),t.CryptoMarketData=j.createEmpty(),t.CryptoExecutionData=j.createEmpty(),t.CryptoHistoricalData=j.createEmpty(),t.UaEquityMarketData=j.createEmpty(),t.UaEquityExecutionData=j.createEmpty(),t.UaEquityHistoricalData=j.createEmpty(),t.UaFndMarketData=j.createEmpty(),t.UaFndExecutionData=j.createEmpty(),t.UaFndHistoricalData=j.createEmpty(),t.UaBonMarketData=j.createEmpty(),t.UaBonExecutionData=j.createEmpty(),t.UaBonHistoricalData=j.createEmpty(),t.ManagementData=j.createEmpty(),U(rt(t),"ChannelType",it),t}return n}(x));function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function at(t,e){return at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},at(t,e)}function st(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yt(t);if(e){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(t,e){if(e&&("object"===ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lt(t)}function lt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yt(t){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},yt(t)}var pt=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&at(t,e)}(n,t);var e=st(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).enUS=j.createEmpty(),U(lt(t),"Localization",Object.keys(lt(t))),t}return n}(x));function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(t,e){return dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},dt(t,e)}function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gt(t);if(e){var o=gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vt(this,n)}}function vt(t,e){if(e&&("object"===ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mt(t)}function mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gt(t){return gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gt(t)}var wt={Web:1},Ot=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dt(t,e)}(n,t);var e=bt(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Web=j.createEmpty(),U(mt(t),"DeviceType",wt),t}return n}(x));function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Et(t,e){return Et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Et(t,e)}function _t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rt(t);if(e){var o=Rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(t,e){if(e&&("object"===St(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tt(t)}function Tt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var jt=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Et(t,e)}(n,t);var e=_t(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Demo=j.createEmpty(),t.Real=j.createEmpty(),t.Internal=j.createEmpty(),U(Tt(t),"ContractType",Object.keys(Tt(t))),t}return n}(x));function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function xt(t,e){return xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},xt(t,e)}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dt(t);if(e){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return At(this,n)}}function At(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ct(t)}function Ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dt(t){return Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Dt(t)}var It=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xt(t,e)}(n,t);var e=Ut(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).EmptyCredentials=j.createEmpty(),t.IncorrectUserName=j.createEmpty(),t.IncorrectPassword=j.createEmpty(),t.UserIsActive=j.createEmpty(),t.UserIsDisabled=j.createEmpty(),t.AuthenticationServerIsNotAccessible=j.createEmpty(),t.RestrictedDeviceType=j.createEmpty(),U(Ct(t),"FailedAuthenticationReason",Object.keys(Ct(t))),t}return n}(x));function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Bt(t,e){return Bt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Bt(t,e)}function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zt(t);if(e){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nt(this,n)}}function Nt(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lt(t)}function Lt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zt(t){return zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zt(t)}var Ft={None:0,Buy:"B".charCodeAt(0),Sell:"S".charCodeAt(0),SSell:"T".charCodeAt(0)},Ht=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bt(t,e)}(n,t);var e=Mt(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.Buy=j.createEmpty(),t.Sell=j.createEmpty(),t.SSell=j.createEmpty(),U(Lt(t),"UaEquityOrderSide",Ft),t}return n}(x));function Zt(t){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(t)}function Vt(t,e){return Vt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Vt(t,e)}function Wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kt(t);if(e){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(t,e){if(e&&("object"===Zt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yt(t)}function Yt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kt(t){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kt(t)}var Qt=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vt(t,e)}(n,t);var e=Wt(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Mkt=j.createEmpty(),t.Lmt=j.createEmpty(),t.Stp=j.createEmpty(),t.StpLmt=j.createEmpty(),t.PositionClose=j.createEmpty(),t.PositionCancelAndClose=j.createEmpty(),U(Yt(t),"UaEquityOrderType",Object.keys(Yt(t))),t}return n}(x));function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Xt(t,e){return Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Xt(t,e)}function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ne(t);if(e){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return te(this,n)}}function te(t,e){if(e&&("object"===Jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ee(t)}function ee(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ne(t){return ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ne(t)}var re=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(n,t);var e=$t(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Day=j.createEmpty(),t.Gtc=j.createEmpty(),U(ee(t),"UaEquityTimeInForce",Object.keys(ee(t))),t}return n}(x));function oe(t){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(t)}function ie(t,e){return ie=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ie(t,e)}function ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=se(t);if(e){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(t,e){if(e&&("object"===oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ae(t)}function ae(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function se(t){return se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},se(t)}var fe=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ie(t,e)}(n,t);var e=ce(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Quote=j.createEmpty(),t.Print=j.createEmpty(),U(ae(t),"UaEquityOpenUpdateReason",Object.keys(ae(t))),t}return n}(x));function le(t){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ye(t,e)}function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(t,e){if(e&&("object"===le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return de(t)}function de(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function be(t){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},be(t)}var ve=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(n,t);var e=pe(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Unknown=j.createEmpty(),t.Canceled=j.createEmpty(),t.Canceling=j.createEmpty(),t.CancelOrder=j.createEmpty(),t.CancelReject=j.createEmpty(),t.Pending=j.createEmpty(),t.Reject=j.createEmpty(),t.Sending=j.createEmpty(),t.Trade=j.createEmpty(),t.OrderError=j.createEmpty(),U(de(t),"UaEquityOrderStatus",Object.keys(de(t))),t}return n}(x));function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}function ge(t,e){return ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ge(t,e)}function we(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ee(t);if(e){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Se(t)}function Se(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ee(t){return Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ee(t)}var _e={LevelData:1,Print:2,Quote:4,TodayInfo:8,OrderBookCache:16,GeneralSymbolInfo:32},ke=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ge(t,e)}(n,t);var e=we(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).LevelData=j.createEmpty(),t.Print=j.createEmpty(),t.Quote=j.createEmpty(),t.TodayInfo=j.createEmpty(),t.OrderBookCache=j.createEmpty(),t.GeneralSymbolInfo=j.createEmpty(),U(Se(t),"UaEquityMarketDataType",_e),t}return n}(x));function Te(t){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(t)}function Re(t,e){return Re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Re(t,e)}function je(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ue(t);if(e){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pe(this,n)}}function Pe(t,e){if(e&&("object"===Te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xe(t)}function xe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ue(t){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ue(t)}var Ae=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Re(t,e)}(n,t);var e=je(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Bid=j.createEmpty(),t.Ask=j.createEmpty(),U(xe(t),"UaEquityLevelDataSide",Object.keys(xe(t))),t}return n}(x));function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function De(t,e){return De=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},De(t,e)}function Ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Me(t);if(e){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(t,e){if(e&&("object"===Ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Be(t)}function Be(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Me(t){return Me=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Me(t)}var Ne={Level2:0,Level1:1,Level0:2},Le=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&De(t,e)}(n,t);var e=Ie(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Level2=j.createEmpty(),t.Level1=j.createEmpty(),t.Level0=j.createEmpty(),U(Be(t),"UaEquityLevel",Ne),t}return n}(x));function ze(t){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(t)}function Fe(t,e){return Fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fe(t,e)}function He(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=We(t);if(e){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(t,e){if(e&&("object"===ze(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ve(t)}function Ve(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},We(t)}var Ge=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fe(t,e)}(n,t);var e=He(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).BboBid=j.createEmpty(),t.BboAsk=j.createEmpty(),U(Ve(t),"UaEquityQuoteUpdateReason",Object.keys(Ve(t))),t}return n}(x));function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Ke(t,e){return Ke=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ke(t,e)}function Qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$e(t);if(e){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xe(t)}function Xe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $e(t){return $e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$e(t)}var tn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ke(t,e)}(n,t);var e=Qe(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.PerShare=j.createEmpty(),t.PerTicket=j.createEmpty(),t.PerTrade=j.createEmpty(),U(Xe(t),"CommissionType",Object.keys(Xe(t))),t}return n}(x));function en(t){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(t)}function nn(t,e){return nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},nn(t,e)}function rn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=un(t);if(e){var o=un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return on(this,n)}}function on(t,e){if(e&&("object"===en(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return cn(t)}function cn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},un(t)}var an={None:0,AccountInfo:1,RiskInfo:2,TradingStatistic:4,All:7},sn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nn(t,e)}(n,t);var e=rn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.AccountInfo=j.createEmpty(),t.RiskInfo=j.createEmpty(),t.TradingStatistic=j.createEmpty(),t.All=j.createEmpty(),U(cn(t),"UaEquityAccountInfoUpdateType",an),t}return n}(x));function fn(t){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(t)}function ln(t,e){return ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ln(t,e)}function yn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dn(t);if(e){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pn(this,n)}}function pn(t,e){if(e&&("object"===fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hn(t)}function hn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dn(t)}var bn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ln(t,e)}(n,t);var e=yn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Tick=j.createEmpty(),t.BarMinute=j.createEmpty(),t.BarDaily=j.createEmpty(),t.BarWeekly=j.createEmpty(),t.BarMonthly=j.createEmpty(),U(hn(t),"UaEquityHistoryRequestType",Object.keys(hn(t))),t}return n}(x));function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function mn(t,e){return mn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},mn(t,e)}function gn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sn(t);if(e){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(t,e){if(e&&("object"===vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return On(t)}function On(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Sn(t)}var En=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mn(t,e)}(n,t);var e=gn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Success=j.createEmpty(),t.RequestTimeOut=j.createEmpty(),t.OtherError=j.createEmpty(),t.PerformanceTest=j.createEmpty(),U(On(t),"UaEquityHistoricalResponseCode",Object.keys(On(t))),t}return n}(x));function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function kn(t,e){return kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},kn(t,e)}function Tn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pn(t);if(e){var o=Pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jn(t)}function jn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Pn(t)}var xn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kn(t,e)}(n,t);var e=Tn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Unknown=j.createEmpty(),t.NotAuthenticated=j.createEmpty(),t.MessageNotSupported=j.createEmpty(),t.AccessDeny=j.createEmpty(),t.UserForceDisconnect=j.createEmpty(),U(jn(t),"NotificationCode",Object.keys(jn(t))),t}return n}(x));function Un(t){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(t)}function An(t,e){return An=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},An(t,e)}function Cn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qn(t);if(e){var o=qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dn(this,n)}}function Dn(t,e){if(e&&("object"===Un(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return In(t)}function In(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qn(t){return qn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qn(t)}var Bn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&An(t,e)}(n,t);var e=Cn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).RequestFailed=j.createEmpty(),t.AccessDeny=j.createEmpty(),t.UserIsDisabled=j.createEmpty(),t.UserIsRemoved=j.createEmpty(),t.RequestSuccess=j.createEmpty(),U(In(t),"RequestResultType",Object.keys(In(t))),t}return n}(x));function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Nn(t,e){return Nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Nn(t,e)}function Ln(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hn(t);if(e){var o=Hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zn(this,n)}}function zn(t,e){if(e&&("object"===Mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fn(t)}function Fn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hn(t){return Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Hn(t)}var Zn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nn(t,e)}(n,t);var e=Ln(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).AllExecutionHistory=j.createEmpty(),t.ActiveSession=j.createEmpty(),U(Fn(t),"UaEquityExecutionHistoryRequestType",Object.keys(Fn(t))),t}return n}(x));function Vn(t){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(t)}function Wn(t,e){return Wn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Wn(t,e)}function Gn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qn(t);if(e){var o=Qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yn(this,n)}}function Yn(t,e){if(e&&("object"===Vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Kn(t)}function Kn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qn(t){return Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qn(t)}var Jn=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wn(t,e)}(n,t);var e=Gn(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).AddSubscription=j.createEmpty(),t.RemoveSubscription=j.createEmpty(),U(Kn(t),"UaEquitySubscriptionAction",Object.keys(Kn(t))),t}return n}(x));function Xn(t){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(t)}function $n(t,e){return $n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$n(t,e)}function tr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rr(t);if(e){var o=rr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return er(this,n)}}function er(t,e){if(e&&("object"===Xn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nr(t)}function nr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(t)}var or={Unknown:0,Print:1,Quote:2,TodayInfo:4,OrderBook:8};or.All=or.OrderBook|or.Print|or.Quote|or.TodayInfo;var ir=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$n(t,e)}(n,t);var e=tr(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Unknown=j.createEmpty(),t.Print=j.createEmpty(),t.Quote=j.createEmpty(),t.TodayInfo=j.createEmpty(),t.OrderBook=j.createEmpty(),t.All=j.createEmpty(),U(nr(t),"UaEquitySubscriptionDataType",or),t}return n}(x));function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function ur(t,e){return ur=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ur(t,e)}function ar(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lr(t);if(e){var o=lr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sr(this,n)}}function sr(t,e){if(e&&("object"===cr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return fr(t)}function fr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lr(t){return lr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},lr(t)}var yr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ur(t,e)}(n,t);var e=ar(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).InvalidSymbol=j.createEmpty(),t.Level1SymbolLimit=j.createEmpty(),t.Level2SymbolLimit=j.createEmpty(),U(fr(t),"UaEquityMarketDataRejectReason",Object.keys(fr(t))),t}return n}(x));function pr(t){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(t)}function hr(t,e){return hr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},hr(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mr(t);if(e){var o=mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return br(this,n)}}function br(t,e){if(e&&("object"===pr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return vr(t)}function vr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mr(t){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},mr(t)}var gr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hr(t,e)}(n,t);var e=dr(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.ViewOnly=j.createEmpty(),t.Trading=j.createEmpty(),t.Full=j.createEmpty(),U(vr(t),"AdminType",Object.keys(vr(t))),t}return n}(x));function wr(t){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(t)}function Or(t,e){return Or=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Or(t,e)}function Sr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=kr(t);if(e){var o=kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Er(this,n)}}function Er(t,e){if(e&&("object"===wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _r(t)}function _r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kr(t){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kr(t)}var Tr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Or(t,e)}(n,t);var e=Sr(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.GlobalManager=j.createEmpty(),t.ClearingManager=j.createEmpty(),U(_r(t),"ManagerType",Object.keys(_r(t))),t}return n}(x));function Rr(t){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(t)}function jr(t,e){return jr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},jr(t,e)}function Pr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ar(t);if(e){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(t,e){if(e&&("object"===Rr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ur(t)}function Ur(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ar(t){return Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ar(t)}var Cr={OneMinute:1,TwoMinute:2,FiveMinute:5,FifteenMinute:15,ThirtyMinute:30,SixtyMinute:60},Dr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jr(t,e)}(n,t);var e=Pr(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).OneMinute=j.createEmpty(),t.TwoMinute=j.createEmpty(),t.FiveMinute=j.createEmpty(),t.FifteenMinute=j.createEmpty(),t.ThirtyMinute=j.createEmpty(),t.SixtyMinute=j.createEmpty(),U(Ur(t),"UaEquityRequestTypeParam",Cr),t}return n}(x));function Ir(t){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(t)}function qr(t,e){return qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qr(t,e)}function Br(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lr(t);if(e){var o=Lr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mr(this,n)}}function Mr(t,e){if(e&&("object"===Ir(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nr(t)}function Nr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lr(t){return Lr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Lr(t)}var zr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qr(t,e)}(n,t);var e=Br(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).Unknown=j.createEmpty(),t.Tcp=j.createEmpty(),t.WebSocket=j.createEmpty(),t.Udp=j.createEmpty(),t.WebTransport=j.createEmpty(),U(Nr(t),"ConnectionProtocol",Object.keys(Nr(t))),t}return n}(x));function Fr(t){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(t)}function Hr(t,e){return Hr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Hr(t,e)}function Zr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gr(t);if(e){var o=Gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}function Vr(t,e){if(e&&("object"===Fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wr(t)}function Wr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gr(t){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gr(t)}var Yr={None:0,Available:1,Halted:2,NotAvailable:3},Kr=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hr(t,e)}(n,t);var e=Zr(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).None=j.createEmpty(),t.Available=j.createEmpty(),t.Halted=j.createEmpty(),t.NotAvailable=j.createEmpty(),U(Wr(t),"DeviceType",Yr),t}return n}(x)),Qr={ContractType:jt,DeviceType:Ot,Localization:pt,DataChannelType:ct,FailedAuthenticationReason:It,UaEquityOrderSide:Ht,UaEquityOrderType:Qt,UaEquityTimeInForce:re,UaEquityOpenUpdateReason:fe,UaEquityOrderStatus:ve,UaEquityMarketDataType:ke,UaEquityLevelDataSide:Ae,UaEquityLevel:Le,UaEquityQuoteUpdateReason:Ge,UaEquityCommissionType:tn,UaEquityAccountInfoUpdateType:sn,UaEquityHistoryRequestType:bn,UaEquityHistoricalResponseCode:En,NotificationCode:xn,RequestResultType:Bn,SerializerType:X,UaEquityExecutionHistoryRequestType:Zn,UaEquitySubscriptionAction:Jn,UaEquitySubscriptionDataType:ir,UaEquityMarketDataRejectReason:yr,ServerState:M,AdminType:gr,ManagerType:Tr,UaEquityRequestTypeParam:Dr,ConnectionProtocol:zr,UaEquitySymbolTradingStatus:Kr},Jr=(n(3123),n(9653),621355968e9),Xr=function(t){return t<10?"0"+t:""+t},$r=function(t){throw new Error("Invalid format of date in string, wrong date is ".concat(t,", example string of date must be: 2000-12-30T10:30:45:30.255"))},to=function(t){return+t},eo=function(t){return t.getTimezoneOffset()/60},no={convertStringToDate:function(t){var e=t.split("T"),n=e[0],r=e[1],o=n.split("-");try{if(3!==o.length&&$r(t),void 0===r)return new Date(o[0],to(o[1])-1,o[2]);var i=r.split(":");return 3!==i.length&&$r(t),new Date(o[0],to(o[1])-1,o[2],i[0],i[1],i[2])}catch(e){$r(t)}},convertCSharpTicksToDate:function(t){var e=Number(t),n=new Date((e-Jr)/1e4);return n.setHours(n.getHours()+eo(n)),n},convertDateToCSharpTicks:function(t){var e=new Date(t);return e.setHours(t.getHours()-eo(t)),1e4*e.getTime()+Jr},convertDateToString:function(t){if(t instanceof Date){var e=""+t.getFullYear(),n=Xr(t.getMonth()+1),r=Xr(t.getDate()),o=Xr(t.getHours()),i=Xr(t.getMinutes()),c=Xr(t.getSeconds());return"".concat(e,"-").concat(n,"-").concat(r,"T").concat(o,":").concat(i,":").concat(c)}throw new Error('Wrong type of parameter, this type of parameter must be "Date"')}},ro=function(t,e){0!==t.subject.subscribers.length&&t.notify(e)},oo=function(t,e){e=e||{};for(var n=0;n<t.length;n++){e[t[n]]=new k}return e};function io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}for(var co="BaseMessage",uo=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return co}}],(n=[{key:"messageType",get:function(){return co}}])&&io(e.prototype,n),r&&io(e,r),t}(),ao={},so=Object.keys(Qr),fo=0;fo<so.length;fo++){var lo=so[fo],yo=Object.keys(Qr[lo]);ao[lo]={};for(var po=0;po<yo.length;po++){var ho=Qr[lo][yo[po]],bo=ho.key;ao[lo][bo]=ho}}var vo=function(t,e,n){t[n]=e.model[e.keys[n]]},mo=function(t,e,n,r){t[n]=r(e.model[e.keys[n]])},go=function(t,e,n,r){t[n]=function(t,e){return ao[t][e]}(r,e.model[e.keys[n]])},wo=function(t,e,n,r){e.model[e.keys[n]]?t[n]=r.createByMsgpack(e.model[e.keys[n]]):null===e.model[e.keys[n]]&&(t[n]=null)},Oo=function(t,e,n,r){var o=[],i=e.model[e.keys[n]];if(null!=i)for(var c=0;c<i.length;c++)o.push(r.createByMsgpack(i[c]));t[n]=o},So=function(t,e,n,r){t[n]=e.model[e.keys[r]]};function Eo(t){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(t)}function _o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ko(t,e){return ko=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ko(t,e)}function To(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Po(t);if(e){var o=Po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ro(this,n)}}function Ro(t,e){if(e&&("object"===Eo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jo(t)}function jo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Po(t){return Po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Po(t)}var xo="DataLimitation",Uo=V(["LimitationName","LimitationValue"]);function Ao(t){t.creationType===y&&(vo(this,t,"LimitationName"),vo(this,t,"LimitationValue"))}var Co=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ko(t,e)}(c,t);var e,n,r,o=To(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),t?(Ao.call(jo(e),t),Ro(e)):(e.LimitationName=i,e.LimitationValue=0,e)}return e=c,r=[{key:"messageType",get:function(){return xo}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Uo,creationType:y})}}],(n=[{key:"messageType",get:function(){return xo}}])&&_o(e.prototype,n),r&&_o(e,r),c}(uo);function Do(t){return Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(t)}function Io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qo(t,e){return qo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qo(t,e)}function Bo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lo(t);if(e){var o=Lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(t,e){if(e&&("object"===Do(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return No(t)}function No(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lo(t){return Lo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Lo(t)}var zo="DataAccess",Fo=V(["AccessName","Enabled"]);function Ho(t){t.creationType===y&&(vo(this,t,"AccessName"),vo(this,t,"Enabled"))}var Zo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qo(t,e)}(u,t);var e,n,r,c=Bo(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this),t?(Ho.call(No(e),t),Mo(e)):(e.AccessName=i,e.Enabled=o,e)}return e=u,r=[{key:"messageType",get:function(){return zo}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:Fo,creationType:y})}}],(n=[{key:"messageType",get:function(){return zo}}])&&Io(e.prototype,n),r&&Io(e,r),u}(uo);function Vo(t){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(t)}function Wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Go(t,e){return Go=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Go(t,e)}function Yo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jo(t);if(e){var o=Jo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ko(this,n)}}function Ko(t,e){if(e&&("object"===Vo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qo(t)}function Qo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jo(t){return Jo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Jo(t)}var Xo="ChannelConnectionSettings",$o=V(["Channel","ConnectionString","Protocol"]);function ti(t){t.creationType===y&&(go(this,t,"Channel","DataChannelType"),vo(this,t,"ConnectionString"),go(this,t,"Protocol","ConnectionProtocol"))}var ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Go(t,e)}(c,t);var e,n,r,o=Yo(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),t?(ti.call(Qo(e),t),Ko(e)):(e.Channel=ct.getDefault(),e.Protocol=zr.getDefault(),e.ConnectionString=i,e)}return e=c,r=[{key:"messageType",get:function(){return Xo}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:$o,creationType:y})}}],(n=[{key:"messageType",get:function(){return Xo}}])&&Wo(e.prototype,n),r&&Wo(e,r),c}(uo);function ni(t){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(t)}function ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oi(t,e){return oi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},oi(t,e)}function ii(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ai(t);if(e){var o=ai(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ci(this,n)}}function ci(t,e){if(e&&("object"===ni(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ui(t)}function ui(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ai(t){return ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ai(t)}var si="UserInfo",fi=V(["AdminType","ClearingId","ConnectionSettings","ContractType","DataAccess","DataLimitation","DesktopAccessEnabled","FirstName","InstanceId","IsDeleted","LastName","ManagerType","MobileAccessEnabled","UserEnabled","UserName","WebAccessEnabled","WindowAccess"]);function li(t){t.creationType===y&&(vo(this,t,"UserName"),vo(this,t,"FirstName"),vo(this,t,"LastName"),vo(this,t,"DesktopAccessEnabled"),vo(this,t,"WebAccessEnabled"),vo(this,t,"MobileAccessEnabled"),go(this,t,"AdminType","AdminType"),go(this,t,"ManagerType","ManagerType"),go(this,t,"ContractType","ContractType"),vo(this,t,"UserEnabled"),vo(this,t,"IsDeleted"),Oo(this,t,"ConnectionSettings",ei),Oo(this,t,"DataLimitation",Co),Oo(this,t,"DataAccess",Zo),vo(this,t,"ClearingId"),vo(this,t,"InstanceId"))}var yi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oi(t,e)}(u,t);var e,n,r,c=ii(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this),t?(li.call(ui(e),t),ci(e)):(e.UserName=i,e.FirstName=i,e.LastName=i,e.DesktopAccessEnabled=o,e.WebAccessEnabled=o,e.MobileAccessEnabled=o,e.AdminType=gr.getDefault(),e.ManagerType=Tr.getDefault(),e.ContractType=jt.getDefault(),e.UserEnabled=o,e.IsDeleted=o,e.ConnectionSettings=[],e.DataLimitation=[],e.DataAccess=[],e.WindowAccess=null,e.ClearingId=0,e.InstanceId=0,e)}return e=u,r=[{key:"messageType",get:function(){return si}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:fi,creationType:y})}}],(n=[{key:"messageType",get:function(){return si}}])&&ri(e.prototype,n),r&&ri(e,r),u}(uo);function pi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var hi="AuthenticationSuccessResponse",di=V(["Channel","UserInfo"]);function bi(t){t.creationType===y&&(go(this,t,"Channel","DataChannelType"),wo(this,t,"UserInfo",yi))}var vi=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?bi.call(this,e):(this.UserInfo=new yi,this.Channel=ct.getDefault())}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return hi}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:di,creationType:y})}}],(n=[{key:"messageType",get:function(){return hi}}])&&pi(e.prototype,n),r&&pi(e,r),t}();function mi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var gi="AuthenticationFailedResponse",wi=V(["Channel","FailedReason","Message"]);function Oi(t){t.creationType===y&&(go(this,t,"Channel","DataChannelType"),go(this,t,"FailedReason","FailedAuthenticationReason"),vo(this,t,"Message"))}var Si=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Oi.call(this,e):(this.FailedReason=It.getDefault(),this.Channel=ct.getDefault(),this.Message=i)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return gi}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:wi,creationType:y})}}],(n=[{key:"messageType",get:function(){return gi}}])&&mi(e.prototype,n),r&&mi(e,r),t}();function Ei(t){return Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(t)}function _i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ki(t,e){return ki=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ki(t,e)}function Ti(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pi(t);if(e){var o=Pi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ri(this,n)}}function Ri(t,e){if(e&&("object"===Ei(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ji(t)}function ji(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pi(t){return Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(t)}var xi="SystemNotification",Ui=V(["Channel","NotificationCode","Text"]);function Ai(t){t.creationType===y&&(go(this,t,"Channel","DataChannelType"),go(this,t,"NotificationCode","NotificationCode"),vo(this,t,"Text"))}var Ci=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ki(t,e)}(c,t);var e,n,r,o=Ti(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),t?(Ai.call(ji(e),t),Ri(e)):(e.Channel=ct.getDefault(),e.NotificationCode=xn.getDefault(),e.Text=i,e)}return e=c,r=[{key:"messageType",get:function(){return xi}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Ui,creationType:y})}}],(n=[{key:"messageType",get:function(){return xi}}])&&_i(e.prototype,n),r&&_i(e,r),c}(uo);function Di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ii="IdMessage";function qi(t){t.creationType===y&&vo(this,t,"RequestId")}var Bi=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?qi.call(this,e):this.RequestId=0}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Ii}}],(n=[{key:"messageType",get:function(){return Ii}}])&&Di(e.prototype,n),r&&Di(e,r),t}();function Mi(t){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(t)}function Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Li(t,e){return Li=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Li(t,e)}function zi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zi(t);if(e){var o=Zi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fi(this,n)}}function Fi(t,e){if(e&&("object"===Mi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hi(t)}function Hi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zi(t){return Zi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zi(t)}var Vi="RequestResult",Wi=V(["Message","RequestId","RequestResultType"]);function Gi(t){t.creationType===y&&(go(this,t,"RequestResultType","RequestResultType"),vo(this,t,"Message"))}var Yi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Li(t,e)}(c,t);var e,n,r,o=zi(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Gi.call(Hi(e),t),Fi(e)):(e.RequestResultType=Bn.getDefault(),e.Message=i,e)}return e=c,r=[{key:"messageType",get:function(){return Vi}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Wi,creationType:y})}}],(n=[{key:"messageType",get:function(){return Vi}}])&&Ni(e.prototype,n),r&&Ni(e,r),c}(Bi);function Ki(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Qi="UaEquityExecutorAccountConnectionStatus",Ji=V(["AccountName","IsConnected"]);function Xi(t){t.creationType===y&&(vo(this,t,"AccountName"),vo(this,t,"IsConnected"))}var $i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Xi.call(this,e):(this.AccountName=i,this.IsConnected=o)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Qi}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:Ji,creationType:y})}}],(n=[{key:"messageType",get:function(){return Qi}}])&&Ki(e.prototype,n),r&&Ki(e,r),t}();function tc(t){return tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(t)}function ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nc(t,e){return nc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},nc(t,e)}function rc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cc(t);if(e){var o=cc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(t,e){if(e&&("object"===tc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ic(t)}function ic(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cc(t){return cc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cc(t)}var uc="UaEquityTimeResponse",ac=V(["MarketTime","RequestId","ServerTime","UtcTime"]);function sc(t){t.creationType===y&&(mo(this,t,"MarketTime",no.convertCSharpTicksToDate),mo(this,t,"ServerTime",no.convertCSharpTicksToDate),mo(this,t,"UtcTime",no.convertCSharpTicksToDate))}var fc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nc(t,e)}(i,t);var e,n,r,o=rc(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(sc.call(ic(e),t),oc(e)):(e.UtcTime=c(),e.ServerTime=c(),e.MarketTime=c(),e)}return e=i,r=[{key:"messageType",get:function(){return uc}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:ac,creationType:y})}}],(n=[{key:"messageType",get:function(){return uc}}])&&ec(e.prototype,n),r&&ec(e,r),i}(Bi);function lc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var yc="HandShake",pc=V(["FrameworkVersion","PacketCompressors","PacketEncryptors","PacketSerializers"]);function hc(t){t.creationType===y&&(vo(this,t,"FrameworkVersion"),vo(this,t,"PacketCompressors"),vo(this,t,"PacketEncryptors"),vo(this,t,"PacketSerializers"))}var dc=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?hc.call(this,e):(this.FrameworkVersion=i,this.PacketCompressors=[],this.PacketEncryptors=[],this.PacketSerializers=[])}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return yc}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:pc,creationType:y})}}],(n=[{key:"messageType",get:function(){return yc}}])&&lc(e.prototype,n),r&&lc(e,r),t}();function bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var vc="HandShakeResponse",mc=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.FrameworkVersion=i,this.PacketCompressor=i,this.PacketEncryptor=i,this.PacketSerializer=i}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return vc}}],(n=[{key:"messageType",get:function(){return vc}}])&&bc(e.prototype,n),r&&bc(e,r),t}();function gc(t){t.creationType===y&&(vo(this,t,"Symbol"),mo(this,t,"Time",no.convertCSharpTicksToDate))}var wc=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?gc.call(this,e):(this.Symbol=i,this.Time=c())};function Oc(t){return Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(t)}function Sc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ec(t,e){return Ec=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ec(t,e)}function _c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rc(t);if(e){var o=Rc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kc(this,n)}}function kc(t,e){if(e&&("object"===Oc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tc(t)}function Tc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rc(t){return Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rc(t)}var jc="UaEquityPrint",Pc=ke.Print,xc=V(["Price","Shares","Symbol","Time"]);function Uc(t){t.creationType===y&&(vo(this,t,"Price"),vo(this,t,"Shares"))}var Ac=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ec(t,e)}(i,t);var e,n,r,o=_c(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Uc.call(Tc(e),t),kc(e)):(e.Price=0,e.Shares=0,e)}return e=i,r=[{key:"messageType",get:function(){return jc}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:xc,creationType:y})}}],(n=[{key:"Type",get:function(){return Pc}},{key:"messageType",get:function(){return jc}}])&&Sc(e.prototype,n),r&&Sc(e,r),i}(wc);function Cc(t){t.creationType===y&&vo(this,t,"RequestId")}var Dc=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Cc.call(this,e):this.RequestId=0};function Ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var qc=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),void 0===e||void 0===n)throw new Error('Parameters should be 2 count of parameters and type of parameters is "Number"');if("number"!=typeof e)throw new Error('Type of the first parameter should be "Number"');if("number"!=typeof n)throw new Error('Type of the second parameter should be "Number"');if(e>=n)throw new Error("The first parameter should be less than the second parameter");this.Min=e,this.Max=n}var e,n,r;return e=t,(n=[{key:"contains",value:function(t){return this.Min<=t&&this.Max>=t}}])&&Ic(e.prototype,n),r&&Ic(e,r),t}();function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Nc="TimeOfDay",Lc="Hour can't be less than 0 or greater than 23",zc="Minute can't be less than 0 or greater than 59",Fc="Second can't be less than 0 or greater than 59",Hc=new qc(0,23),Zc=new qc(0,59),Vc=new qc(0,59),Wc=function(t){return void 0===t?0:t},Gc=function(){function t(){var e,n,r;if(Bc(this,t),e=Wc(arguments.length<=0?void 0:arguments[0]),n=Wc(arguments.length<=1?void 0:arguments[1]),r=Wc(arguments.length<=2?void 0:arguments[2]),!Hc.contains(e))throw new Error(Lc);if(!Zc.contains(n))throw new Error(zc);if(!Vc.contains(r))throw new Error(Fc);this.Hours=e,this.Minutes=n,this.Seconds=r}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Nc}}],(n=[{key:"messageType",get:function(){return Nc}}])&&Mc(e.prototype,n),r&&Mc(e,r),t}();function Yc(t){return Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yc(t)}function Kc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qc(t,e){return Qc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Qc(t,e)}function Jc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$c(t);if(e){var o=$c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xc(this,n)}}function Xc(t,e){if(e&&("object"===Yc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function $c(t){return $c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$c(t)}var tu="UaEquityHistoricalDataRequest",eu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qc(t,e)}(u,t);var e,n,r,o=Jc(u);function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=o.call(this)).Symbol=i,t.BeginDateTime=c(),t.EndDateTime=c(),t.BeginFilterTime=new Gc,t.EndFilterTime=new Gc,t.RequestType=bn.getDefault(),t.RequestTypeParam=Dr.getDefault(),t}return e=u,r=[{key:"messageType",get:function(){return tu}}],(n=[{key:"IsTick",get:function(){return bn.getValue(this.RequestType)===bn.Tick}},{key:"IsBar",get:function(){return bn.getValue(this.RequestType)!==bn.Tick}},{key:"messageType",get:function(){return tu}}])&&Kc(e.prototype,n),r&&Kc(e,r),u}(Dc),nu=function(t){return Number(t)};function ru(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ou="UaEquityBar",iu=V(["Close","High","Low","Open","Time","Volume"]);function cu(t){t.creationType===y&&(mo(this,t,"Time",no.convertCSharpTicksToDate),vo(this,t,"High"),vo(this,t,"Low"),vo(this,t,"Open"),vo(this,t,"Close"),mo(this,t,"Volume",nu))}var uu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?cu.call(this,e):(this.Time=c(),this.High=0,this.Low=0,this.Open=0,this.Close=0,this.Volume=0)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return ou}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:iu,creationType:y})}}],(n=[{key:"messageType",get:function(){return ou}}])&&ru(e.prototype,n),r&&ru(e,r),t}();function au(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var su="UaEquityTick",fu=V(["Price","Size","Time"]);function lu(t){t.creationType===y&&(mo(this,t,"Time",no.convertCSharpTicksToDate),vo(this,t,"Price"),mo(this,t,"Size",nu))}var yu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?lu.call(this,e):(this.Time=c(),this.Price=0,this.Size=0)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return su}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:fu,creationType:y})}}],(n=[{key:"messageType",get:function(){return su}}])&&au(e.prototype,n),r&&au(e,r),t}();function pu(t){return pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(t)}function hu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function du(t,e){return du=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},du(t,e)}function bu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gu(t);if(e){var o=gu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vu(this,n)}}function vu(t,e){if(e&&("object"===pu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mu(t)}function mu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gu(t){return gu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gu(t)}var wu="UaEquityHistoricalDataResponse",Ou=V(["BarList","Message","RequestId","ResponseCode","TickList"]);function Su(t){t.creationType===y&&(Oo(this,t,"BarList",uu),vo(this,t,"Message"),go(this,t,"ResponseCode","UaEquityHistoricalResponseCode"),t.model[t.keys.TickList]&&Oo(this,t,"TickList",yu))}var Eu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&du(t,e)}(c,t);var e,n,r,o=bu(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Su.call(mu(e),t),vu(e)):(e.BarList=[],e.Message=i,e.ResponseCode=En.getDefault(),e.TickList=[],e)}return e=c,r=[{key:"messageType",get:function(){return wu}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Ou,creationType:y})}}],(n=[{key:"HasBars",get:function(){return this.BarList instanceof Array&&0!==this.BarList.length}},{key:"HasTicks",get:function(){return this.TickList instanceof Array&&0!==this.TickList.length}},{key:"messageType",get:function(){return wu}}])&&hu(e.prototype,n),r&&hu(e,r),c}(Dc);function _u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ku="UaEquityMarketDataRequestReject",Tu=V(["Reason","Symbol","Text"]);function Ru(t){t.creationType===y&&(go(this,t,"Reason","UaEquityMarketDataRejectReason"),vo(this,t,"Symbol"),vo(this,t,"Text"))}var ju=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Ru.call(this,e):(this.Reason=yr.getDefault(),this.Text=i,this.Symbol=i)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return ku}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:Tu,creationType:y})}}],(n=[{key:"messageType",get:function(){return ku}}])&&_u(e.prototype,n),r&&_u(e,r),t}();function Pu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var xu="UaEquityMarketTime",Uu=V(["Time"]);function Au(t){t.creationType===y&&mo(this,t,"Time",no.convertCSharpTicksToDate)}var Cu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Au.call(this,e):this.Time=c()}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return xu}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:Uu,creationType:y})}}],(n=[{key:"messageType",get:function(){return xu}}])&&Pu(e.prototype,n),r&&Pu(e,r),t}();function Du(t){return Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(t)}function Iu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qu(t,e){return qu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qu(t,e)}function Bu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lu(t);if(e){var o=Lu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mu(this,n)}}function Mu(t,e){if(e&&("object"===Du(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nu(t)}function Nu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lu(t){return Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Lu(t)}var zu="UaEquityTodayInfo",Fu=ke.TodayInfo,Hu=V(["Close","High","Low","Open","Symbol","Time","Type","Volume"]);function Zu(t){t.creationType===y&&(vo(this,t,"Close"),vo(this,t,"High"),vo(this,t,"Low"),vo(this,t,"Open"),mo(this,t,"Volume",nu))}var Vu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qu(t,e)}(i,t);var e,n,r,o=Bu(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Zu.call(Nu(e),t),Mu(e)):(e.Close=0,e.High=0,e.Low=0,e.Open=0,e.Volume=0,e)}return e=i,r=[{key:"messageType",get:function(){return zu}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Hu,creationType:y})}}],(n=[{key:"Type",get:function(){return Fu}},{key:"messageType",get:function(){return zu}}])&&Iu(e.prototype,n),r&&Iu(e,r),i}(wc);function Wu(t){return Wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(t)}function Gu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yu(t,e){return Yu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Yu(t,e)}function Ku(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xu(t);if(e){var o=Xu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qu(this,n)}}function Qu(t,e){if(e&&("object"===Wu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ju(t)}function Ju(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xu(t){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xu(t)}var $u="UaEquityQuote",ta=ke.Quote,ea=V(["Price","Shares","Symbol","Time","Type","UpdateReason"]);function na(t){t.creationType===y&&(vo(this,t,"Price"),vo(this,t,"Shares"),go(this,t,"UpdateReason","UaEquityQuoteUpdateReason"))}var ra=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yu(t,e)}(i,t);var e,n,r,o=Ku(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(na.call(Ju(e),t),Qu(e)):(e.UpdateReason=Ge.getDefault(),e.Price=0,e.Shares=0,e)}return e=i,r=[{key:"messageType",get:function(){return $u}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:ea,creationType:y})}}],(n=[{key:"Type",get:function(){return ta}},{key:"messageType",get:function(){return $u}}])&&Gu(e.prototype,n),r&&Gu(e,r),i}(wc),oa=function(t,e){var n=Math.pow(10,e),r=t*n;return Math.round(r)/n},ia=function(t,e){if(void 0===t)throw new Error("The first parameter should not be undefined");if(void 0===e)throw new Error("The second parameter should not be undefined");if(!(t instanceof Object))throw new Error('Type of the first parameter should be "Object"');if(!(e instanceof Object))throw new Error('Type of the second parameter should be "Object"')},ca=function(t,e){return t===e?0:t>e?1:-1},ua=function(t,e){ia(t,e);var n=ca(oa(t.Price,2),oa(e.Price,2));return 0===n&&(n=ca(e.Shares,t.Shares)),0===n?t.Mmid.localeCompare(e.Mmid):n},aa=function(t,e){ia(t,e);var n=ca(oa(e.Price,2),oa(t.Price,2));return 0===n&&(n=ca(e.Shares,t.Shares)),0===n?t.Mmid.localeCompare(e.Mmid):n};n(2707);function sa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var fa=F(),la=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.collection=[],!(e instanceof Array))throw new Error("Type of the first parameter should be Array");if(!(n instanceof Function))throw new Error("Type of the second parameter should be Function");fa(this).comparison=n,this.collection=b(e),this.collection.sort(n)}var e,n,r;return e=t,(n=[{key:"length",get:function(){return this.collection.length}},{key:"add",value:function(t){for(var e=u,n=0,r=0;r<this.collection.length;r++)if((n=fa(this).comparison(this.collection[r],t))>=0){e=r;break}e===u?this.collection.push(t):0!==n&&this.collection.splice(e,0,t)}},{key:"remove",value:function(t){return h(this.collection,t)}},{key:"removeWhere",value:function(t){!function(t,e){for(var n=[],r=[],o=0;o<t.length;o++){var i=t[o];e(i)&&(n.push(i),r.push(o))}if(0!==r.length)for(var c=r.length-1;c!==u;)t.splice(r[c],1),c-=1}(this.collection,t)}},{key:"clear",value:function(){v(this.collection)}}])&&sa(e.prototype,n),r&&sa(e,r),t}();function ya(t){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(t)}function pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ha(t,e){return ha=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ha(t,e)}function da(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ma(t);if(e){var o=ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ba(this,n)}}function ba(t,e){if(e&&("object"===ya(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return va(t)}function va(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ma(t){return ma=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ma(t)}var ga="UaEquityLevelData",wa=ke.LevelData,Oa=V(["Level","LevelDataSide","Price","Shares","Symbol","Time","Type"]);function Sa(t){t.creationType===y&&(vo(this,t,"Price"),go(this,t,"LevelDataSide","UaEquityLevelDataSide"),vo(this,t,"Shares"),go(this,t,"Level","UaEquityLevel"))}var Ea=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ha(t,e)}(i,t);var e,n,r,o=da(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Sa.call(va(e),t),ba(e)):(e.Price=0,e.LevelDataSide=Ae.getDefault(),e.Shares=0,e.Level=Le.getDefault(),e)}return e=i,r=[{key:"messageType",get:function(){return ga}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Oa,creationType:y})}}],(n=[{key:"Type",get:function(){return wa}},{key:"messageType",get:function(){return ga}}])&&pa(e.prototype,n),r&&pa(e,r),i}(wc);function _a(t){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(t)}function ka(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ta(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ta(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function Ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ra(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ja(t,e){return ja=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ja(t,e)}function Pa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Aa(t);if(e){var o=Aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(t,e){if(e&&("object"===_a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ua(t)}function Ua(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aa(t){return Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Aa(t)}var Ca="UaEquityOrderBookCache",Da=ke.OrderBookCache,Ia=V(["AskBox","BidBox","Symbol","Time","Type"]),qa=F();function Ba(t){t.creationType===y&&(Oo(this,t,"AskBox",Ea),Oo(this,t,"BidBox",Ea))}function Ma(t){return t=Ae.getValue(t),Ae.Ask===t?qa(this).askOrders:qa(this).bidOrders}var Na=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ja(t,e)}(i,t);var e,n,r,o=Pa(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),qa(Ua(e)).askOrders=new la([],ua),qa(Ua(e)).bidOrders=new la([],aa),t?(Ba.call(Ua(e),t),xa(e)):(e.AskBox=qa(Ua(e)).askOrders.collection,e.BidBox=qa(Ua(e)).bidOrders.collection,e)}return e=i,n=[{key:"Type",get:function(){return Da}},{key:"AskBox",get:function(){return b(qa(this).askOrders.collection)},set:function(t){qa(this).askOrders=new la(t,ua)}},{key:"BidBox",get:function(){return b(qa(this).bidOrders.collection)},set:function(t){qa(this).bidOrders=new la(t,aa)}},{key:"updateLevelData",value:function(t){if(t instanceof Ea&&this.Symbol===t.Symbol&&!(t.Price<=0)){var e,n,r=Ma.call(this,t.LevelDataSide);if(0===t.Shares)r.removeWhere((function(e){return e.Price===t.Price}));else{t.Price=oa(t.Price,2);var o=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return u}(r.collection,(function(e){return n=t,e.Price===n.Price;var n}));o!==u?void 0!==(e=r.collection)[n=o]&&e.splice(n,1):r.add(t)}}}},{key:"updateAllLevelData",value:function(t){if(t instanceof Array){var e,n=ka(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;void 0!==r&&this.updateLevelData(r)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"getBestAskPrice",value:function(){return qa(this).askOrders.collection[0]}},{key:"getBestBidPrice",value:function(){return qa(this).bidOrders.collection[0]}},{key:"truncateAskBox",value:function(t){qa(this).askOrders.removeWhere((function(e){return e.Price<t}))}},{key:"truncateBidBox",value:function(t){qa(this).bidOrders.removeWhere((function(e){return e.Price>t}))}},{key:"resetCache",value:function(t){if(!(t instanceof i))throw new Error('Type of parameter should be "UaEquityOrderBookCache"');this.AskBox=t.AskBox,this.BidBox=t.BidBox}},{key:"clear",value:function(){qa(this).askOrders.clear(),qa(this).bidOrders.clear()}},{key:"toJSON",value:function(){return function(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var c=i[o];H(t,c)}return t}(this,{AskBox:this.AskBox,BidBox:this.BidBox})}},{key:"messageType",get:function(){return Ca}}],r=[{key:"messageType",get:function(){return Ca}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Ia,creationType:y})}}],n&&Ra(e.prototype,n),r&&Ra(e,r),i}(wc);function La(t){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(t)}function za(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fa(t,e){return Fa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fa(t,e)}function Ha(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var o=Wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Za(this,n)}}function Za(t,e){if(e&&("object"===La(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Va(t)}function Va(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wa(t){return Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wa(t)}var Ga="UaEquityGeneralSymbolInfo",Ya=ke.GeneralSymbolInfo,Ka=V(["CompanyName","ExpirationDate","ISIN","Symbol","Time","TradingStatus","Type"]);function Qa(t){t.creationType===y&&(vo(this,t,"CompanyName"),vo(this,t,"ISIN"),mo(this,t,"Time",no.convertCSharpTicksToDate),go(this,t,"TradingStatus","UaEquitySymbolTradingStatus"))}var Ja=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fa(t,e)}(u,t);var e,n,r,o=Ha(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=o.call(this,t),t?(Qa.call(Va(e),t),Za(e)):(e.CompanyName=i,e.ExpirationDate=c(),e.ISIN=i,e.TradingStatus=Kr.getDefault(),e)}return e=u,r=[{key:"messageType",get:function(){return Ga}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:Ka,creationType:y})}}],(n=[{key:"Type",get:function(){return Ya}},{key:"messageType",get:function(){return Ga}}])&&za(e.prototype,n),r&&za(e,r),u}(wc);function Xa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var $a="UaEquityMarketCommission",ts=V(["CommisionType","Rate"]);function es(t){t.creationType===y&&(go(this,t,"CommisionType","UaEquityCommissionType"),vo(this,t,"Rate"))}var ns=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?es.call(this,e):(this.CommisionType=tn.getDefault(),this.Rate=0)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return $a}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:ts,creationType:y})}}],(n=[{key:"messageType",get:function(){return $a}}])&&Xa(e.prototype,n),r&&Xa(e,r),t}();function rs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var os="UaEquityTradingStatistic",is=V(["AcceptedSharesCount","Balance","Close","ClosePendBp","Commissions","ExecutedSharesAtDay","ExecutedTicketsAtDay","MonthlyClose","Open","OpenPrint","OpenShares","PendingTickets","SharesAtDay","UsedBp"]);function cs(t){t.creationType===y&&(vo(this,t,"PendingTickets"),vo(this,t,"ExecutedTicketsAtDay"),vo(this,t,"ExecutedSharesAtDay"),vo(this,t,"Open"),vo(this,t,"OpenPrint"),vo(this,t,"Close"),vo(this,t,"MonthlyClose"),vo(this,t,"UsedBp"),vo(this,t,"SharesAtDay"),vo(this,t,"OpenShares"),vo(this,t,"AcceptedSharesCount"),vo(this,t,"ClosePendBp"),vo(this,t,"Balance"),vo(this,t,"Commissions"))}var us=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?cs.call(this,e):(this.PendingTickets=0,this.ExecutedTicketsAtDay=0,this.ExecutedSharesAtDay=0,this.Open=0,this.OpenPrint=0,this.Close=0,this.MonthlyClose=0,this.UsedBp=0,this.SharesAtDay=0,this.OpenShares=0,this.AcceptedSharesCount=0,this.ClosePendBp=0,this.Balance=0,this.Commissions=0)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return os}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:is,creationType:y})}}],(n=[{key:"messageType",get:function(){return os}}])&&rs(e.prototype,n),r&&rs(e,r),t}();function as(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ss="UaEquityRiskInfo",fs=V(["AllowedStocks","Autoclose","BpMultiplier","CancelPendingsOnPositionClose","EquityAutoclose","MaxBp","MaxBpPerStock","MaxLossPerDay","MaxLossPerMonth","MaxOpenShares","MaxSharesPerDay","MaxSharesPerMonth","MaxSharesPerPosition","MaxSharesPerTicket","MaxTargetProfit","MaxTicketsPerDay","OddLotsAllowed","PostMarketEnabled","PreMarketEnabled","RestrictedStocks","RiskInfoName","UseBpMultiplier"]);function ls(t){t.creationType===y&&(vo(this,t,"RiskInfoName"),vo(this,t,"CancelPendingsOnPositionClose"),vo(this,t,"OddLotsAllowed"),vo(this,t,"MaxTicketsPerDay"),vo(this,t,"MaxSharesPerDay"),vo(this,t,"MaxLossPerDay"),vo(this,t,"MaxSharesPerMonth"),vo(this,t,"MaxLossPerMonth"),vo(this,t,"MaxSharesPerTicket"),vo(this,t,"MaxSharesPerPosition"),vo(this,t,"MaxOpenShares"),vo(this,t,"MaxBp"),vo(this,t,"MaxBpPerStock"),vo(this,t,"UseBpMultiplier"),vo(this,t,"BpMultiplier"),vo(this,t,"Autoclose"),vo(this,t,"EquityAutoclose"),vo(this,t,"MaxTargetProfit"),vo(this,t,"PreMarketEnabled"),vo(this,t,"PostMarketEnabled"),vo(this,t,"AllowedStocks"),vo(this,t,"RestrictedStocks"))}var ys=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?ls.call(this,e):(this.RiskInfoName=i,this.CancelPendingsOnPositionClose=o,this.OddLotsAllowed=o,this.MaxTicketsPerDay=0,this.MaxSharesPerDay=0,this.MaxLossPerDay=0,this.MaxSharesPerMonth=0,this.MaxLossPerMonth=0,this.MaxSharesPerTicket=0,this.MaxSharesPerPosition=0,this.MaxOpenShares=0,this.MaxBp=0,this.MaxBpPerStock=0,this.UseBpMultiplier=o,this.BpMultiplier=0,this.Autoclose=0,this.EquityAutoclose=0,this.MaxTargetProfit=0,this.PreMarketEnabled=o,this.PostMarketEnabled=o,this.AllowedStocks=[],this.RestrictedStocks=[])}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return ss}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:fs,creationType:y})}}],(n=[{key:"messageType",get:function(){return ss}}])&&as(e.prototype,n),r&&as(e,r),t}();function ps(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var hs="UaEquityAccountInfo",ds=V(["AccountName","CommissionRate","ContractType","GroupId","IsDeleted","IsEnabled","IsLocked","IsOvernightsEnabled","RiskInfo","RiskInfoName","TradingStatistic","UseSmartRoute"]);function bs(t){t.creationType===y&&(vo(this,t,"AccountName"),go(this,t,"ContractType","ContractType"),vo(this,t,"RiskInfoName"),vo(this,t,"IsLocked"),vo(this,t,"IsEnabled"),vo(this,t,"IsDeleted"),vo(this,t,"IsOvernightsEnabled"),vo(this,t,"UseSmartRoute"),vo(this,t,"GroupId"),wo(this,t,"CommissionRate",ns),wo(this,t,"TradingStatistic",us),wo(this,t,"RiskInfo",ys))}var vs=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?bs.call(this,e):(this.AccountName=i,this.ContractType=jt.getDefault(),this.RiskInfoName=i,this.IsLocked=o,this.IsEnabled=o,this.IsDeleted=o,this.IsOvernightsEnabled=o,this.UseSmartRoute=o,this.CommissionRate=new ns,this.TradingStatistic=new us,this.RiskInfo=new ys,this.GroupId=0)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return hs}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:ds,creationType:y})}}],(n=[{key:"messageType",get:function(){return hs}}])&&ps(e.prototype,n),r&&ps(e,r),t}();function ms(t){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(t)}function gs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ws(t,e){return ws=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ws(t,e)}function Os(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_s(t);if(e){var o=_s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(t,e){if(e&&("object"===ms(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Es(t)}function Es(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _s(t){return _s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_s(t)}var ks="LinkedUaEquityAccountsResponse",Ts=V(["AccountsInfoes","ConnectionStatuses","RequestId"]);function Rs(t){t.creationType===y&&(wo(this,t,"AccountsInfoes",vs),wo(this,t,"ConnectionStatuses",$i))}var js=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ws(t,e)}(i,t);var e,n,r,o=Os(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Rs.call(Es(e),t),Ss(e)):(e.AccountsInfoes=[],e.ConnectionStatuses=[],e)}return e=i,r=[{key:"messageType",get:function(){return ks}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Ts,creationType:y})}}],(n=[{key:"messageType",get:function(){return ks}}])&&gs(e.prototype,n),r&&gs(e,r),i}(Bi);function Ps(t){t.creationType===y&&(vo(this,t,"AccountName"),mo(this,t,"Time",no.convertCSharpTicksToDate),mo(this,t,"ServerTime",no.convertCSharpTicksToDate),So(this,t,"TimeTicks","Time"),So(this,t,"ServerTimeTicks","ServerTime"))}var xs=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Ps.call(this,e):(this.AccountName=i,this.Time=c(),this.ServerTime=c(),this.TimeTicks=0,this.ServerTimeTicks=0)};function Us(t){return Us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Us(t)}function As(t,e){return As=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},As(t,e)}function Cs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qs(t);if(e){var o=qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ds(this,n)}}function Ds(t,e){if(e&&("object"===Us(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Is(t)}function Is(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qs(t){return qs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qs(t)}function Bs(t){t.creationType===y&&(vo(this,t,"BrokerAccountName"),vo(this,t,"BrokerInfo"),vo(this,t,"TicketNo"),vo(this,t,"TicketNoString"),vo(this,t,"ActivityOrderId"))}var Ms=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&As(t,e)}(n,t);var e=Cs(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(Bs.call(Is(r),t),Ds(r)):(r.BrokerAccountName=i,r.BrokerInfo=i,r.TicketNo=i,r.TicketNoString=i,r.ActivityOrderId=0,r)}return n}(xs);function Ns(t){return Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(t)}function Ls(t,e){return Ls=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ls(t,e)}function zs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zs(t);if(e){var o=Zs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fs(this,n)}}function Fs(t,e){if(e&&("object"===Ns(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hs(t)}function Hs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zs(t){return Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zs(t)}function Vs(t){t.creationType===y&&vo(this,t,"UserName")}var Ws=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ls(t,e)}(n,t);var e=zs(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(Vs.call(Hs(r),t),Fs(r)):(r.UserName=i,r)}return n}(Ms);function Gs(t){return Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(t)}function Ys(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ks(t,e){return Ks=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ks(t,e)}function Qs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$s(t);if(e){var o=$s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Js(this,n)}}function Js(t,e){if(e&&("object"===Gs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xs(t)}function Xs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $s(t){return $s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(t)}var tf="UaEquityOrderStatusInfo",ef=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","CancelReason","CancelTicketNo","CanceledShares","ClientOrderId","Commission","EntryShares","ErrorMessage","ExecPrice","ExecShares","IsHidden","MatchNo","OrderStatus","OrderType","OriginalClientOrderId","Pnl","Price","RejectNo","RejectReason","RejectShares","RemainShares","ServerTime","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function nf(t){t.creationType===y&&(go(this,t,"OrderStatus","UaEquityOrderStatus"),vo(this,t,"ClientOrderId"),vo(this,t,"OriginalClientOrderId"),vo(this,t,"MatchNo"),vo(this,t,"CancelTicketNo"),vo(this,t,"RejectNo"),vo(this,t,"TransactionNo"),vo(this,t,"Symbol"),vo(this,t,"IsHidden"),vo(this,t,"Commission"),vo(this,t,"EntryShares"),vo(this,t,"ExecShares"),vo(this,t,"RemainShares"),vo(this,t,"CanceledShares"),vo(this,t,"RejectShares"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"ExecPrice"),vo(this,t,"Pnl"),vo(this,t,"CancelReason"),vo(this,t,"RejectReason"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"ErrorMessage"))}var rf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ks(t,e)}(u,t);var e,n,r,c=Qs(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(nf.call(Xs(e),t),Js(e)):(e.OrderStatus=ve.getDefault(),e.ClientOrderId=i,e.OriginalClientOrderId=i,e.MatchNo=0,e.CancelTicketNo=0,e.RejectNo=0,e.TransactionNo=i,e.Symbol=i,e.IsHidden=o,e.Commission=0,e.EntryShares=0,e.ExecShares=0,e.RemainShares=0,e.CanceledShares=0,e.RejectShares=0,e.Price=0,e.StopPrice=0,e.ExecPrice=0,e.Pnl=0,e.CancelReason=i,e.RejectReason=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.ErrorMessage=i,e)}return e=u,r=[{key:"messageType",get:function(){return tf}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:ef,creationType:y})}}],(n=[{key:"messageType",get:function(){return tf}}])&&Ys(e.prototype,n),r&&Ys(e,r),u}(Ws);function of(t){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},of(t)}function cf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uf(t,e){return uf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},uf(t,e)}function af(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lf(t);if(e){var o=lf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sf(this,n)}}function sf(t,e){if(e&&("object"===of(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ff(t)}function ff(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lf(t){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},lf(t)}var yf="UaEquityOrderStatusResponse",pf=V(["RequestId","StatusInfo"]);function hf(t){t.creationType===y&&(vo(this,t,"RequestId"),wo(this,t,"StatusInfo",rf))}var df=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uf(t,e)}(i,t);var e,n,r,o=af(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(hf.call(ff(e),t),sf(e)):(e.StatusInfo=new rf,e)}return e=i,r=[{key:"messageType",get:function(){return yf}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:pf,creationType:y})}}],(n=[{key:"messageType",get:function(){return yf}}])&&cf(e.prototype,n),r&&cf(e,r),i}(Bi);function bf(t){return bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(t)}function vf(t,e){return vf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},vf(t,e)}function mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Of(t);if(e){var o=Of(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gf(this,n)}}function gf(t,e){if(e&&("object"===bf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wf(t)}function wf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Of(t){return Of=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Of(t)}function Sf(t){t.creationType===y&&(vo(this,t,"Open"),vo(this,t,"LastPrice"),go(this,t,"OpenUpdateReason","UaEquityOpenUpdateReason"))}var Ef=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vf(t,e)}(n,t);var e=mf(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(Sf.call(wf(r),t),gf(r)):(r.Open=0,r.LastPrice=0,r.OpenUpdateReason=fe.getDefault(),r)}return n}(xs);function _f(t){return _f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(t)}function kf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tf(t,e){return Tf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Tf(t,e)}function Rf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xf(t);if(e){var o=xf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jf(this,n)}}function jf(t,e){if(e&&("object"===_f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pf(t)}function Pf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xf(t){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xf(t)}var Uf="UaEquityPositionOpenUpdate",Af=V(["AccountName","LastPrice","Open","OpenUpdateReason","ServerTime","Symbol","Time"]);function Cf(t){t.creationType===y&&vo(this,t,"Symbol")}var Df=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tf(t,e)}(c,t);var e,n,r,o=Rf(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Cf.call(Pf(e),t),jf(e)):(e.Symbol=i,e)}return e=c,r=[{key:"messageType",get:function(){return Uf}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Af,creationType:y})}}],(n=[{key:"messageType",get:function(){return Uf}}])&&kf(e.prototype,n),r&&kf(e,r),c}(Ef);function If(t){return If="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(t)}function qf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bf(t,e){return Bf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Bf(t,e)}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zf(t);if(e){var o=zf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nf(this,n)}}function Nf(t,e){if(e&&("object"===If(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lf(t)}function Lf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zf(t){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zf(t)}var Ff="UaEquityAlert",Hf=V(["AccountName","Message","ServerTime","Time"]);function Zf(t){t.creationType===y&&vo(this,t,"Message")}var Vf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bf(t,e)}(c,t);var e,n,r,o=Mf(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Zf.call(Lf(e),t),Nf(e)):(e.Message=i,e)}return e=c,r=[{key:"messageType",get:function(){return Ff}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Hf,creationType:y})}}],(n=[{key:"messageType",get:function(){return Ff}}])&&qf(e.prototype,n),r&&qf(e,r),c}(xs);function Wf(t){return Wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(t)}function Gf(t,e){return Gf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Gf(t,e)}function Yf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jf(t);if(e){var o=Jf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kf(this,n)}}function Kf(t,e){if(e&&("object"===Wf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qf(t)}function Qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jf(t){return Jf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Jf(t)}function Xf(t){t.creationType===y&&(vo(this,t,"CancelTicketNo"),vo(this,t,"TransactionNo"))}var $f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gf(t,e)}(n,t);var e=Yf(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(Xf.call(Qf(r),t),Kf(r)):(r.CancelTicketNo=0,r.TransactionNo=i,r)}return n}(Ws);function tl(t){return tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(t)}function el(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nl(t,e){return nl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},nl(t,e)}function rl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cl(t);if(e){var o=cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ol(this,n)}}function ol(t,e){if(e&&("object"===tl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return il(t)}function il(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cl(t){return cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cl(t)}var ul="UaEquityCanceled",al=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","CancelReason","CancelTicketNo","CanceledShares","ClientOrderId","EntryShares","IsHidden","MatchNo","OrderType","OriginalClientOrderId","Price","RemainShares","ServerTime","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function sl(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"OriginalClientOrderId"),vo(this,t,"MatchNo"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"EntryShares"),vo(this,t,"CanceledShares"),vo(this,t,"RemainShares"),vo(this,t,"IsHidden"),vo(this,t,"CancelReason"))}var fl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nl(t,e)}(u,t);var e,n,r,c=rl(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(sl.call(il(e),t),ol(e)):(e.ClientOrderId=i,e.OriginalClientOrderId=i,e.MatchNo=0,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.EntryShares=0,e.CanceledShares=0,e.RemainShares=0,e.IsHidden=o,e.CancelReason=i,e)}return e=u,r=[{key:"messageType",get:function(){return ul}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:al,creationType:y})}}],(n=[{key:"messageType",get:function(){return ul}}])&&el(e.prototype,n),r&&el(e,r),u}($f);function ll(t){return ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(t)}function yl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pl(t,e){return pl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},pl(t,e)}function hl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vl(t);if(e){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dl(this,n)}}function dl(t,e){if(e&&("object"===ll(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bl(t)}function bl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vl(t){return vl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vl(t)}var ml="UaEquityCancelling",gl=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","CancelTicketNo","ClientOrderId","OriginalClientOrderId","ServerTime","TicketNo","TicketNoString","Time","TransactionNo","UserName"]);function wl(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"OriginalClientOrderId"))}var Ol=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pl(t,e)}(c,t);var e,n,r,o=hl(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(wl.call(bl(e),t),dl(e)):(e.ClientOrderId=i,e.OriginalClientOrderId=i,e)}return e=c,r=[{key:"messageType",get:function(){return ml}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:gl,creationType:y})}}],(n=[{key:"messageType",get:function(){return ml}}])&&yl(e.prototype,n),r&&yl(e,r),c}($f);function Sl(t){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(t)}function El(t,e){return El=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},El(t,e)}function _l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rl(t);if(e){var o=Rl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kl(this,n)}}function kl(t,e){if(e&&("object"===Sl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tl(t)}function Tl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rl(t){return Rl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rl(t)}function jl(t){t.creationType===y&&vo(this,t,"ClientOrderId")}var Pl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&El(t,e)}(n,t);var e=_l(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(jl.call(Tl(r),t),kl(r)):(r.ClientOrderId=i,r)}return n}(Ws);function xl(t){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(t)}function Ul(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Al(t,e){return Al=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Al(t,e)}function Cl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ql(t);if(e){var o=ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dl(this,n)}}function Dl(t,e){if(e&&("object"===xl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Il(t)}function Il(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ql(t){return ql=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ql(t)}var Bl="CancelUaEquityOrder",Ml=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","CancelTicketNo","ClientOrderId","OriginalClientOrderId","ServerTime","Symbol","TicketNo","TicketNoString","Time","UserName"]);function Nl(t){t.creationType===y&&(vo(this,t,"CancelTicketNo"),vo(this,t,"OriginalClientOrderId"),vo(this,t,"Symbol"))}var Ll=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Al(t,e)}(c,t);var e,n,r,o=Cl(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Nl.call(Il(e),t),Dl(e)):(e.CancelTicketNo=0,e.OriginalClientOrderId=i,e.Symbol=i,e)}return e=c,r=[{key:"messageType",get:function(){return Bl}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Ml,creationType:y})}}],(n=[{key:"messageType",get:function(){return Bl}}])&&Ul(e.prototype,n),r&&Ul(e,r),c}(Pl);function zl(t){return zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(t)}function Fl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hl(t,e){return Hl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Hl(t,e)}function Zl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gl(t);if(e){var o=Gl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vl(this,n)}}function Vl(t,e){if(e&&("object"===zl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wl(t)}function Wl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gl(t){return Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gl(t)}var Yl="UaEquityCancelReject",Kl=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","CancelTicketNo","ClientOrderId","EntryShares","IsHidden","OrderType","OriginalClientOrderId","Price","RejectReason","ServerTime","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function Ql(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"OriginalClientOrderId"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"EntryShares"),vo(this,t,"IsHidden"),vo(this,t,"RejectReason"))}var Jl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hl(t,e)}(u,t);var e,n,r,c=Zl(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(Ql.call(Wl(e),t),Vl(e)):(e.ClientOrderId=i,e.OriginalClientOrderId=i,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.EntryShares=0,e.IsHidden=o,e.RejectReason=i,e)}return e=u,r=[{key:"messageType",get:function(){return Yl}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:Kl,creationType:y})}}],(n=[{key:"messageType",get:function(){return Yl}}])&&Fl(e.prototype,n),r&&Fl(e,r),u}($f);function Xl(t){return Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(t)}function $l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ty(t,e){return ty=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ty(t,e)}function ey(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=oy(t);if(e){var o=oy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ny(this,n)}}function ny(t,e){if(e&&("object"===Xl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ry(t)}function ry(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oy(t){return oy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},oy(t)}var iy="UaEquityOrderError",cy=V(["AccountName","ClientOrderId","IsHidden","Message","Method","OrderType","Price","ServerTime","Shares","Side","StopPrice","Symbol","TimeInForce","UserName"]);function uy(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"UserName"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"Shares"),vo(this,t,"IsHidden"),vo(this,t,"Message"))}var ay=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ty(t,e)}(u,t);var e,n,r,c=ey(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(uy.call(ry(e),t),ny(e)):(e.ClientOrderId=i,e.UserName=i,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.Shares=0,e.IsHidden=o,e.Message=i,e)}return e=u,r=[{key:"messageType",get:function(){return iy}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:cy,creationType:y})}}],(n=[{key:"messageType",get:function(){return iy}}])&&$l(e.prototype,n),r&&$l(e,r),u}(xs);function sy(t){return sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(t)}function fy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ly(t,e){return ly=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ly(t,e)}function yy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dy(t);if(e){var o=dy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return py(this,n)}}function py(t,e){if(e&&("object"===sy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hy(t)}function hy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dy(t){return dy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dy(t)}var by="NewUaEquityOrder",vy=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","ClientOrderId","IsHidden","OrderType","Price","ServerTime","Shares","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","UserName"]);function my(t){t.creationType===y&&(vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"Shares"),vo(this,t,"IsHidden"))}var gy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ly(t,e)}(u,t);var e,n,r,c=yy(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(my.call(hy(e),t),py(e)):(e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.Shares=0,e.IsHidden=o,e)}return e=u,r=[{key:"messageType",get:function(){return by}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:vy,creationType:y})}}],(n=[{key:"messageType",get:function(){return by}}])&&fy(e.prototype,n),r&&fy(e,r),u}(Pl);function wy(t){return wy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wy(t)}function Oy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sy(t,e){return Sy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Sy(t,e)}function Ey(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ty(t);if(e){var o=Ty(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _y(this,n)}}function _y(t,e){if(e&&("object"===wy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ky(t)}function ky(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ty(t){return Ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ty(t)}var Ry="UaEquityPending",jy=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","ClientOrderId","EntryShares","IsHidden","OrderType","PendShares","Price","ServerTime","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function Py(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"TransactionNo"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"EntryShares"),vo(this,t,"PendShares"),vo(this,t,"IsHidden"))}var xy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sy(t,e)}(u,t);var e,n,r,c=Ey(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(Py.call(ky(e),t),_y(e)):(e.ClientOrderId=i,e.TransactionNo=i,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.EntryShares=0,e.PendShares=0,e.IsHidden=o,e)}return e=u,r=[{key:"messageType",get:function(){return Ry}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:jy,creationType:y})}}],(n=[{key:"messageType",get:function(){return Ry}}])&&Oy(e.prototype,n),r&&Oy(e,r),u}(Ws);function Uy(t){return Uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(t)}function Ay(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cy(t,e){return Cy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Cy(t,e)}function Dy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=By(t);if(e){var o=By(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Iy(this,n)}}function Iy(t,e){if(e&&("object"===Uy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qy(t)}function qy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function By(t){return By=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},By(t)}var My="UaEquityReject",Ny=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","ClientOrderId","EntryShares","OrderType","Price","RejectNo","RejectReason","RejectShares","ServerTime","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function Ly(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"RejectNo"),vo(this,t,"TransactionNo"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"EntryShares"),vo(this,t,"RejectShares"),vo(this,t,"RejectReason"))}var zy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cy(t,e)}(c,t);var e,n,r,o=Dy(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Ly.call(qy(e),t),Iy(e)):(e.ClientOrderId=i,e.RejectNo=0,e.TransactionNo=i,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.EntryShares=0,e.RejectShares=0,e.RejectReason=i,e)}return e=c,r=[{key:"messageType",get:function(){return My}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Ny,creationType:y})}}],(n=[{key:"messageType",get:function(){return My}}])&&Ay(e.prototype,n),r&&Ay(e,r),c}(Ws);function Fy(t){return Fy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fy(t)}function Hy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zy(t,e){return Zy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Zy(t,e)}function Vy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yy(t);if(e){var o=Yy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wy(this,n)}}function Wy(t,e){if(e&&("object"===Fy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Gy(t)}function Gy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yy(t){return Yy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Yy(t)}var Ky="UaEquitySending",Qy=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","ClientOrderId","IsHidden","OrderType","Price","ServerTime","Shares","Side","StopPrice","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function Jy(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"TransactionNo"),vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"Price"),vo(this,t,"StopPrice"),vo(this,t,"Shares"),vo(this,t,"IsHidden"))}var Xy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zy(t,e)}(u,t);var e,n,r,c=Vy(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=c.call(this,t),t?(Jy.call(Gy(e),t),Wy(e)):(e.ClientOrderId=i,e.TransactionNo=i,e.Symbol=i,e.Side=Ht.getDefault(),e.OrderType=Qt.getDefault(),e.TimeInForce=re.getDefault(),e.Price=0,e.StopPrice=0,e.Shares=0,e.IsHidden=o,e)}return e=u,r=[{key:"messageType",get:function(){return Ky}},{key:"createEmpty",value:function(){return new u}},{key:"createByMsgpack",value:function(t){return new u({model:t,keys:Qy,creationType:y})}}],(n=[{key:"messageType",get:function(){return Ky}}])&&Hy(e.prototype,n),r&&Hy(e,r),u}(Ws);function $y(t){return $y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$y(t)}function tp(t,e){return tp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},tp(t,e)}function ep(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=op(t);if(e){var o=op(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return np(this,n)}}function np(t,e){if(e&&("object"===$y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rp(t)}function rp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function op(t){return op=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},op(t)}function ip(t){t.creationType===y&&(vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),vo(this,t,"Shares"),vo(this,t,"Price"),vo(this,t,"Open"),vo(this,t,"OpenPrint"),vo(this,t,"Commission"),vo(this,t,"LastQuotePrice"),vo(this,t,"LastPrintPrice"))}var cp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tp(t,e)}(n,t);var e=ep(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(ip.call(rp(r),t),np(r)):(r.Symbol=i,r.Side=Ht.getDefault(),r.Shares=0,r.Price=0,r.Open=0,r.OpenPrint=0,r.Commission=0,r.LastQuotePrice=0,r.LastPrintPrice=0,r)}return n}(Ms);function up(t){return up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},up(t)}function ap(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sp(t,e){return sp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},sp(t,e)}function fp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pp(t);if(e){var o=pp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){if(e&&("object"===up(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yp(t)}function yp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pp(t){return pp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pp(t)}var hp="UaEquityPosition",dp=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","Close","Commission","LastPrintPrice","LastQuotePrice","Open","OpenPrint","Price","ServerTime","Shares","Side","Symbol","TicketNo","TicketNoString","Time"]);function bp(t){t.creationType===y&&vo(this,t,"Close")}var vp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sp(t,e)}(i,t);var e,n,r,o=fp(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(bp.call(yp(e),t),lp(e)):(e.Close=0,e)}return e=i,r=[{key:"messageType",get:function(){return hp}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:dp,creationType:y})}}],(n=[{key:"messageType",get:function(){return hp}}])&&ap(e.prototype,n),r&&ap(e,r),i}(cp);function mp(t){return mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(t)}function gp(t,e){return gp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},gp(t,e)}function wp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ep(t);if(e){var o=Ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Op(this,n)}}function Op(t,e){if(e&&("object"===mp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sp(t)}function Sp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ep(t){return Ep=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ep(t)}function _p(t){t.creationType===y&&(vo(this,t,"Symbol"),go(this,t,"Side","UaEquityOrderSide"),go(this,t,"OrderType","UaEquityOrderType"),go(this,t,"TimeInForce","UaEquityTimeInForce"),vo(this,t,"EntryPrice"),vo(this,t,"ExecPrice"),vo(this,t,"EntryShares"),vo(this,t,"ExecShares"),vo(this,t,"RemainShares"),vo(this,t,"Commission"))}var kp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gp(t,e)}(n,t);var e=wp(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t),t?(_p.call(Sp(r),t),Op(r)):(r.Symbol=i,r.Side=Ht.getDefault(),r.OrderType=Qt.getDefault(),r.TimeInForce=re.getDefault(),r.EntryPrice=0,r.ExecPrice=0,r.EntryShares=0,r.ExecShares=0,r.RemainShares=0,r.Commission=0,r)}return n}(Ws);function Tp(t){return Tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tp(t)}function Rp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jp(t,e){return jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},jp(t,e)}function Pp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ap(t);if(e){var o=Ap(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xp(this,n)}}function xp(t,e){if(e&&("object"===Tp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Up(t)}function Up(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ap(t){return Ap=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ap(t)}var Cp="UaEquityTrade",Dp=V(["AccountName","ActivityOrderId","BrokerAccountName","BrokerInfo","ClientOrderId","Commission","EntryPrice","EntryShares","ExecPrice","ExecShares","MatchNo","OrderType","Pnl","RemainShares","ServerTime","Side","Symbol","TicketNo","TicketNoString","Time","TimeInForce","TransactionNo","UserName"]);function Ip(t){t.creationType===y&&(vo(this,t,"ClientOrderId"),vo(this,t,"TransactionNo"),vo(this,t,"MatchNo"),vo(this,t,"Pnl"))}var qp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jp(t,e)}(c,t);var e,n,r,o=Pp(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Ip.call(Up(e),t),xp(e)):(e.ClientOrderId=i,e.TransactionNo=i,e.MatchNo=0,e.Pnl=0,e)}return e=c,r=[{key:"messageType",get:function(){return Cp}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Dp,creationType:y})}}],(n=[{key:"messageType",get:function(){return Cp}}])&&Rp(e.prototype,n),r&&Rp(e,r),c}(kp);function Bp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Mp="UaEquityExecutionHistory",Np=V(["Alerts","Canceleds","Cancellings","CancelOrders","CancelRejects","CurrentPositionStates","OrderErrors","Orders","Pendings","PositionUpdates","Rejects","Sendings","Trades"]);function Lp(t){t.creationType===y&&(Oo(this,t,"Alerts",Vf),Oo(this,t,"Canceleds",fl),Oo(this,t,"Cancellings",Ol),Oo(this,t,"CancelOrders",Ll),Oo(this,t,"CancelRejects",Jl),Oo(this,t,"OrderErrors",ay),Oo(this,t,"Orders",gy),Oo(this,t,"Pendings",xy),Oo(this,t,"Rejects",zy),Oo(this,t,"Sendings",Xy),Oo(this,t,"PositionUpdates",vp),Oo(this,t,"CurrentPositionStates",vp),Oo(this,t,"Trades",qp))}var zp=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Lp.call(this,e):(this.Alerts=[],this.Canceleds=[],this.Cancellings=[],this.CancelOrders=[],this.CancelRejects=[],this.OrderErrors=[],this.Orders=[],this.Pendings=[],this.Rejects=[],this.Sendings=[],this.Trades=[],this.PositionUpdates=[],this.CurrentPositionStates=[])}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Mp}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:Np,creationType:y})}}],(n=[{key:"messageType",get:function(){return Mp}}])&&Bp(e.prototype,n),r&&Bp(e,r),t}();function Fp(t){return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(t)}function Hp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zp(t,e){return Zp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Zp(t,e)}function Vp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yp(t);if(e){var o=Yp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wp(this,n)}}function Wp(t,e){if(e&&("object"===Fp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Gp(t)}function Gp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yp(t){return Yp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Yp(t)}var Kp="UaEquityExecutionHistoryResponse",Qp=V(["ExecutionHistory","ExecutionHistoryRequestType","RequestId"]);function Jp(t){t.creationType===y&&(wo(this,t,"ExecutionHistory",zp),go(this,t,"ExecutionHistoryRequestType","UaEquityExecutionHistoryRequestType"))}var Xp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zp(t,e)}(i,t);var e,n,r,o=Vp(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Jp.call(Gp(e),t),Wp(e)):(e.ExecutionHistory=new zp,e.ExecutionHistoryRequestType=Zn.getDefault(),e)}return e=i,r=[{key:"messageType",get:function(){return Kp}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Qp,creationType:y})}}],(n=[{key:"messageType",get:function(){return Kp}}])&&Hp(e.prototype,n),r&&Hp(e,r),i}(Bi);function $p(t){return $p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$p(t)}function th(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eh(t,e){return eh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},eh(t,e)}function nh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=oh(t);if(e){var o=oh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rh(this,n)}}function rh(t,e){if(e&&("object"===$p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function oh(t){return oh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},oh(t)}var ih="UaEquityTimeRequest",ch=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eh(t,e)}(i,t);var e,n,r,o=nh(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,r=[{key:"messageType",get:function(){return ih}}],(n=[{key:"messageType",get:function(){return ih}}])&&th(e.prototype,n),r&&th(e,r),i}(Bi);function uh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ah="UaEquityMarketDataRequest",sh=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.SubscriptionAction=Jn.getDefault(),this.DataType=ir.getDefault(),this.Symbol=i}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return ah}}],(n=[{key:"messageType",get:function(){return ah}}])&&uh(e.prototype,n),r&&uh(e,r),t}();function fh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var lh="UaEquityOrderStatusRequest",yh=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.RequestId=0,this.AccountName=i,this.ClientOrderId=i,this.TicketNo=0}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return lh}}],(n=[{key:"messageType",get:function(){return lh}}])&&fh(e.prototype,n),r&&fh(e,r),t}();function ph(t){return ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(t)}function hh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bh(t,e){return bh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},bh(t,e)}function vh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gh(t);if(e){var o=gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mh(this,n)}}function mh(t,e){if(e&&("object"===ph(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function gh(t){return gh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gh(t)}var wh="LinkedUaEquityAccountsRequest",Oh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bh(t,e)}(i,t);var e,n,r,o=vh(i);function i(){return hh(this,i),o.apply(this,arguments)}return e=i,r=[{key:"messageType",get:function(){return wh}}],(n=[{key:"messageType",get:function(){return wh}}])&&dh(e.prototype,n),r&&dh(e,r),i}(Bi);function Sh(t){return Sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sh(t)}function Eh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _h(t,e){return _h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_h(t,e)}function kh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rh(t);if(e){var o=Rh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Th(this,n)}}function Th(t,e){if(e&&("object"===Sh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Rh(t){return Rh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rh(t)}var jh="UserCredentials",Ph=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_h(t,e)}(c,t);var e,n,r,o=kh(c);function c(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(n=o.call(this)).UserName=i,n.Password=i,void 0!==t&&void 0!==e&&(n.UserName=t,n.Password=e),n}return e=c,r=[{key:"messageType",get:function(){return jh}}],(n=[{key:"messageType",get:function(){return jh}}])&&Eh(e.prototype,n),r&&Eh(e,r),c}(uo);function xh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Uh="AuthenticationRequest",Ah=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.UserCredentials=new Ph(i,i),this.DeviceType=Ot.getDefault()}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Uh}}],(n=[{key:"messageType",get:function(){return Uh}}])&&xh(e.prototype,n),r&&xh(e,r),t}();function Ch(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Dh="UaEquityExecutionHistoryRequest",Ih=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.RequestId=0,this.AccountNames=[],this.ExecutionHistoryRequestType=Zn.getDefault()}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Dh}}],(n=[{key:"messageType",get:function(){return Dh}}])&&Ch(e.prototype,n),r&&Ch(e,r),t}();function qh(t){return qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qh(t)}function Bh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mh(t,e){return Mh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Mh(t,e)}function Nh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fh(t);if(e){var o=Fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lh(this,n)}}function Lh(t,e){if(e&&("object"===qh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zh(t)}function zh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fh(t){return Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Fh(t)}var Hh=V(["ServerChannel","State"]),Zh="ServerStateMessage";function Vh(t){t.creationType===y&&(go(this,t,"ServerChannel","DataChannelType"),go(this,t,"State","ServerState"))}var Wh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mh(t,e)}(i,t);var e,n,r,o=Nh(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(Vh.call(zh(e),t),Lh(e)):(e.ServerChannel=ct.getDefault(),e.State=M.getDefault(),e)}return e=i,r=[{key:"messageType",get:function(){return Zh}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:Hh,creationType:y})}}],(n=[{key:"messageType",get:function(){return Zh}}])&&Bh(e.prototype,n),r&&Bh(e,r),i}(uo);function Gh(t){return Gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gh(t)}function Yh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kh(t,e){return Kh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Kh(t,e)}function Qh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$h(t);if(e){var o=$h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jh(this,n)}}function Jh(t,e){if(e&&("object"===Gh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xh(t)}function Xh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $h(t){return $h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$h(t)}var td="UaEquityAccountInfoResponse",ed=V(["AccountInfo","ConnectionStatus","RequestId"]);function nd(t){t.creationType===y&&(wo(this,t,"AccountInfo",vs),wo(this,t,"ConnectionStatus",$i))}var rd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kh(t,e)}(i,t);var e,n,r,o=Qh(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this,t),t?(nd.call(Xh(e),t),Jh(e)):(e.AccountInfo=new vs,e.ConnectionStatus=new $i,e)}return e=i,r=[{key:"messageType",get:function(){return td}},{key:"createEmpty",value:function(){return new i}},{key:"createByMsgpack",value:function(t){return new i({model:t,keys:ed,creationType:y})}}],(n=[{key:"messageType",get:function(){return td}}])&&Yh(e.prototype,n),r&&Yh(e,r),i}(Bi);function od(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var id="UaEquityAccountOpenUpdate",cd=V(["AccountName","Open","OpenUpdateReason"]);function ud(t){t.creationType===y&&(vo(this,t,"AccountName"),vo(this,t,"Open"),go(this,t,"OpenUpdateReason","UaEquityOpenUpdateReason"))}var ad=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?ud.call(this,e):(this.AccountName=i,this.Open=0,this.OpenUpdateReason=fe.getDefault())}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return id}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:cd,creationType:y})}}],(n=[{key:"messageType",get:function(){return id}}])&&od(e.prototype,n),r&&od(e,r),t}();function sd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var fd="UaEquityAccountInfoUpdate",ld=V(["AccountInfo","AccountInfoUpdateType"]);function yd(t){t.creationType===y&&(wo(this,t,"AccountInfo",vs),go(this,t,"AccountInfoUpdateType","UaEquityAccountInfoUpdateType"))}var pd=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?yd.call(this,e):(this.AccountInfoUpdateType=sn.getDefault(),this.AccountInfo=new vs)}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return fd}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:ld,creationType:y})}}],(n=[{key:"messageType",get:function(){return fd}}])&&sd(e.prototype,n),r&&sd(e,r),t}();function hd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var dd="HeartBeat",bd=V(["Timestamp"]);function vd(t){t.creationType===y&&vo(this,t,"Timestamp")}var md=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?vd.call(this,e):this.Timestamp=0}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return dd}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:bd,creationType:y})}}],(n=[{key:"messageType",get:function(){return dd}}])&&hd(e.prototype,n),r&&hd(e,r),t}();function gd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var wd="SystemPingMessage",Od=V(["None"]);function Sd(t){t.creationType===y&&vo(this,t,"None")}var Ed=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?Sd.call(this,e):this.None=o}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return wd}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:Od,creationType:y})}}],(n=[{key:"messageType",get:function(){return wd}}])&&gd(e.prototype,n),r&&gd(e,r),t}();function _d(t){return _d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_d(t)}function kd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Td(t,e){return Td=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Td(t,e)}function Rd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xd(t);if(e){var o=xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jd(this,n)}}function jd(t,e){if(e&&("object"===_d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pd(t)}function Pd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xd(t){return xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xd(t)}var Ud="PasswordChangeRequest",Ad=V(["NewPassword","RequestId","UserName"]);function Cd(t){t.creationType===y&&(vo(this,t,"NewPassword"),vo(this,t,"UserName"))}var Dd,Id,qd,Bd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Td(t,e)}(c,t);var e,n,r,o=Rd(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this,t),t?(Cd.call(Pd(e),t),jd(e)):(e.UserName=i,e.NewPassword=i,e)}return e=c,r=[{key:"messageType",get:function(){return Ud}},{key:"createEmpty",value:function(){return new c}},{key:"createByMsgpack",value:function(t){return new c({model:t,keys:Ad,creationType:y})}}],(n=[{key:"messageType",get:function(){return Ud}}])&&kd(e.prototype,n),r&&kd(e,r),c}(Bi),Md={HandShake:dc,HandShakeResponse:mc,AuthenticationSuccessResponse:vi,AuthenticationFailedResponse:Si,UaEquityAccountInfoResponse:rd,ServerStateMessage:Wh,SystemNotification:Ci,RequestResult:Yi,UaEquityExecutorAccountConnectionStatus:$i,UaEquityHistoricalDataRequest:eu,UaEquityHistoricalDataResponse:Eu,UaEquityPosition:vp,UaEquityPending:xy,UaEquitySending:Xy,UaEquityTrade:qp,UaEquityCancelling:Ol,UaEquityCanceled:fl,UaEquityReject:zy,UaEquityCancelReject:Jl,UaEquityOrderError:ay,UaEquityAlert:Vf,UaEquityExecutionHistoryResponse:Xp,UaEquityPositionOpenUpdate:Df,UaEquityOrderStatusResponse:df,LinkedUaEquityAccountsResponse:js,UaEquityAccountOpenUpdate:ad,UaEquityAccountInfoUpdate:pd,UaEquityLevelData:Ea,UaEquityOrderBookCache:Na,UaEquityPrint:Ac,UaEquityQuote:ra,UaEquityTodayInfo:Vu,UaEquityMarketTime:Cu,UaEquityMarketDataRequestReject:ju,UaEquityTimeResponse:fc,UaEquityExecutionHistoryRequest:Ih,AuthenticationRequest:Ah,NewUaEquityOrder:gy,CancelUaEquityOrder:Ll,LinkedUaEquityAccountsRequest:Oh,UaEquityOrderStatusRequest:yh,UaEquityMarketDataRequest:sh,UaEquityTimeRequest:ch,UaEquityBar:uu,UserInfo:yi,HeartBeat:md,SystemPingMessage:Ed,PasswordChangeRequest:Bd,UaEquityGeneralSymbolInfo:Ja},Nd=function(t,e,n){var r;if(void 0===e.messageType)r=new Error("Request is not message for sending request, use message from IntenseLabUaEquityMarket.Messages.");else{if(e.messageType===n.messageType)return!0;r=new Error("Type of request is ".concat(e.messageType,", but this type of request must be ").concat(n.messageType,"."))}return ro(t,r),!1},Ld="LevelData",zd=new TextDecoder("utf-8"),Fd=function(t,e){for(var n=function(t){return"string"===t.toLowerCase()?function(){return""}:void 0!==Md[t]?function(){return new Md[t]}:function(){return Object.create(null)}}(t),r=new Array(e),o=0;o<e;o++)r[o]=n();return r},Hd=function(t,e){if(t.messageType===Na.messageType){t.Symbol=e.Symbol,t.Time=no.convertStringToDate(e.Time);var n=Fd(Ld,e.AskBox.length),r=Fd(Ld,e.BidBox.length);return Zd(n,e.AskBox),Zd(r,e.BidBox),t.AskBox=n,t.BidBox=r,!0}return!1},Zd=function t(e,n){if(!Hd(e,n))for(var r=Object.keys(e),o=0;o<r.length;o++){var c=r[o],u=e[c];"string"==typeof e[c]?e[c]=null===n[c]?i:n[c]:u instanceof Array?null===n[c]&&(e[c]=[]):void 0===n[c]||null===n[c]?e[c]=n[c]:u instanceof j?e[c]=Qr[u.type].getValueByKey(n[c]):u instanceof Date?e[c]=no.convertStringToDate(n[c]):u instanceof Object?t(e[c],n[c]):e[c]=n[c]}},Vd=function t(e,n){for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],c=n[i];void 0===n[i]||null===n[i]?e[i]=null:c instanceof j?e[i]=c.key:c instanceof Date?e[i]=no.convertDateToString(c):c instanceof Array?(e[i]=[],t(e[i],n[i])):c instanceof Object?(e[i]={},t(e[i],n[i])):e[i]=n[i]}},Wd=function(){return X.JsonPacketSerializer},Gd=function(t,e){var n=new t,r=zd.decode(e);return Zd(n,JSON.parse(r)),n},Yd=function(t){var e={};Vd(e,t);for(var n=JSON.stringify(e),r=new Uint8Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r},Kd=4294967295;function Qd(t,e,n){var r=Math.floor(n/4294967296),o=n;t.setUint32(e,r),t.setUint32(e+4,o)}function Jd(t,e){return t.getBigInt64(e)}var Xd=("undefined"==typeof process||"never"!==(null===(Dd=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===Dd?void 0:Dd.TEXT_ENCODING))&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function $d(t){for(var e=t.length,n=0,r=0;r<e;){var o=t.charCodeAt(r++);if(0!=(4294967168&o))if(0==(4294965248&o))n+=2;else{if(o>=55296&&o<=56319&&r<e){var i=t.charCodeAt(r);56320==(64512&i)&&(++r,o=((1023&o)<<10)+(1023&i)+65536)}n+=0==(4294901760&o)?3:4}else n++}return n}var tb=Xd?new TextEncoder:void 0,eb=Xd?"undefined"!=typeof process&&"force"!==(null===(Id=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===Id?void 0:Id.TEXT_ENCODING)?200:0:Kd;var nb=(null==tb?void 0:tb.encodeInto)?function(t,e,n){tb.encodeInto(t,e.subarray(n))}:function(t,e,n){e.set(tb.encode(t),n)};function rb(t,e,n){for(var r=e,o=r+n,i=[],c="";r<o;){var u=t[r++];if(0==(128&u))i.push(u);else if(192==(224&u)){var a=63&t[r++];i.push((31&u)<<6|a)}else if(224==(240&u)){a=63&t[r++];var s=63&t[r++];i.push((31&u)<<12|a<<6|s)}else if(240==(248&u)){var f=(7&u)<<18|(a=63&t[r++])<<12|(s=63&t[r++])<<6|63&t[r++];f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|1023&f),i.push(f)}else i.push(u);i.length>=4096&&(c+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(c+=String.fromCharCode.apply(String,i)),c}var ob=Xd?new TextDecoder:null,ib=Xd?"undefined"!=typeof process&&"force"!==(null===(qd=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===qd?void 0:qd.TEXT_DECODER)?200:0:Kd;var cb,ub=function(t,e){this.type=t,this.data=e},ab=(cb=function(t,e){return cb=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])},cb(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}cb(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),sb=function(t){function e(n){var r=t.call(this,n)||this,o=Object.create(e.prototype);return Object.setPrototypeOf(r,o),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:e.name}),r}return ab(e,t),e}(Error);var fb={type:-1,encode:function(t){var e,n,r,o;return t instanceof Date?function(t){var e,n=t.sec,r=t.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var o=new Uint8Array(4);return(e=new DataView(o.buffer)).setUint32(0,n),o}var i=n/4294967296,c=4294967295&n;return o=new Uint8Array(8),(e=new DataView(o.buffer)).setUint32(0,r<<2|3&i),e.setUint32(4,c),o}return o=new Uint8Array(12),(e=new DataView(o.buffer)).setUint32(0,r),Qd(e,4,n),o}((e=t.getTime(),n=Math.floor(e/1e3),r=1e6*(e-1e3*n),o=Math.floor(r/1e9),{sec:n+o,nsec:r-1e9*o})):null},decode:function(t){var e=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:return{sec:e.getUint32(0),nsec:0};case 8:var n=e.getUint32(0);return{sec:4294967296*(3&n)+e.getUint32(4),nsec:n>>>2};case 12:return{sec:Jd(e,4),nsec:e.getUint32(0)};default:throw new sb("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}(t);return new Date(1e3*e.sec+e.nsec/1e6)}},lb=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(fb)}return t.prototype.register=function(t){var e=t.type,n=t.encode,r=t.decode;if(e>=0)this.encoders[e]=n,this.decoders[e]=r;else{var o=1+e;this.builtInEncoders[o]=n,this.builtInDecoders[o]=r}},t.prototype.tryToEncode=function(t,e){for(var n=0;n<this.builtInEncoders.length;n++){if(null!=(r=this.builtInEncoders[n]))if(null!=(o=r(t,e)))return new ub(-1-n,o)}for(n=0;n<this.encoders.length;n++){var r,o;if(null!=(r=this.encoders[n]))if(null!=(o=r(t,e)))return new ub(n,o)}return t instanceof ub?t:null},t.prototype.decode=function(t,e,n){var r=e<0?this.builtInDecoders[-1-e]:this.decoders[e];return r?r(t,e,n):new ub(e,t)},t.defaultCodec=new t,t}();function yb(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer?new Uint8Array(t):Uint8Array.from(t)}var pb=function(){function t(t,e,n,r,o,i,c,u){void 0===t&&(t=lb.defaultCodec),void 0===e&&(e=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===c&&(c=!1),void 0===u&&(u=!1),this.extensionCodec=t,this.context=e,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=o,this.forceFloat32=i,this.ignoreUndefined=c,this.forceIntegerToFloat=u,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return t.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},t.prototype.reinitializeState=function(){this.pos=0},t.prototype.encode=function(t){return this.reinitializeState(),this.doEncode(t,1),this.getUint8Array()},t.prototype.doEncode=function(t,e){if(e>this.maxDepth)throw new Error("Too deep objects in depth ".concat(e));null==t?this.encodeNil():"boolean"==typeof t?this.encodeBoolean(t):"number"==typeof t?this.encodeNumber(t):"string"==typeof t?this.encodeString(t):this.encodeObject(t,e)},t.prototype.ensureBufferSizeToWrite=function(t){var e=this.pos+t;this.view.byteLength<e&&this.resizeBuffer(2*e)},t.prototype.resizeBuffer=function(t){var e=new ArrayBuffer(t),n=new Uint8Array(e),r=new DataView(e);n.set(this.bytes),this.view=r,this.bytes=n},t.prototype.encodeNil=function(){this.writeU8(192)},t.prototype.encodeBoolean=function(t){!1===t?this.writeU8(194):this.writeU8(195)},t.prototype.encodeNumber=function(t){Number.isSafeInteger(t)&&!this.forceIntegerToFloat?t>=0?t<128?this.writeU8(t):t<256?(this.writeU8(204),this.writeU8(t)):t<65536?(this.writeU8(205),this.writeU16(t)):t<4294967296?(this.writeU8(206),this.writeU32(t)):(this.writeU8(207),this.writeU64(t)):t>=-32?this.writeU8(224|t+32):t>=-128?(this.writeU8(208),this.writeI8(t)):t>=-32768?(this.writeU8(209),this.writeI16(t)):t>=-2147483648?(this.writeU8(210),this.writeI32(t)):(this.writeU8(211),this.writeI64(t)):this.forceFloat32?(this.writeU8(202),this.writeF32(t)):(this.writeU8(203),this.writeF64(t))},t.prototype.writeStringHeader=function(t){if(t<32)this.writeU8(160+t);else if(t<256)this.writeU8(217),this.writeU8(t);else if(t<65536)this.writeU8(218),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too long string: ".concat(t," bytes in UTF-8"));this.writeU8(219),this.writeU32(t)}},t.prototype.encodeString=function(t){if(t.length>eb){var e=$d(t);this.ensureBufferSizeToWrite(5+e),this.writeStringHeader(e),nb(t,this.bytes,this.pos),this.pos+=e}else{e=$d(t);this.ensureBufferSizeToWrite(5+e),this.writeStringHeader(e),function(t,e,n){for(var r=t.length,o=n,i=0;i<r;){var c=t.charCodeAt(i++);if(0!=(4294967168&c)){if(0==(4294965248&c))e[o++]=c>>6&31|192;else{if(c>=55296&&c<=56319&&i<r){var u=t.charCodeAt(i);56320==(64512&u)&&(++i,c=((1023&c)<<10)+(1023&u)+65536)}0==(4294901760&c)?(e[o++]=c>>12&15|224,e[o++]=c>>6&63|128):(e[o++]=c>>18&7|240,e[o++]=c>>12&63|128,e[o++]=c>>6&63|128)}e[o++]=63&c|128}else e[o++]=c}}(t,this.bytes,this.pos),this.pos+=e}},t.prototype.encodeObject=function(t,e){var n=this.extensionCodec.tryToEncode(t,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(t))this.encodeArray(t,e);else if(ArrayBuffer.isView(t))this.encodeBinary(t);else{if("object"!=typeof t)throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(t)));this.encodeMap(t,e)}},t.prototype.encodeBinary=function(t){var e=t.byteLength;if(e<256)this.writeU8(196),this.writeU8(e);else if(e<65536)this.writeU8(197),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too large binary: ".concat(e));this.writeU8(198),this.writeU32(e)}var n=yb(t);this.writeU8a(n)},t.prototype.encodeArray=function(t,e){var n=t.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else{if(!(n<4294967296))throw new Error("Too large array: ".concat(n));this.writeU8(221),this.writeU32(n)}for(var r=0,o=t;r<o.length;r++){var i=o[r];this.doEncode(i,e+1)}},t.prototype.countWithoutUndefined=function(t,e){for(var n=0,r=0,o=e;r<o.length;r++){void 0!==t[o[r]]&&n++}return n},t.prototype.encodeMap=function(t,e){var n=Object.keys(t);this.sortKeys&&n.sort();var r=this.ignoreUndefined?this.countWithoutUndefined(t,n):n.length;if(r<16)this.writeU8(128+r);else if(r<65536)this.writeU8(222),this.writeU16(r);else{if(!(r<4294967296))throw new Error("Too large map object: ".concat(r));this.writeU8(223),this.writeU32(r)}for(var o=0,i=n;o<i.length;o++){var c=i[o],u=t[c];this.ignoreUndefined&&void 0===u||(this.encodeString(c),this.doEncode(u,e+1))}},t.prototype.encodeExtension=function(t){var e=t.data.length;if(1===e)this.writeU8(212);else if(2===e)this.writeU8(213);else if(4===e)this.writeU8(214);else if(8===e)this.writeU8(215);else if(16===e)this.writeU8(216);else if(e<256)this.writeU8(199),this.writeU8(e);else if(e<65536)this.writeU8(200),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too large extension object: ".concat(e));this.writeU8(201),this.writeU32(e)}this.writeI8(t.type),this.writeU8a(t.data)},t.prototype.writeU8=function(t){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,t),this.pos++},t.prototype.writeU8a=function(t){var e=t.length;this.ensureBufferSizeToWrite(e),this.bytes.set(t,this.pos),this.pos+=e},t.prototype.writeI8=function(t){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,t),this.pos++},t.prototype.writeU16=function(t){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,t),this.pos+=2},t.prototype.writeI16=function(t){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,t),this.pos+=2},t.prototype.writeU32=function(t){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,t),this.pos+=4},t.prototype.writeI32=function(t){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,t),this.pos+=4},t.prototype.writeF32=function(t){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,t),this.pos+=4},t.prototype.writeF64=function(t){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,t),this.pos+=8},t.prototype.writeU64=function(t){this.ensureBufferSizeToWrite(8),function(t,e,n){var r=n/4294967296,o=n;t.setUint32(e,r),t.setUint32(e+4,o)}(this.view,this.pos,t),this.pos+=8},t.prototype.writeI64=function(t){this.ensureBufferSizeToWrite(8),Qd(this.view,this.pos,t),this.pos+=8},t}(),hb={};function db(t){return"".concat(t<0?"-":"","0x").concat(Math.abs(t).toString(16).padStart(2,"0"))}var bb=function(){function t(t,e){void 0===t&&(t=16),void 0===e&&(e=16),this.maxKeyLength=t,this.maxLengthPerKey=e,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return t.prototype.canBeCached=function(t){return t>0&&t<=this.maxKeyLength},t.prototype.find=function(t,e,n){t:for(var r=0,o=this.caches[n-1];r<o.length;r++){for(var i=o[r],c=i.bytes,u=0;u<n;u++)if(c[u]!==t[e+u])continue t;return i.str}return null},t.prototype.store=function(t,e){var n=this.caches[t.length-1],r={bytes:t,str:e};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},t.prototype.decode=function(t,e,n){var r=this.find(t,e,n);if(null!=r)return this.hit++,r;this.miss++;var o=rb(t,e,n),i=Uint8Array.prototype.slice.call(t,e,e+n);return this.store(i,o),o},t}(),vb=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function c(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,u)}a((r=r.apply(t,e||[])).next())}))},mb=function(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},gb=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}},wb=function(t){return this instanceof wb?(this.v=t,this):new wb(t)},Ob=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},c("next"),c("throw"),c("return"),r[Symbol.asyncIterator]=function(){return this},r;function c(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=o[t](e)).value instanceof wb?Promise.resolve(n.value.v).then(a,s):f(i[0][2],n)}catch(t){f(i[0][3],t)}var n}function a(t){u("next",t)}function s(t){u("throw",t)}function f(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}},Sb=function(t){var e=typeof t;return"string"===e||"number"===e},Eb=new DataView(new ArrayBuffer(0)),_b=new Uint8Array(Eb.buffer),kb=function(){try{Eb.getInt8(0)}catch(t){return t.constructor}throw new Error("never reached")}(),Tb=new kb("Insufficient data"),Rb=new bb,jb=function(){function t(t,e,n,r,o,i,c,u){void 0===t&&(t=lb.defaultCodec),void 0===e&&(e=void 0),void 0===n&&(n=Kd),void 0===r&&(r=Kd),void 0===o&&(o=Kd),void 0===i&&(i=Kd),void 0===c&&(c=Kd),void 0===u&&(u=Rb),this.extensionCodec=t,this.context=e,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=o,this.maxMapLength=i,this.maxExtLength=c,this.keyDecoder=u,this.totalPos=0,this.pos=0,this.view=Eb,this.bytes=_b,this.headByte=-1,this.stack=[]}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},t.prototype.setBuffer=function(t){this.bytes=yb(t),this.view=function(t){if(t instanceof ArrayBuffer)return new DataView(t);var e=yb(t);return new DataView(e.buffer,e.byteOffset,e.byteLength)}(this.bytes),this.pos=0},t.prototype.appendBuffer=function(t){if(-1!==this.headByte||this.hasRemaining(1)){var e=this.bytes.subarray(this.pos),n=yb(t),r=new Uint8Array(e.length+n.length);r.set(e),r.set(n,e.length),this.setBuffer(r)}else this.setBuffer(t)},t.prototype.hasRemaining=function(t){return this.view.byteLength-this.pos>=t},t.prototype.createExtraByteError=function(t){var e=this.view,n=this.pos;return new RangeError("Extra ".concat(e.byteLength-n," of ").concat(e.byteLength," byte(s) found at buffer[").concat(t,"]"))},t.prototype.decode=function(t){this.reinitializeState(),this.setBuffer(t);var e=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return e},t.prototype.decodeMulti=function(t){return mb(this,(function(e){switch(e.label){case 0:this.reinitializeState(),this.setBuffer(t),e.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return e.sent(),[3,1];case 3:return[2]}}))},t.prototype.decodeAsync=function(t){var e,n,r,o;return vb(this,void 0,void 0,(function(){var i,c,u,a,s,f,l,y;return mb(this,(function(p){switch(p.label){case 0:i=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),e=gb(t),p.label=2;case 2:return[4,e.next()];case 3:if((n=p.sent()).done)return[3,5];if(u=n.value,i)throw this.createExtraByteError(this.totalPos);this.appendBuffer(u);try{c=this.doDecodeSync(),i=!0}catch(t){if(!(t instanceof kb))throw t}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return a=p.sent(),r={error:a},[3,12];case 7:return p.trys.push([7,,10,11]),n&&!n.done&&(o=e.return)?[4,o.call(e)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(i){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,c]}throw f=(s=this).headByte,l=s.pos,y=s.totalPos,new RangeError("Insufficient data in parsing ".concat(db(f)," at ").concat(y," (").concat(l," in the current buffer)"))}}))}))},t.prototype.decodeArrayStream=function(t){return this.decodeMultiAsync(t,!0)},t.prototype.decodeStream=function(t){return this.decodeMultiAsync(t,!1)},t.prototype.decodeMultiAsync=function(t,e){return Ob(this,arguments,(function(){var n,r,o,i,c,u,a,s,f;return mb(this,(function(l){switch(l.label){case 0:n=e,r=-1,l.label=1;case 1:l.trys.push([1,13,14,19]),o=gb(t),l.label=2;case 2:return[4,wb(o.next())];case 3:if((i=l.sent()).done)return[3,12];if(c=i.value,e&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(c),n&&(r=this.readArraySize(),n=!1,this.complete()),l.label=4;case 4:l.trys.push([4,9,,10]),l.label=5;case 5:return[4,wb(this.doDecodeSync())];case 6:return[4,l.sent()];case 7:return l.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((u=l.sent())instanceof kb))throw u;return[3,10];case 10:this.totalPos+=this.pos,l.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return a=l.sent(),s={error:a},[3,19];case 14:return l.trys.push([14,,17,18]),i&&!i.done&&(f=o.return)?[4,wb(f.call(o))]:[3,16];case 15:l.sent(),l.label=16;case 16:return[3,18];case 17:if(s)throw s.error;return[7];case 18:return[7];case 19:return[2]}}))}))},t.prototype.doDecodeSync=function(){t:for(;;){var t=this.readHeadByte(),e=void 0;if(t>=224)e=t-256;else if(t<192)if(t<128)e=t;else if(t<144){if(0!==(r=t-128)){this.pushMapState(r),this.complete();continue t}e={}}else if(t<160){if(0!==(r=t-144)){this.pushArrayState(r),this.complete();continue t}e=[]}else{var n=t-160;e=this.decodeUtf8String(n,0)}else if(192===t)e=null;else if(194===t)e=!1;else if(195===t)e=!0;else if(202===t)e=this.readF32();else if(203===t)e=this.readF64();else if(204===t)e=this.readU8();else if(205===t)e=this.readU16();else if(206===t)e=this.readU32();else if(207===t)e=this.readU64();else if(208===t)e=this.readI8();else if(209===t)e=this.readI16();else if(210===t)e=this.readI32();else if(211===t)e=this.readI64();else if(217===t){n=this.lookU8();e=this.decodeUtf8String(n,1)}else if(218===t){n=this.lookU16();e=this.decodeUtf8String(n,2)}else if(219===t){n=this.lookU32();e=this.decodeUtf8String(n,4)}else if(220===t){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue t}e=[]}else if(221===t){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue t}e=[]}else if(222===t){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue t}e={}}else if(223===t){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue t}e={}}else if(196===t){var r=this.lookU8();e=this.decodeBinary(r,1)}else if(197===t){r=this.lookU16();e=this.decodeBinary(r,2)}else if(198===t){r=this.lookU32();e=this.decodeBinary(r,4)}else if(212===t)e=this.decodeExtension(1,0);else if(213===t)e=this.decodeExtension(2,0);else if(214===t)e=this.decodeExtension(4,0);else if(215===t)e=this.decodeExtension(8,0);else if(216===t)e=this.decodeExtension(16,0);else if(199===t){r=this.lookU8();e=this.decodeExtension(r,1)}else if(200===t){r=this.lookU16();e=this.decodeExtension(r,2)}else{if(201!==t)throw new sb("Unrecognized type byte: ".concat(db(t)));r=this.lookU32();e=this.decodeExtension(r,4)}this.complete();for(var o=this.stack;o.length>0;){var i=o[o.length-1];if(0===i.type){if(i.array[i.position]=e,i.position++,i.position!==i.size)continue t;o.pop(),e=i.array}else{if(1===i.type){if(!Sb(e))throw new sb("The type of key must be string or number but "+typeof e);if("__proto__"===e)throw new sb("The key __proto__ is not allowed");i.key=e,i.type=2;continue t}if(i.map[i.key]=e,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue t}o.pop(),e=i.map}}return e}},t.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=-1},t.prototype.readArraySize=function(){var t=this.readHeadByte();switch(t){case 220:return this.readU16();case 221:return this.readU32();default:if(t<160)return t-144;throw new sb("Unrecognized array type byte: ".concat(db(t)))}},t.prototype.pushMapState=function(t){if(t>this.maxMapLength)throw new sb("Max length exceeded: map length (".concat(t,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:t,key:null,readCount:0,map:{}})},t.prototype.pushArrayState=function(t){if(t>this.maxArrayLength)throw new sb("Max length exceeded: array length (".concat(t,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:t,array:new Array(t),position:0})},t.prototype.decodeUtf8String=function(t,e){var n;if(t>this.maxStrLength)throw new sb("Max length exceeded: UTF-8 byte length (".concat(t,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+e+t)throw Tb;var r,o=this.pos+e;return r=this.stateIsMapKey()&&(null===(n=this.keyDecoder)||void 0===n?void 0:n.canBeCached(t))?this.keyDecoder.decode(this.bytes,o,t):t>ib?function(t,e,n){var r=t.subarray(e,e+n);return ob.decode(r)}(this.bytes,o,t):rb(this.bytes,o,t),this.pos+=e+t,r},t.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},t.prototype.decodeBinary=function(t,e){if(t>this.maxBinLength)throw new sb("Max length exceeded: bin length (".concat(t,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(t+e))throw Tb;var n=this.pos+e,r=this.bytes.subarray(n,n+t);return this.pos+=e+t,r},t.prototype.decodeExtension=function(t,e){if(t>this.maxExtLength)throw new sb("Max length exceeded: ext length (".concat(t,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+e),r=this.decodeBinary(t,e+1);return this.extensionCodec.decode(r,n,this.context)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var t=this.view.getUint8(this.pos);return this.pos++,t},t.prototype.readI8=function(){var t=this.view.getInt8(this.pos);return this.pos++,t},t.prototype.readU16=function(){var t=this.view.getUint16(this.pos);return this.pos+=2,t},t.prototype.readI16=function(){var t=this.view.getInt16(this.pos);return this.pos+=2,t},t.prototype.readU32=function(){var t=this.view.getUint32(this.pos);return this.pos+=4,t},t.prototype.readI32=function(){var t=this.view.getInt32(this.pos);return this.pos+=4,t},t.prototype.readU64=function(){var t,e,n=(t=this.view,e=this.pos,t.getBigUint64(e));return this.pos+=8,n},t.prototype.readI64=function(){var t=Jd(this.view,this.pos);return this.pos+=8,t},t.prototype.readF32=function(){var t=this.view.getFloat32(this.pos);return this.pos+=4,t},t.prototype.readF64=function(){var t=this.view.getFloat64(this.pos);return this.pos+=8,t},t}(),Pb={};var xb=function(t){return t.key},Ub={HandShakeResponse:{},SystemPingMessage:{},PasswordChangeRequest:{},AuthenticationRequest:{DeviceType:xb},UaEquityHistoricalDataRequest:{BeginDateTime:no.convertDateToCSharpTicks,EndDateTime:no.convertDateToCSharpTicks,RequestType:xb,RequestTypeParam:xb},UaEquityExecutionHistoryRequest:{ExecutionHistoryRequestType:xb},NewUaEquityOrder:{Side:xb,OrderType:xb,TimeInForce:xb,Time:no.convertDateToCSharpTicks,ServerTime:no.convertDateToCSharpTicks},CancelUaEquityOrder:{Time:no.convertDateToCSharpTicks,ServerTime:no.convertDateToCSharpTicks},SupportedRoutesRequest:{},LinkedUaEquityAccountsRequest:{},UaEquityOrderStatusRequest:{},UaEquityMarketDataRequest:{SubscriptionAction:xb,DataType:xb},UaEquityTimeRequest:{},EquityAccountInfoRequest:{},CryptoAccountInfoRequest:{},UaEquityAccountInfoRequest:{},UaFndAccountInfoRequest:{},UaBonAccountInfoRequest:{}},Ab=function(){return X.MsgPackSerializer},Cb=function(t){var e={};return function(t,e){for(var n=Object.keys(e),r=Ub[e.messageType],o=0;o<n.length;o++){var i=n[o],c=e[i];t[i]=r[i]?r[i](c):c}}(e,t),e},Db=function(t,e){var n=function(t,e){return void 0===e&&(e=Pb),new jb(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength).decode(t)}(e);return t.createByMsgpack(n)},Ib=function(t){return e=Cb(t),void 0===n&&(n=hb),new pb(n.extensionCodec,n.context,n.maxDepth,n.initialBufferSize,n.sortKeys,n.forceFloat32,n.ignoreUndefined,n.forceIntegerToFloat).encode(e);var e,n};function qb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Bb=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"processResponse",value:function(){}},{key:"processRequest",value:function(){}}])&&qb(e.prototype,n),r&&qb(e,r),t}(),Mb=(n(9135),"Array of parameter has invalid count of element. It must have 4 counts of element"),Nb=function(t){if(t instanceof Uint8Array){if(4!==t.byteLength)throw new Error(Mb)}else{if(!(t instanceof Array))throw new Error('Wrong type of parameter. It must by "Array" or "Uint8Array"');if(4!==t.length)throw new Error(Mb);t=new Uint8Array(t)}return new Uint32Array(t.buffer)[0]},Lb=function(t){return new Uint8Array([255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24])};function zb(t){let e=t.length;for(;--e>=0;)t[e]=0}const Fb=256,Hb=286,Zb=30,Vb=15,Wb=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gb=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Yb=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Kb=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Qb=new Array(576);zb(Qb);const Jb=new Array(60);zb(Jb);const Xb=new Array(512);zb(Xb);const $b=new Array(256);zb($b);const tv=new Array(29);zb(tv);const ev=new Array(Zb);function nv(t,e,n,r,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=t&&t.length}let rv,ov,iv;function cv(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}zb(ev);const uv=t=>t<256?Xb[t]:Xb[256+(t>>>7)],av=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},sv=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,av(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},fv=(t,e,n)=>{sv(t,n[2*e],n[2*e+1])},lv=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},yv=(t,e,n)=>{const r=new Array(16);let o,i,c=0;for(o=1;o<=Vb;o++)r[o]=c=c+n[o-1]<<1;for(i=0;i<=e;i++){let e=t[2*i+1];0!==e&&(t[2*i]=lv(r[e]++,e))}},pv=t=>{let e;for(e=0;e<Hb;e++)t.dyn_ltree[2*e]=0;for(e=0;e<Zb;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},hv=t=>{t.bi_valid>8?av(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},dv=(t,e,n,r)=>{const o=2*e,i=2*n;return t[o]<t[i]||t[o]===t[i]&&r[e]<=r[n]},bv=(t,e,n)=>{const r=t.heap[n];let o=n<<1;for(;o<=t.heap_len&&(o<t.heap_len&&dv(e,t.heap[o+1],t.heap[o],t.depth)&&o++,!dv(e,r,t.heap[o],t.depth));)t.heap[n]=t.heap[o],n=o,o<<=1;t.heap[n]=r},vv=(t,e,n)=>{let r,o,i,c,u=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],o=t.pending_buf[t.l_buf+u],u++,0===r?fv(t,o,e):(i=$b[o],fv(t,i+Fb+1,e),c=Wb[i],0!==c&&(o-=tv[i],sv(t,o,c)),r--,i=uv(r),fv(t,i,n),c=Gb[i],0!==c&&(r-=ev[i],sv(t,r,c)))}while(u<t.last_lit);fv(t,256,e)},mv=(t,e)=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,o=e.stat_desc.has_stree,i=e.stat_desc.elems;let c,u,a,s=-1;for(t.heap_len=0,t.heap_max=573,c=0;c<i;c++)0!==n[2*c]?(t.heap[++t.heap_len]=s=c,t.depth[c]=0):n[2*c+1]=0;for(;t.heap_len<2;)a=t.heap[++t.heap_len]=s<2?++s:0,n[2*a]=1,t.depth[a]=0,t.opt_len--,o&&(t.static_len-=r[2*a+1]);for(e.max_code=s,c=t.heap_len>>1;c>=1;c--)bv(t,n,c);a=i;do{c=t.heap[1],t.heap[1]=t.heap[t.heap_len--],bv(t,n,1),u=t.heap[1],t.heap[--t.heap_max]=c,t.heap[--t.heap_max]=u,n[2*a]=n[2*c]+n[2*u],t.depth[a]=(t.depth[c]>=t.depth[u]?t.depth[c]:t.depth[u])+1,n[2*c+1]=n[2*u+1]=a,t.heap[1]=a++,bv(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,r=e.max_code,o=e.stat_desc.static_tree,i=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,u=e.stat_desc.extra_base,a=e.stat_desc.max_length;let s,f,l,y,p,h,d=0;for(y=0;y<=Vb;y++)t.bl_count[y]=0;for(n[2*t.heap[t.heap_max]+1]=0,s=t.heap_max+1;s<573;s++)f=t.heap[s],y=n[2*n[2*f+1]+1]+1,y>a&&(y=a,d++),n[2*f+1]=y,f>r||(t.bl_count[y]++,p=0,f>=u&&(p=c[f-u]),h=n[2*f],t.opt_len+=h*(y+p),i&&(t.static_len+=h*(o[2*f+1]+p)));if(0!==d){do{for(y=a-1;0===t.bl_count[y];)y--;t.bl_count[y]--,t.bl_count[y+1]+=2,t.bl_count[a]--,d-=2}while(d>0);for(y=a;0!==y;y--)for(f=t.bl_count[y];0!==f;)l=t.heap[--s],l>r||(n[2*l+1]!==y&&(t.opt_len+=(y-n[2*l+1])*n[2*l],n[2*l+1]=y),f--)}})(t,e),yv(n,s,t.bl_count)},gv=(t,e,n)=>{let r,o,i=-1,c=e[1],u=0,a=7,s=4;for(0===c&&(a=138,s=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)o=c,c=e[2*(r+1)+1],++u<a&&o===c||(u<s?t.bl_tree[2*o]+=u:0!==o?(o!==i&&t.bl_tree[2*o]++,t.bl_tree[32]++):u<=10?t.bl_tree[34]++:t.bl_tree[36]++,u=0,i=o,0===c?(a=138,s=3):o===c?(a=6,s=3):(a=7,s=4))},wv=(t,e,n)=>{let r,o,i=-1,c=e[1],u=0,a=7,s=4;for(0===c&&(a=138,s=3),r=0;r<=n;r++)if(o=c,c=e[2*(r+1)+1],!(++u<a&&o===c)){if(u<s)do{fv(t,o,t.bl_tree)}while(0!=--u);else 0!==o?(o!==i&&(fv(t,o,t.bl_tree),u--),fv(t,16,t.bl_tree),sv(t,u-3,2)):u<=10?(fv(t,17,t.bl_tree),sv(t,u-3,3)):(fv(t,18,t.bl_tree),sv(t,u-11,7));u=0,i=o,0===c?(a=138,s=3):o===c?(a=6,s=3):(a=7,s=4)}};let Ov=!1;const Sv=(t,e,n,r)=>{sv(t,0+(r?1:0),3),((t,e,n,r)=>{hv(t),r&&(av(t,n),av(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n})(t,e,n,!0)};var Ev=(t,e,n,r)=>{let o,i,c=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<Fb;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),mv(t,t.l_desc),mv(t,t.d_desc),c=(t=>{let e;for(gv(t,t.dyn_ltree,t.l_desc.max_code),gv(t,t.dyn_dtree,t.d_desc.max_code),mv(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Kb[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==e?Sv(t,e,n,r):4===t.strategy||i===o?(sv(t,2+(r?1:0),3),vv(t,Qb,Jb)):(sv(t,4+(r?1:0),3),((t,e,n,r)=>{let o;for(sv(t,e-257,5),sv(t,n-1,5),sv(t,r-4,4),o=0;o<r;o++)sv(t,t.bl_tree[2*Kb[o]+1],3);wv(t,t.dyn_ltree,e-1),wv(t,t.dyn_dtree,n-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),vv(t,t.dyn_ltree,t.dyn_dtree)),pv(t),r&&hv(t)},_v={_tr_init:t=>{Ov||((()=>{let t,e,n,r,o;const i=new Array(16);for(n=0,r=0;r<28;r++)for(tv[r]=n,t=0;t<1<<Wb[r];t++)$b[n++]=r;for($b[n-1]=r,o=0,r=0;r<16;r++)for(ev[r]=o,t=0;t<1<<Gb[r];t++)Xb[o++]=r;for(o>>=7;r<Zb;r++)for(ev[r]=o<<7,t=0;t<1<<Gb[r]-7;t++)Xb[256+o++]=r;for(e=0;e<=Vb;e++)i[e]=0;for(t=0;t<=143;)Qb[2*t+1]=8,t++,i[8]++;for(;t<=255;)Qb[2*t+1]=9,t++,i[9]++;for(;t<=279;)Qb[2*t+1]=7,t++,i[7]++;for(;t<=287;)Qb[2*t+1]=8,t++,i[8]++;for(yv(Qb,287,i),t=0;t<Zb;t++)Jb[2*t+1]=5,Jb[2*t]=lv(t,5);rv=new nv(Qb,Wb,257,Hb,Vb),ov=new nv(Jb,Gb,0,Zb,Vb),iv=new nv(new Array(0),Yb,0,19,7)})(),Ov=!0),t.l_desc=new cv(t.dyn_ltree,rv),t.d_desc=new cv(t.dyn_dtree,ov),t.bl_desc=new cv(t.bl_tree,iv),t.bi_buf=0,t.bi_valid=0,pv(t)},_tr_stored_block:Sv,_tr_flush_block:Ev,_tr_tally:(t,e,n)=>(t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*($b[n]+Fb+1)]++,t.dyn_dtree[2*uv(e)]++),t.last_lit===t.lit_bufsize-1),_tr_align:t=>{sv(t,2,3),fv(t,256,Qb),(t=>{16===t.bi_valid?(av(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var kv=(t,e,n,r)=>{let o=65535&t|0,i=t>>>16&65535|0,c=0;for(;0!==n;){c=n>2e3?2e3:n,n-=c;do{o=o+e[r++]|0,i=i+o|0}while(--c);o%=65521,i%=65521}return o|i<<16|0};const Tv=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());var Rv=(t,e,n,r)=>{const o=Tv,i=r+n;t^=-1;for(let n=r;n<i;n++)t=t>>>8^o[255&(t^e[n])];return-1^t},jv={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Pv={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:xv,_tr_stored_block:Uv,_tr_flush_block:Av,_tr_tally:Cv,_tr_align:Dv}=_v,{Z_NO_FLUSH:Iv,Z_PARTIAL_FLUSH:qv,Z_FULL_FLUSH:Bv,Z_FINISH:Mv,Z_BLOCK:Nv,Z_OK:Lv,Z_STREAM_END:zv,Z_STREAM_ERROR:Fv,Z_DATA_ERROR:Hv,Z_BUF_ERROR:Zv,Z_DEFAULT_COMPRESSION:Vv,Z_FILTERED:Wv,Z_HUFFMAN_ONLY:Gv,Z_RLE:Yv,Z_FIXED:Kv,Z_DEFAULT_STRATEGY:Qv,Z_UNKNOWN:Jv,Z_DEFLATED:Xv}=Pv,$v=258,tm=262,em=103,nm=113,rm=666,om=(t,e)=>(t.msg=jv[e],e),im=t=>(t<<1)-(t>4?9:0),cm=t=>{let e=t.length;for(;--e>=0;)t[e]=0};let um=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const am=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},sm=(t,e)=>{Av(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,am(t.strm)},fm=(t,e)=>{t.pending_buf[t.pending++]=e},lm=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ym=(t,e,n,r)=>{let o=t.avail_in;return o>r&&(o=r),0===o?0:(t.avail_in-=o,e.set(t.input.subarray(t.next_in,t.next_in+o),n),1===t.state.wrap?t.adler=kv(t.adler,e,o,n):2===t.state.wrap&&(t.adler=Rv(t.adler,e,o,n)),t.next_in+=o,t.total_in+=o,o)},pm=(t,e)=>{let n,r,o=t.max_chain_length,i=t.strstart,c=t.prev_length,u=t.nice_match;const a=t.strstart>t.w_size-tm?t.strstart-(t.w_size-tm):0,s=t.window,f=t.w_mask,l=t.prev,y=t.strstart+$v;let p=s[i+c-1],h=s[i+c];t.prev_length>=t.good_match&&(o>>=2),u>t.lookahead&&(u=t.lookahead);do{if(n=e,s[n+c]===h&&s[n+c-1]===p&&s[n]===s[i]&&s[++n]===s[i+1]){i+=2,n++;do{}while(s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&i<y);if(r=$v-(y-i),i=y-$v,r>c){if(t.match_start=e,c=r,r>=u)break;p=s[i+c-1],h=s[i+c]}}}while((e=l[e&f])>a&&0!=--o);return c<=t.lookahead?c:t.lookahead},hm=t=>{const e=t.w_size;let n,r,o,i,c;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-tm)){t.window.set(t.window.subarray(e,e+e),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,r=t.hash_size,n=r;do{o=t.head[--n],t.head[n]=o>=e?o-e:0}while(--r);r=e,n=r;do{o=t.prev[--n],t.prev[n]=o>=e?o-e:0}while(--r);i+=e}if(0===t.strm.avail_in)break;if(r=ym(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=r,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=um(t,t.ins_h,t.window[c+1]);t.insert&&(t.ins_h=um(t,t.ins_h,t.window[c+3-1]),t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<tm&&0!==t.strm.avail_in)},dm=(t,e)=>{let n,r;for(;;){if(t.lookahead<tm){if(hm(t),t.lookahead<tm&&e===Iv)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=um(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-tm&&(t.match_length=pm(t,n)),t.match_length>=3)if(r=Cv(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=um(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=um(t,t.ins_h,t.window[t.strstart+1]);else r=Cv(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(sm(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===Mv?(sm(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(sm(t,!1),0===t.strm.avail_out)?1:2},bm=(t,e)=>{let n,r,o;for(;;){if(t.lookahead<tm){if(hm(t),t.lookahead<tm&&e===Iv)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=um(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-tm&&(t.match_length=pm(t,n),t.match_length<=5&&(t.strategy===Wv||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,r=Cv(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=um(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(sm(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(r=Cv(t,0,t.window[t.strstart-1]),r&&sm(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Cv(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===Mv?(sm(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(sm(t,!1),0===t.strm.avail_out)?1:2};function vm(t,e,n,r,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=o}const mm=[new vm(0,0,0,0,((t,e)=>{let n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(hm(t),0===t.lookahead&&e===Iv)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;const r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,sm(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-tm&&(sm(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Mv?(sm(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(sm(t,!1),t.strm.avail_out),1)})),new vm(4,4,8,4,dm),new vm(4,5,16,8,dm),new vm(4,6,32,32,dm),new vm(4,4,16,16,bm),new vm(8,16,32,32,bm),new vm(8,16,128,128,bm),new vm(8,32,128,256,bm),new vm(32,128,258,1024,bm),new vm(32,258,258,4096,bm)];function gm(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Xv,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),cm(this.dyn_ltree),cm(this.dyn_dtree),cm(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),cm(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),cm(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const wm=t=>{if(!t||!t.state)return om(t,Fv);t.total_in=t.total_out=0,t.data_type=Jv;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:nm,t.adler=2===e.wrap?0:1,e.last_flush=Iv,xv(e),Lv},Om=t=>{const e=wm(t);var n;return e===Lv&&((n=t.state).window_size=2*n.w_size,cm(n.head),n.max_lazy_match=mm[n.level].max_lazy,n.good_match=mm[n.level].good_length,n.nice_match=mm[n.level].nice_length,n.max_chain_length=mm[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),e},Sm=(t,e,n,r,o,i)=>{if(!t)return Fv;let c=1;if(e===Vv&&(e=6),r<0?(c=0,r=-r):r>15&&(c=2,r-=16),o<1||o>9||n!==Xv||r<8||r>15||e<0||e>9||i<0||i>Kv)return om(t,Fv);8===r&&(r=9);const u=new gm;return t.state=u,u.strm=t,u.wrap=c,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=i,u.method=n,Om(t)};var Em={deflateInit:(t,e)=>Sm(t,e,Xv,15,8,Qv),deflateInit2:Sm,deflateReset:Om,deflateResetKeep:wm,deflateSetHeader:(t,e)=>t&&t.state?2!==t.state.wrap?Fv:(t.state.gzhead=e,Lv):Fv,deflate:(t,e)=>{let n,r;if(!t||!t.state||e>Nv||e<0)return t?om(t,Fv):Fv;const o=t.state;if(!t.output||!t.input&&0!==t.avail_in||o.status===rm&&e!==Mv)return om(t,0===t.avail_out?Zv:Fv);o.strm=t;const i=o.last_flush;if(o.last_flush=e,42===o.status)if(2===o.wrap)t.adler=0,fm(o,31),fm(o,139),fm(o,8),o.gzhead?(fm(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),fm(o,255&o.gzhead.time),fm(o,o.gzhead.time>>8&255),fm(o,o.gzhead.time>>16&255),fm(o,o.gzhead.time>>24&255),fm(o,9===o.level?2:o.strategy>=Gv||o.level<2?4:0),fm(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(fm(o,255&o.gzhead.extra.length),fm(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=Rv(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(fm(o,0),fm(o,0),fm(o,0),fm(o,0),fm(o,0),fm(o,9===o.level?2:o.strategy>=Gv||o.level<2?4:0),fm(o,3),o.status=nm);else{let e=Xv+(o.w_bits-8<<4)<<8,n=-1;n=o.strategy>=Gv||o.level<2?0:o.level<6?1:6===o.level?2:3,e|=n<<6,0!==o.strstart&&(e|=32),e+=31-e%31,o.status=nm,lm(o,e),0!==o.strstart&&(lm(o,t.adler>>>16),lm(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(n=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),am(t),n=o.pending,o.pending!==o.pending_buf_size));)fm(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){n=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),am(t),n=o.pending,o.pending===o.pending_buf_size)){r=1;break}r=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,fm(o,r)}while(0!==r);o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),0===r&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){n=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),am(t),n=o.pending,o.pending===o.pending_buf_size)){r=1;break}r=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,fm(o,r)}while(0!==r);o.gzhead.hcrc&&o.pending>n&&(t.adler=Rv(t.adler,o.pending_buf,o.pending-n,n)),0===r&&(o.status=em)}else o.status=em;if(o.status===em&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&am(t),o.pending+2<=o.pending_buf_size&&(fm(o,255&t.adler),fm(o,t.adler>>8&255),t.adler=0,o.status=nm)):o.status=nm),0!==o.pending){if(am(t),0===t.avail_out)return o.last_flush=-1,Lv}else if(0===t.avail_in&&im(e)<=im(i)&&e!==Mv)return om(t,Zv);if(o.status===rm&&0!==t.avail_in)return om(t,Zv);if(0!==t.avail_in||0!==o.lookahead||e!==Iv&&o.status!==rm){let n=o.strategy===Gv?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(hm(t),0===t.lookahead)){if(e===Iv)return 1;break}if(t.match_length=0,n=Cv(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(sm(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Mv?(sm(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(sm(t,!1),0===t.strm.avail_out)?1:2})(o,e):o.strategy===Yv?((t,e)=>{let n,r,o,i;const c=t.window;for(;;){if(t.lookahead<=$v){if(hm(t),t.lookahead<=$v&&e===Iv)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(o=t.strstart-1,r=c[o],r===c[++o]&&r===c[++o]&&r===c[++o])){i=t.strstart+$v;do{}while(r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&o<i);t.match_length=$v-(i-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Cv(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Cv(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(sm(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Mv?(sm(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(sm(t,!1),0===t.strm.avail_out)?1:2})(o,e):mm[o.level].func(o,e);if(3!==n&&4!==n||(o.status=rm),1===n||3===n)return 0===t.avail_out&&(o.last_flush=-1),Lv;if(2===n&&(e===qv?Dv(o):e!==Nv&&(Uv(o,0,0,!1),e===Bv&&(cm(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),am(t),0===t.avail_out))return o.last_flush=-1,Lv}return e!==Mv?Lv:o.wrap<=0?zv:(2===o.wrap?(fm(o,255&t.adler),fm(o,t.adler>>8&255),fm(o,t.adler>>16&255),fm(o,t.adler>>24&255),fm(o,255&t.total_in),fm(o,t.total_in>>8&255),fm(o,t.total_in>>16&255),fm(o,t.total_in>>24&255)):(lm(o,t.adler>>>16),lm(o,65535&t.adler)),am(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?Lv:zv)},deflateEnd:t=>{if(!t||!t.state)return Fv;const e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==em&&e!==nm&&e!==rm?om(t,Fv):(t.state=null,e===nm?om(t,Hv):Lv)},deflateSetDictionary:(t,e)=>{let n=e.length;if(!t||!t.state)return Fv;const r=t.state,o=r.wrap;if(2===o||1===o&&42!==r.status||r.lookahead)return Fv;if(1===o&&(t.adler=kv(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===o&&(cm(r.head),r.strstart=0,r.block_start=0,r.insert=0);let t=new Uint8Array(r.w_size);t.set(e.subarray(n-r.w_size,n),0),e=t,n=r.w_size}const i=t.avail_in,c=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,hm(r);r.lookahead>=3;){let t=r.strstart,e=r.lookahead-2;do{r.ins_h=um(r,r.ins_h,r.window[t+3-1]),r.prev[t&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=t,t++}while(--e);r.strstart=t,r.lookahead=2,hm(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=c,t.input=u,t.avail_in=i,r.wrap=o,Lv},deflateInfo:"pako deflate (from Nodeca project)"};const _m=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var km=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const e in n)_m(n,e)&&(t[e]=n[e])}}return t},Tm=t=>{let e=0;for(let n=0,r=t.length;n<r;n++)e+=t[n].length;const n=new Uint8Array(e);for(let e=0,r=0,o=t.length;e<o;e++){let o=t[e];n.set(o,r),r+=o.length}return n};let Rm=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Rm=!1}const jm=new Uint8Array(256);for(let t=0;t<256;t++)jm[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;jm[254]=jm[254]=1;var Pm=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,o,i,c=t.length,u=0;for(o=0;o<c;o++)n=t.charCodeAt(o),55296==(64512&n)&&o+1<c&&(r=t.charCodeAt(o+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(u),i=0,o=0;i<u;o++)n=t.charCodeAt(o),55296==(64512&n)&&o+1<c&&(r=t.charCodeAt(o+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|63&n):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|63&n):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|63&n);return e},xm=(t,e)=>{const n=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let r,o;const i=new Array(2*n);for(o=0,r=0;r<n;){let e=t[r++];if(e<128){i[o++]=e;continue}let c=jm[e];if(c>4)i[o++]=65533,r+=c-1;else{for(e&=2===c?31:3===c?15:7;c>1&&r<n;)e=e<<6|63&t[r++],c--;c>1?i[o++]=65533:e<65536?i[o++]=e:(e-=65536,i[o++]=55296|e>>10&1023,i[o++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Rm)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n})(i,o)},Um=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+jm[t[n]]>e?n:e};var Am=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Cm=Object.prototype.toString,{Z_NO_FLUSH:Dm,Z_SYNC_FLUSH:Im,Z_FULL_FLUSH:qm,Z_FINISH:Bm,Z_OK:Mm,Z_STREAM_END:Nm,Z_DEFAULT_COMPRESSION:Lm,Z_DEFAULT_STRATEGY:zm,Z_DEFLATED:Fm}=Pv;function Hm(t){this.options=km({level:Lm,method:Fm,chunkSize:16384,windowBits:15,memLevel:8,strategy:zm},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Am,this.strm.avail_out=0;let n=Em.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Mm)throw new Error(jv[n]);if(e.header&&Em.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Pm(e.dictionary):"[object ArrayBuffer]"===Cm.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=Em.deflateSetDictionary(this.strm,t),n!==Mm)throw new Error(jv[n]);this._dict_set=!0}}function Zm(t,e){const n=new Hm(e);if(n.push(t,!0),n.err)throw n.msg||jv[n.err];return n.result}Hm.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize;let o,i;if(this.ended)return!1;for(i=e===~~e?e:!0===e?Bm:Dm,"string"==typeof t?n.input=Pm(t):"[object ArrayBuffer]"===Cm.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(i===Im||i===qm)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(o=Em.deflate(n,i),o===Nm)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),o=Em.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===Mm;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Hm.prototype.onData=function(t){this.chunks.push(t)},Hm.prototype.onEnd=function(t){t===Mm&&(this.result=Tm(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vm={Deflate:Hm,deflate:Zm,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Zm(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Zm(t,e)},constants:Pv};var Wm=function(t,e){let n,r,o,i,c,u,a,s,f,l,y,p,h,d,b,v,m,g,w,O,S,E,_,k;const T=t.state;n=t.next_in,_=t.input,r=n+(t.avail_in-5),o=t.next_out,k=t.output,i=o-(e-t.avail_out),c=o+(t.avail_out-257),u=T.dmax,a=T.wsize,s=T.whave,f=T.wnext,l=T.window,y=T.hold,p=T.bits,h=T.lencode,d=T.distcode,b=(1<<T.lenbits)-1,v=(1<<T.distbits)-1;t:do{p<15&&(y+=_[n++]<<p,p+=8,y+=_[n++]<<p,p+=8),m=h[y&b];e:for(;;){if(g=m>>>24,y>>>=g,p-=g,g=m>>>16&255,0===g)k[o++]=65535&m;else{if(!(16&g)){if(0==(64&g)){m=h[(65535&m)+(y&(1<<g)-1)];continue e}if(32&g){T.mode=12;break t}t.msg="invalid literal/length code",T.mode=30;break t}w=65535&m,g&=15,g&&(p<g&&(y+=_[n++]<<p,p+=8),w+=y&(1<<g)-1,y>>>=g,p-=g),p<15&&(y+=_[n++]<<p,p+=8,y+=_[n++]<<p,p+=8),m=d[y&v];n:for(;;){if(g=m>>>24,y>>>=g,p-=g,g=m>>>16&255,!(16&g)){if(0==(64&g)){m=d[(65535&m)+(y&(1<<g)-1)];continue n}t.msg="invalid distance code",T.mode=30;break t}if(O=65535&m,g&=15,p<g&&(y+=_[n++]<<p,p+=8,p<g&&(y+=_[n++]<<p,p+=8)),O+=y&(1<<g)-1,O>u){t.msg="invalid distance too far back",T.mode=30;break t}if(y>>>=g,p-=g,g=o-i,O>g){if(g=O-g,g>s&&T.sane){t.msg="invalid distance too far back",T.mode=30;break t}if(S=0,E=l,0===f){if(S+=a-g,g<w){w-=g;do{k[o++]=l[S++]}while(--g);S=o-O,E=k}}else if(f<g){if(S+=a+f-g,g-=f,g<w){w-=g;do{k[o++]=l[S++]}while(--g);if(S=0,f<w){g=f,w-=g;do{k[o++]=l[S++]}while(--g);S=o-O,E=k}}}else if(S+=f-g,g<w){w-=g;do{k[o++]=l[S++]}while(--g);S=o-O,E=k}for(;w>2;)k[o++]=E[S++],k[o++]=E[S++],k[o++]=E[S++],w-=3;w&&(k[o++]=E[S++],w>1&&(k[o++]=E[S++]))}else{S=o-O;do{k[o++]=k[S++],k[o++]=k[S++],k[o++]=k[S++],w-=3}while(w>2);w&&(k[o++]=k[S++],w>1&&(k[o++]=k[S++]))}break}}break}}while(n<r&&o<c);w=p>>3,n-=w,p-=w<<3,y&=(1<<p)-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<c?c-o+257:257-(o-c),T.hold=y,T.bits=p};const Gm=15,Ym=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Km=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Qm=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Jm=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Xm=(t,e,n,r,o,i,c,u)=>{const a=u.bits;let s,f,l,y,p,h,d=0,b=0,v=0,m=0,g=0,w=0,O=0,S=0,E=0,_=0,k=null,T=0;const R=new Uint16Array(16),j=new Uint16Array(16);let P,x,U,A=null,C=0;for(d=0;d<=Gm;d++)R[d]=0;for(b=0;b<r;b++)R[e[n+b]]++;for(g=a,m=Gm;m>=1&&0===R[m];m--);if(g>m&&(g=m),0===m)return o[i++]=20971520,o[i++]=20971520,u.bits=1,0;for(v=1;v<m&&0===R[v];v++);for(g<v&&(g=v),S=1,d=1;d<=Gm;d++)if(S<<=1,S-=R[d],S<0)return-1;if(S>0&&(0===t||1!==m))return-1;for(j[1]=0,d=1;d<Gm;d++)j[d+1]=j[d]+R[d];for(b=0;b<r;b++)0!==e[n+b]&&(c[j[e[n+b]]++]=b);if(0===t?(k=A=c,h=19):1===t?(k=Ym,T-=257,A=Km,C-=257,h=256):(k=Qm,A=Jm,h=-1),_=0,b=0,d=v,p=i,w=g,O=0,l=-1,E=1<<g,y=E-1,1===t&&E>852||2===t&&E>592)return 1;for(;;){P=d-O,c[b]<h?(x=0,U=c[b]):c[b]>h?(x=A[C+c[b]],U=k[T+c[b]]):(x=96,U=0),s=1<<d-O,f=1<<w,v=f;do{f-=s,o[p+(_>>O)+f]=P<<24|x<<16|U|0}while(0!==f);for(s=1<<d-1;_&s;)s>>=1;if(0!==s?(_&=s-1,_+=s):_=0,b++,0==--R[d]){if(d===m)break;d=e[n+c[b]]}if(d>g&&(_&y)!==l){for(0===O&&(O=g),p+=v,w=d-O,S=1<<w;w+O<m&&(S-=R[w+O],!(S<=0));)w++,S<<=1;if(E+=1<<w,1===t&&E>852||2===t&&E>592)return 1;l=_&y,o[l]=g<<24|w<<16|p-i|0}}return 0!==_&&(o[p+_]=d-O<<24|64<<16|0),u.bits=g,0};const{Z_FINISH:$m,Z_BLOCK:tg,Z_TREES:eg,Z_OK:ng,Z_STREAM_END:rg,Z_NEED_DICT:og,Z_STREAM_ERROR:ig,Z_DATA_ERROR:cg,Z_MEM_ERROR:ug,Z_BUF_ERROR:ag,Z_DEFLATED:sg}=Pv,fg=12,lg=30,yg=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function pg(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const hg=t=>{if(!t||!t.state)return ig;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,ng},dg=t=>{if(!t||!t.state)return ig;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,hg(t)},bg=(t,e)=>{let n;if(!t||!t.state)return ig;const r=t.state;return e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?ig:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,dg(t))},vg=(t,e)=>{if(!t)return ig;const n=new pg;t.state=n,n.window=null;const r=bg(t,e);return r!==ng&&(t.state=null),r};let mg,gg,wg=!0;const Og=t=>{if(wg){mg=new Int32Array(512),gg=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Xm(1,t.lens,0,288,mg,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Xm(2,t.lens,0,32,gg,0,t.work,{bits:5}),wg=!1}t.lencode=mg,t.lenbits=9,t.distcode=gg,t.distbits=5},Sg=(t,e,n,r)=>{let o;const i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(e.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(o=i.wsize-i.wnext,o>r&&(o=r),i.window.set(e.subarray(n-r,n-r+o),i.wnext),(r-=o)?(i.window.set(e.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0};var Eg={inflateReset:dg,inflateReset2:bg,inflateResetKeep:hg,inflateInit:t=>vg(t,15),inflateInit2:vg,inflate:(t,e)=>{let n,r,o,i,c,u,a,s,f,l,y,p,h,d,b,v,m,g,w,O,S,E,_=0;const k=new Uint8Array(4);let T,R;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return ig;n=t.state,n.mode===fg&&(n.mode=13),c=t.next_out,o=t.output,a=t.avail_out,i=t.next_in,r=t.input,u=t.avail_in,s=n.hold,f=n.bits,l=u,y=a,E=ng;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;f<16;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(2&n.wrap&&35615===s){n.check=0,k[0]=255&s,k[1]=s>>>8&255,n.check=Rv(n.check,k,2,0),s=0,f=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&s)<<8)+(s>>8))%31){t.msg="incorrect header check",n.mode=lg;break}if((15&s)!==sg){t.msg="unknown compression method",n.mode=lg;break}if(s>>>=4,f-=4,S=8+(15&s),0===n.wbits)n.wbits=S;else if(S>n.wbits){t.msg="invalid window size",n.mode=lg;break}n.dmax=1<<n.wbits,t.adler=n.check=1,n.mode=512&s?10:fg,s=0,f=0;break;case 2:for(;f<16;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(n.flags=s,(255&n.flags)!==sg){t.msg="unknown compression method",n.mode=lg;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=lg;break}n.head&&(n.head.text=s>>8&1),512&n.flags&&(k[0]=255&s,k[1]=s>>>8&255,n.check=Rv(n.check,k,2,0)),s=0,f=0,n.mode=3;case 3:for(;f<32;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.head&&(n.head.time=s),512&n.flags&&(k[0]=255&s,k[1]=s>>>8&255,k[2]=s>>>16&255,k[3]=s>>>24&255,n.check=Rv(n.check,k,4,0)),s=0,f=0,n.mode=4;case 4:for(;f<16;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.head&&(n.head.xflags=255&s,n.head.os=s>>8),512&n.flags&&(k[0]=255&s,k[1]=s>>>8&255,n.check=Rv(n.check,k,2,0)),s=0,f=0,n.mode=5;case 5:if(1024&n.flags){for(;f<16;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.length=s,n.head&&(n.head.extra_len=s),512&n.flags&&(k[0]=255&s,k[1]=s>>>8&255,n.check=Rv(n.check,k,2,0)),s=0,f=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p=n.length,p>u&&(p=u),p&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+p),S)),512&n.flags&&(n.check=Rv(n.check,r,p,i)),u-=p,i+=p,n.length-=p),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===u)break t;p=0;do{S=r[i+p++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S))}while(S&&p<u);if(512&n.flags&&(n.check=Rv(n.check,r,p,i)),u-=p,i+=p,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===u)break t;p=0;do{S=r[i+p++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S))}while(S&&p<u);if(512&n.flags&&(n.check=Rv(n.check,r,p,i)),u-=p,i+=p,S)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;f<16;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(s!==(65535&n.check)){t.msg="header crc mismatch",n.mode=lg;break}s=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=fg;break;case 10:for(;f<32;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}t.adler=n.check=yg(s),s=0,f=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=c,t.avail_out=a,t.next_in=i,t.avail_in=u,n.hold=s,n.bits=f,og;t.adler=n.check=1,n.mode=fg;case fg:if(e===tg||e===eg)break t;case 13:if(n.last){s>>>=7&f,f-=7&f,n.mode=27;break}for(;f<3;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}switch(n.last=1&s,s>>>=1,f-=1,3&s){case 0:n.mode=14;break;case 1:if(Og(n),n.mode=20,e===eg){s>>>=2,f-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=lg}s>>>=2,f-=2;break;case 14:for(s>>>=7&f,f-=7&f;f<32;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if((65535&s)!=(s>>>16^65535)){t.msg="invalid stored block lengths",n.mode=lg;break}if(n.length=65535&s,s=0,f=0,n.mode=15,e===eg)break t;case 15:n.mode=16;case 16:if(p=n.length,p){if(p>u&&(p=u),p>a&&(p=a),0===p)break t;o.set(r.subarray(i,i+p),c),u-=p,i+=p,a-=p,c+=p,n.length-=p;break}n.mode=fg;break;case 17:for(;f<14;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(n.nlen=257+(31&s),s>>>=5,f-=5,n.ndist=1+(31&s),s>>>=5,f-=5,n.ncode=4+(15&s),s>>>=4,f-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=lg;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;f<3;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.lens[j[n.have++]]=7&s,s>>>=3,f-=3}for(;n.have<19;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,T={bits:n.lenbits},E=Xm(0,n.lens,0,19,n.lencode,0,n.work,T),n.lenbits=T.bits,E){t.msg="invalid code lengths set",n.mode=lg;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=n.lencode[s&(1<<n.lenbits)-1],b=_>>>24,v=_>>>16&255,m=65535&_,!(b<=f);){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(m<16)s>>>=b,f-=b,n.lens[n.have++]=m;else{if(16===m){for(R=b+2;f<R;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(s>>>=b,f-=b,0===n.have){t.msg="invalid bit length repeat",n.mode=lg;break}S=n.lens[n.have-1],p=3+(3&s),s>>>=2,f-=2}else if(17===m){for(R=b+3;f<R;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}s>>>=b,f-=b,S=0,p=3+(7&s),s>>>=3,f-=3}else{for(R=b+7;f<R;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}s>>>=b,f-=b,S=0,p=11+(127&s),s>>>=7,f-=7}if(n.have+p>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=lg;break}for(;p--;)n.lens[n.have++]=S}}if(n.mode===lg)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=lg;break}if(n.lenbits=9,T={bits:n.lenbits},E=Xm(1,n.lens,0,n.nlen,n.lencode,0,n.work,T),n.lenbits=T.bits,E){t.msg="invalid literal/lengths set",n.mode=lg;break}if(n.distbits=6,n.distcode=n.distdyn,T={bits:n.distbits},E=Xm(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,T),n.distbits=T.bits,E){t.msg="invalid distances set",n.mode=lg;break}if(n.mode=20,e===eg)break t;case 20:n.mode=21;case 21:if(u>=6&&a>=258){t.next_out=c,t.avail_out=a,t.next_in=i,t.avail_in=u,n.hold=s,n.bits=f,Wm(t,y),c=t.next_out,o=t.output,a=t.avail_out,i=t.next_in,r=t.input,u=t.avail_in,s=n.hold,f=n.bits,n.mode===fg&&(n.back=-1);break}for(n.back=0;_=n.lencode[s&(1<<n.lenbits)-1],b=_>>>24,v=_>>>16&255,m=65535&_,!(b<=f);){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(v&&0==(240&v)){for(g=b,w=v,O=m;_=n.lencode[O+((s&(1<<g+w)-1)>>g)],b=_>>>24,v=_>>>16&255,m=65535&_,!(g+b<=f);){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}s>>>=g,f-=g,n.back+=g}if(s>>>=b,f-=b,n.back+=b,n.length=m,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=fg;break}if(64&v){t.msg="invalid literal/length code",n.mode=lg;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(R=n.extra;f<R;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.length+=s&(1<<n.extra)-1,s>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=n.distcode[s&(1<<n.distbits)-1],b=_>>>24,v=_>>>16&255,m=65535&_,!(b<=f);){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(0==(240&v)){for(g=b,w=v,O=m;_=n.distcode[O+((s&(1<<g+w)-1)>>g)],b=_>>>24,v=_>>>16&255,m=65535&_,!(g+b<=f);){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}s>>>=g,f-=g,n.back+=g}if(s>>>=b,f-=b,n.back+=b,64&v){t.msg="invalid distance code",n.mode=lg;break}n.offset=m,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(R=n.extra;f<R;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}n.offset+=s&(1<<n.extra)-1,s>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=lg;break}n.mode=25;case 25:if(0===a)break t;if(p=y-a,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=lg;break}p>n.wnext?(p-=n.wnext,h=n.wsize-p):h=n.wnext-p,p>n.length&&(p=n.length),d=n.window}else d=o,h=c-n.offset,p=n.length;p>a&&(p=a),a-=p,n.length-=p;do{o[c++]=d[h++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===a)break t;o[c++]=n.length,a--,n.mode=21;break;case 27:if(n.wrap){for(;f<32;){if(0===u)break t;u--,s|=r[i++]<<f,f+=8}if(y-=a,t.total_out+=y,n.total+=y,y&&(t.adler=n.check=n.flags?Rv(n.check,o,y,c-y):kv(n.check,o,y,c-y)),y=a,(n.flags?s:yg(s))!==n.check){t.msg="incorrect data check",n.mode=lg;break}s=0,f=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;f<32;){if(0===u)break t;u--,s+=r[i++]<<f,f+=8}if(s!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=lg;break}s=0,f=0}n.mode=29;case 29:E=rg;break t;case lg:E=cg;break t;case 31:return ug;default:return ig}return t.next_out=c,t.avail_out=a,t.next_in=i,t.avail_in=u,n.hold=s,n.bits=f,(n.wsize||y!==t.avail_out&&n.mode<lg&&(n.mode<27||e!==$m))&&Sg(t,t.output,t.next_out,y-t.avail_out),l-=t.avail_in,y-=t.avail_out,t.total_in+=l,t.total_out+=y,n.total+=y,n.wrap&&y&&(t.adler=n.check=n.flags?Rv(n.check,o,y,t.next_out-y):kv(n.check,o,y,t.next_out-y)),t.data_type=n.bits+(n.last?64:0)+(n.mode===fg?128:0)+(20===n.mode||15===n.mode?256:0),(0===l&&0===y||e===$m)&&E===ng&&(E=ag),E},inflateEnd:t=>{if(!t||!t.state)return ig;let e=t.state;return e.window&&(e.window=null),t.state=null,ng},inflateGetHeader:(t,e)=>{if(!t||!t.state)return ig;const n=t.state;return 0==(2&n.wrap)?ig:(n.head=e,e.done=!1,ng)},inflateSetDictionary:(t,e)=>{const n=e.length;let r,o,i;return t&&t.state?(r=t.state,0!==r.wrap&&11!==r.mode?ig:11===r.mode&&(o=1,o=kv(o,e,n,0),o!==r.check)?cg:(i=Sg(t,e,n,n),i?(r.mode=31,ug):(r.havedict=1,ng))):ig},inflateInfo:"pako inflate (from Nodeca project)"};var _g=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const kg=Object.prototype.toString,{Z_NO_FLUSH:Tg,Z_FINISH:Rg,Z_OK:jg,Z_STREAM_END:Pg,Z_NEED_DICT:xg,Z_STREAM_ERROR:Ug,Z_DATA_ERROR:Ag,Z_MEM_ERROR:Cg}=Pv;function Dg(t){this.options=km({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Am,this.strm.avail_out=0;let n=Eg.inflateInit2(this.strm,e.windowBits);if(n!==jg)throw new Error(jv[n]);if(this.header=new _g,Eg.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Pm(e.dictionary):"[object ArrayBuffer]"===kg.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Eg.inflateSetDictionary(this.strm,e.dictionary),n!==jg)))throw new Error(jv[n])}function Ig(t,e){const n=new Dg(e);if(n.push(t),n.err)throw n.msg||jv[n.err];return n.result}Dg.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let i,c,u;if(this.ended)return!1;for(c=e===~~e?e:!0===e?Rg:Tg,"[object ArrayBuffer]"===kg.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=Eg.inflate(n,c),i===xg&&o&&(i=Eg.inflateSetDictionary(n,o),i===jg?i=Eg.inflate(n,c):i===Ag&&(i=xg));n.avail_in>0&&i===Pg&&n.state.wrap>0&&0!==t[n.next_in];)Eg.inflateReset(n),i=Eg.inflate(n,c);switch(i){case Ug:case Ag:case xg:case Cg:return this.onEnd(i),this.ended=!0,!1}if(u=n.avail_out,n.next_out&&(0===n.avail_out||i===Pg))if("string"===this.options.to){let t=Um(n.output,n.next_out),e=n.next_out-t,o=xm(n.output,t);n.next_out=e,n.avail_out=r-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(o)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(i!==jg||0!==u){if(i===Pg)return i=Eg.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Dg.prototype.onData=function(t){this.chunks.push(t)},Dg.prototype.onEnd=function(t){t===jg&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Tm(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var qg={Inflate:Dg,inflate:Ig,inflateRaw:function(t,e){return(e=e||{}).raw=!0,Ig(t,e)},ungzip:Ig,constants:Pv};const{Deflate:Bg,deflate:Mg,deflateRaw:Ng,gzip:Lg}=Vm,{Inflate:zg,inflate:Fg,inflateRaw:Hg,ungzip:Zg}=qg;var Vg={Deflate:Bg,deflate:Mg,deflateRaw:Ng,gzip:Lg,Inflate:zg,inflate:Fg,inflateRaw:Hg,ungzip:Zg,constants:Pv};function Wg(t){return Wg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wg(t)}function Gg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yg(){return Yg="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Kg(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Yg.apply(this,arguments)}function Kg(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tw(t)););return t}function Qg(t,e){return Qg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Qg(t,e)}function Jg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=tw(t);if(e){var o=tw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xg(this,n)}}function Xg(t,e){if(e&&("object"===Wg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $g(t)}function $g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tw(t){return tw=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},tw(t)}var ew=F(),nw=function(t){return{header:function(t){return{type:new Uint8Array(t.slice(0,a)),messageLength:new Uint8Array(t.slice(a,a+s)),flags:new Uint8Array(t.slice(a+s,l))}}(t.slice(0,l)),body:new Uint8Array(t.slice(l))}};function rw(t){return void 0===t?ew(this).currentSerializer:ew(this).serializers[t.name]}var ow=function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qg(t,e)}(u,n);var r,o,i,c=Jg(u);function u(n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),void 0===n&&(n={}),(r=c.call(this)).headers={requesting:Z(N),responding:Z(L)},ew($g(r)).serializers={JsonPacketSerializer:t,MsgPackSerializer:e},void 0!==n.requesting&&function(t,e){for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r];void 0!==e[o]&&(t[o]=e[o])}}(r.headers.requesting,n.requesting),void 0!==n.responding&&function(t,e){for(var n=Object.keys(t),r=Object.keys(e),o=0;o<n.length;o++)for(var i=n[o],c=t[i],u=0;u<r.length;u++){var a=r[u],s=e[a];if(c===s){delete t[i],t[a]=s;break}}}(r.headers.responding,n.responding),r.serializerType=X.JsonPacketSerializer,ew($g(r)).messages={},r}return r=u,o=[{key:"serializerType",get:function(){return ew(this).serializerType},set:function(n){var r=X.getValue(n);void 0!==r&&(r===X.MsgPackSerializer?ew(this).currentSerializer=e:(ew(this).currentSerializer=t,r=X.JsonPacketSerializer),ew(this).serializerType=r)}},{key:"registerMessages",value:function(t,e,n){Object.assign(ew(this).messages,t),Object.assign(this.headers.requesting,e),Object.assign(this.headers.responding,n)}},{key:"processResponse",value:function(t,e){var n=this;Yg(tw(u.prototype),"processResponse",this).call(this,t);var r=this,o=rw.call(this,e);return new Promise((function(e,i){var c=nw(t),u=c.header,a=c.body,s=Nb(u.type),f=r.headers.responding[s];if(void 0===f)i(new Error("".concat("Unknown type of message",", ID of message is ").concat(Nb(u.type))));else{var l=!1;switch(Array.from(u.flags).join(",")){case"0,0,0,0,0,0,0,0":l=!0;break;case"1,0,0,0,0,0,0,0":l=!0,a=Vg.inflate(a)}if(!l)return void i(new Error("Unknown type of compressor"));var y=ew(n).messages[f];void 0!==y?e(o.deserialize(y,a)):i(new Error("Message ".concat(f," is not registered for processing response message.")))}}))}},{key:"processRequest",value:function(t,e){var n=this;Yg(tw(u.prototype),"processRequest",this).call(this,t);var r=rw.call(this,e);return new Promise((function(e,o){var i=n.headers.requesting[t.messageType];void 0===i&&o(new Error('Cannot send request, because message "'.concat(t.messageType,'" does not have ID of message to sending request."')));var c,u=Lb(i),y=r.serialize(t),p=new Uint8Array(l+y.length);p.set(u);var h=Lb(y.length),d=Array.from(h);for(p.set(d,a),c=0;c<f;c++)p[c+a+s]=0;p.set(y,l),e(p)}))}}],o&&Gg(r.prototype,o),i&&Gg(r,i),u}(Bb);function iw(t){return iw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iw(t)}function cw(t,e){return cw=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},cw(t,e)}function uw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fw(t);if(e){var o=fw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aw(this,n)}}function aw(t,e){if(e&&("object"===iw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sw(t)}function sw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fw(t){return fw=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fw(t)}var lw=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cw(t,e)}(n,t);var e=uw(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).GZipPacketCompressor=j.createEmpty(),U(sw(t),"CompressorType",Object.keys(sw(t))),t}return n}(x));function yw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var pw=X.MsgPackSerializer,hw=function(t){t.socket.onOpen.subscribe((function(){return dw(t,M.Connected)})),t.socket.onClose.subscribe((function(){return dw(t,M.Disconnected)})),t.socket.onMessage.subscribe((function(e){return function(t,e){t.isValidServer?t.packService.processResponse(e).then((function(e){return e.messageType===Ed.messageType?t.send(e,pw):t.dataReceived.notify(e)}),(function(e){return ro(t.onResponsePackError,e)})):t.packService.processResponse(e,X.JsonPacketSerializer).then((function(e){if("HandShake"!==e.messageType)ro(t.onResponsePackError,new Error("Server is not valid"));else{var n=new mc;n.PacketSerializer=pw.name,n.PacketCompressor=lw.GZipPacketCompressor.name,t.send(n,X.JsonPacketSerializer),t.packService.serializerType=pw,t.isValidServer=!0,t.onReady.notify()}}),(function(e){return ro(t.onResponsePackError,e)}))}(t,e.data)})),t.socket.onError.subscribe((function(e){return t.onServerError.notify(e)}))},dw=function(t,e){t.serverState=e,t.serverStateChanged.notify(e)},bw=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isValidServer=o,this.packService=new ow,this.url="",this.serverState=M.Disconnected,this.serverStateChanged=new k,this.onReady=new k,this.dataReceived=new k,this.onResponsePackError=new k,this.onRequestPackError=new k,this.onServerError=new k,this.socket=new R,this.receivedMessageDate=c(),hw(this)}var e,n,r;return e=t,(n=[{key:"connect",value:function(t){this.url=t,this.reconnect()}},{key:"reconnect",value:function(){this.socket.webSocketState!==WebSocket.CLOSED&&this.disconnect(),this.isValidServer=!1,this.socket.connect(this.url),dw(this,M.Connecting)}},{key:"disconnect",value:function(){this.socket.disconnect()}},{key:"send",value:function(t,e){var n=this;this.packService.processRequest(t,e).then((function(t){return n.socket.send(t)}),(function(t){return ro(n.onRequestPackError,t)}))}},{key:"dispose",value:function(){this.socket.dispose(),this.serverStateChanged.dispose(),this.dataReceived.dispose(),this.onResponsePackError.dispose(),this.onRequestPackError.dispose(),this.onServerError.dispose(),hw(this)}}])&&yw(e.prototype,n),r&&yw(e,r),t}(),vw={HandShake:dc,HandShakeResponse:mc,SystemPingMessage:Ed},mw={AuthenticationRequest:Ah,AuthenticationSuccessResponse:vi,AuthenticationFailedResponse:Si,UaEquityExecutorAccountConnectionStatus:$i},gw={DataLimitation:Co,DataAccess:Zo,UserCredentials:Ph,UserInfo:yi,ChannelConnectionSettings:ei},ww={UaEquityAlert:Vf,NewUaEquityOrder:gy,CancelUaEquityOrder:Ll,UaEquityPosition:vp,UaEquityPositionOpenUpdate:Df,UaEquityTrade:qp,UaEquityCanceled:fl,UaEquityCancelling:Ol,UaEquityCancelReject:Jl,UaEquityOrderError:ay,UaEquityPending:xy,UaEquityReject:zy,UaEquitySending:Xy,UaEquityOrderStatusInfo:rf,UaEquityExecutionHistory:zp},Ow={UaEquityLevelData:Ea,UaEquityMarketTime:Cu,UaEquityPrint:Ac,UaEquityQuote:ra,UaEquityTodayInfo:Vu,UaEquityOrderBookCache:Na};function Sw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ew="UserUaEquityAccountLinkInfo",_w=V(["AccountNames","User"]);function kw(t){t.creationType===y&&(vo(this,t,"User"),vo(this,t,"AccountNames"))}var Tw={UaEquityAccountInfo:vs,UaEquityAccountInfoUpdate:pd,UaEquityAccountOpenUpdate:ad,UaEquityMarketCommission:ns,UaEquityRiskInfo:ys,UaEquityTradingStatistic:us,UserUaEquityAccountLinkInfo:function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?kw.call(this,e):(this.User=i,this.AccountNames=[])}var e,n,r;return e=t,r=[{key:"messageType",get:function(){return Ew}},{key:"createEmpty",value:function(){return new t}},{key:"createByMsgpack",value:function(e){return new t({model:e,keys:_w,creationType:y})}}],(n=[{key:"messageType",get:function(){return Ew}}])&&Sw(e.prototype,n),r&&Sw(e,r),t}()},Rw={UaEquityBar:uu,UaEquityHistoricalDataRequest:eu,UaEquityHistoricalDataResponse:Eu,TimeOfDay:Gc,UaEquityTick:yu};function jw(t){return jw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jw(t)}function Pw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xw(t,e){return xw=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},xw(t,e)}function Uw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cw(t);if(e){var o=Cw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Aw(this,n)}}function Aw(t,e){if(e&&("object"===jw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Cw(t){return Cw=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Cw(t)}var Dw="UaEquityAccountInfoRequest",Iw=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xw(t,e)}(c,t);var e,n,r,o=Uw(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=o.call(this,t)).AccountName=i,e}return e=c,r=[{key:"messageType",get:function(){return Dw}}],(n=[{key:"messageType",get:function(){return Dw}}])&&Pw(e.prototype,n),r&&Pw(e,r),c}(Bi),qw={ConnectionValidation:vw,Authentication:mw,User:gw,Execution:ww,Market:Ow,Manager:Tw,Historical:Rw,RequestAndResults:{UaEquityOrderStatusRequest:yh,UaEquityOrderStatusResponse:df,RequestResult:Yi,UaEquityExecutionHistoryRequest:Ih,UaEquityExecutionHistoryResponse:Xp,UaEquityMarketDataRequest:sh,UaEquityMarketDataRequestReject:ju,UaEquityTimeRequest:ch,UaEquityTimeResponse:fc,LinkedUaEquityAccountsRequest:Oh,LinkedUaEquityAccountsResponse:js,UaEquityAccountInfoRequest:Iw,UaEquityAccountInfoResponse:rd,PasswordChangeRequest:Bd},SystemNotification:Ci,ServerStateMessage:Wh},Bw=function(t,e){return void 0===e?t:{message:t,model:e}},Mw=function(t,e){!0===(void 0===e?void 0!==window.IntenseLabSession||window.IntenseLabSession.debugMode:e)&&console.log(t)};n(2564);function Nw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Lw=F(),zw=function(t,e,n){Lw(t)[e]=Lw(t).derived[e]=n},Fw=function t(e){if(Lw(e).isKeepAlive&&Lw(e).networkService.serverState.key===M.Disconnected.key){var n=Lw(e).url;try{Lw(e).networkService.connect(n)}catch(t){t.message="Connection of ".concat(Lw(e).derived.type," had problem: ").concat(t.message),ro(Lw(e).subscribers.Error,new Error(t))}finally{setTimeout((function(){return t(e)}),Lw(e).derived.reconnectingDelay||3e3)}}},Hw=function(t){Lw(t).networkService.dataReceived.subscribe((function(e){return function(t,e){if(void 0===e.constructor)ro(Lw(t).subscribers.Error,new Error('Constructor of received data is "undefined"'));else{var n=e.messageType;void 0===Lw(t).subscribers[n]||Lw(t).subscribers[n].notify(e,t)}}(t,e)})),Lw(t).networkService.serverStateChanged.subscribe((function(e){Lw(t).subscribers.ServerState.notify(e),e.key===M.Disconnected.key&&Fw(t)})),window.islbNetworks[Lw(t).derived.dataChannelType.key].authOnSubscribed||(Lw(t).networkService.onReady.subscribe((function(){var e=new qw.Authentication.AuthenticationRequest;e.UserCredentials=Lw(t).currentUserCredentials,Lw(t).networkService.send(e)})),window.islbNetworks[Lw(t).derived.dataChannelType.key].authOnSubscribed=!0)};function Zw(){if(Lw(this).networkService.serverState.name===M.Ready){var t=Lw(this).networkService.receivedMessageDate.getTime();7e4<(new Date).getTime()-t&&Lw(this).networkService.disconnect()}}var Vw=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),void 0===e&&(e=Object.create(null)),Lw(this).derived=e,zw(this,"currentUserCredentials",new qw.User.UserCredentials),zw(this,"subscribers",oo(["ServerState","ServerStateMessage","AuthenticationSuccessResponse","AuthenticationFailedResponse","Error","HeartBeat","RequestResult"]));var r=void 0;e.type?(void 0===window.islbNetworks&&(window.islbNetworks={}),void 0!==window.islbNetworks[e.dataChannelType.key]&&(r=window.islbNetworks[e.dataChannelType.key].socket)):zw(this,"type","BaseDataClient"),void 0===r&&(r=new bw,void 0===window.islbNetworks&&(window.islbNetworks={}),window.islbNetworks[e.dataChannelType.key]={socket:r}),r.packService.registerMessages(Md,N,L),zw(this,"networkService",r),Lw(this).url=i,Lw(this).isKeepAlive=o,Lw(this).serverState=M.Disconnected,Lw(this).subscribers.ServerStateMessage.notify=function(t,e){var n=t.State;Lw(e).serverState=n,Lw(e).subscribers.ServerState.notify(n)},setInterval((function(){return Zw.bind(n)()}),6e4),Hw(this)}var e,n,r;return e=t,(n=[{key:"ServerState",get:function(){return Lw(this).serverState}},{key:"SerializerType",get:function(){return Lw(this).networkService.packService.serializerType},set:function(t){Lw(this).networkService.packService.serializerType=t}},{key:"OnServerStateChanged",get:function(){return Lw(this).subscribers.ServerState.observer}},{key:"OnAuthenticationSuccessResponse",get:function(){return Lw(this).subscribers.AuthenticationSuccessResponse.observer}},{key:"OnAuthenticationFailedResponse",get:function(){return Lw(this).subscribers.AuthenticationFailedResponse.observer}},{key:"OnRequestResult",get:function(){return Lw(this).subscribers.RequestResult.observer}},{key:"OnClientException",get:function(){return Lw(this).subscribers.Error.observer}},{key:"Connect",value:function(t){Lw(this).url=t;var e=Lw(this).networkService.serverState;e.key!==M.Disconnected.key&&e.key!==M.Problem.key||Lw(this).networkService.connect(t),Lw(this).isKeepAlive=!0}},{key:"Disconnect",value:function(){Lw(this).isKeepAlive=!1,Lw(this).networkService.disconnect()}},{key:"UpdateUserCredentials",value:function(t){zw(this,"currentUserCredentials",t)}},{key:"setNetworkService",value:function(t){Lw(this).networkService.dispose(),zw(this,"networkService",t),Hw(this)}}])&&Nw(e.prototype,n),r&&Nw(e,r),t}();function Ww(t){return Ww="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ww(t)}function Gw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kw(t,e){return Kw=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Kw(t,e)}function Qw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$w(t);if(e){var o=$w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jw(this,n)}}function Jw(t,e){if(e&&("object"===Ww(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xw(t)}function Xw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $w(t){return $w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$w(t)}var tO=F(),eO=function(t,e){tO(t).current.networkService.send(e)},nO=function(t){return tO(t).current.currentUserCredentials.UserName},rO=function(t){t.TicketNo=t.TicketNoString,delete t.TicketNoString};function oO(t){for(var e=this,n=function(n){var r=t[n];tO(e).subscribers[r].notify=function(t,e){rO(t),tO(e).subscribers[r].subject.notify(t)}},r=0;r<t.length;r++)n(r)}var iO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kw(t,e)}(i,t);var e,n,r,o=Qw(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null);return Gw(this,i),e.type="UaEquityExecutionDataClient",e.dataChannelType=ct.UaEquityExecutionData,t=o.call(this,e),tO(Xw(t)).current=e,tO(Xw(t)).subscribers=oo(["UaEquityPosition","UaEquityPending","UaEquitySending","UaEquityTrade","UaEquityCancelling","UaEquityCanceled","UaEquityReject","UaEquityCancelReject","UaEquityOrderError","UaEquityAlert","UaEquityExecutionHistoryResponse","UaEquityPositionOpenUpdate","UaEquityOrderStatusResponse","UaEquityAccountOpenUpdate"],e.subscribers),oO.call(Xw(t),["UaEquityPosition","UaEquityPending","UaEquitySending","UaEquityTrade","UaEquityCancelling","UaEquityCanceled","UaEquityCancelReject","UaEquityReject"]),tO(Xw(t)).subscribers.UaEquityOrderStatusResponse.notify=function(t,e){rO(t.StatusInfo),tO(e).subscribers.UaEquityOrderStatusResponse.subject.notify(t)},tO(Xw(t)).subscribers.UaEquityExecutionHistoryResponse.notify=function(t,e){for(var n=t.ExecutionHistory,r=[n.Alerts,n.Canceleds,n.Cancellings,n.CancelOrders,n.CancelRejects,n.OrderErrors,n.Orders,n.Pendings,n.Rejects,n.Sendings,n.Trades,n.PositionUpdates,n.CurrentPositionStates],o=0;o<r.length;o++)for(var i=r[o],c=0;c<i.length;c++)rO(i[c]);tO(e).subscribers.UaEquityExecutionHistoryResponse.subject.notify(t)},t}return e=i,(n=[{key:"OnPositionOpenUpdate",get:function(){return tO(this).subscribers.UaEquityPositionOpenUpdate.observer}},{key:"OnPositionUpdate",get:function(){return tO(this).subscribers.UaEquityPosition.observer}},{key:"OnPending",get:function(){return tO(this).subscribers.UaEquityPending.observer}},{key:"OnSending",get:function(){return tO(this).subscribers.UaEquitySending.observer}},{key:"OnTrade",get:function(){return tO(this).subscribers.UaEquityTrade.observer}},{key:"OnCancelling",get:function(){return tO(this).subscribers.UaEquityCancelling.observer}},{key:"OnCanceled",get:function(){return tO(this).subscribers.UaEquityCanceled.observer}},{key:"OnReject",get:function(){return tO(this).subscribers.UaEquityReject.observer}},{key:"OnCancelReject",get:function(){return tO(this).subscribers.UaEquityCancelReject.observer}},{key:"OnOrderError",get:function(){return tO(this).subscribers.UaEquityOrderError.observer}},{key:"OnAlert",get:function(){return tO(this).subscribers.UaEquityAlert.observer}},{key:"OnExecutionHistoryResponse",get:function(){return tO(this).subscribers.UaEquityExecutionHistoryResponse.observer}},{key:"OnOrderStatusResponse",get:function(){return tO(this).subscribers.UaEquityOrderStatusResponse.observer}},{key:"OnAccountOpenUpdate",get:function(){return tO(this).subscribers.UaEquityAccountOpenUpdate.observer}},{key:"PlaceOrder",value:function(t){Nd(tO(this).subscribers.Error,t,gy)&&(t.UserName=nO(this),t.TicketNo=0,eO(this,t))}},{key:"CancelOrder",value:function(t){Nd(tO(this).subscribers.Error,t,Ll)&&(t.UserName=nO(this),t.TicketNoString=t.TicketNo,t.TicketNo=0,eO(this,t))}},{key:"SendExecutionHistoryRequest",value:function(t){Nd(tO(this).subscribers.Error,t,Ih)&&eO(this,t)}},{key:"SendOrderStatusRequest",value:function(t){Nd(tO(this).subscribers.Error,t,yh)&&eO(this,t)}}])&&Yw(e.prototype,n),r&&Yw(e,r),i}(Vw);function cO(t){return cO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cO(t)}function uO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sO(t,e){return sO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},sO(t,e)}function fO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pO(t);if(e){var o=pO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lO(this,n)}}function lO(t,e){if(e&&("object"===cO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yO(t)}function yO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pO(t){return pO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pO(t)}var hO=F(),dO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sO(t,e)}(i,t);var e,n,r,o=fO(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null);return uO(this,i),e.type="UaEquityHistoricalDataClient",e.dataChannelType=ct.UaEquityHistoricalData,t=o.call(this,e),hO(yO(t)).current=e,hO(yO(t)).subscribers=e.subscribers,hO(yO(t)).subscribers.UaEquityHistoricalDataResponse=new k,t}return e=i,(n=[{key:"OnHistoricalDataResponse",get:function(){return hO(this).subscribers.UaEquityHistoricalDataResponse.observer}},{key:"SendHistoricalRequest",value:function(t){var e;Nd(hO(this).subscribers.Error,t,eu)&&(e=t,hO(this).current.networkService.send(e))}}])&&aO(e.prototype,n),r&&aO(e,r),i}(Vw);function bO(t){return bO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bO(t)}function vO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gO(t,e){return gO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},gO(t,e)}function wO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=EO(t);if(e){var o=EO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OO(this,n)}}function OO(t,e){if(e&&("object"===bO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return SO(t)}function SO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EO(t){return EO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},EO(t)}var _O=F(),kO=function(t,e){_O(t).current.networkService.send(e)},TO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gO(t,e)}(i,t);var e,n,r,o=wO(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null);return vO(this,i),e.type="UaEquityMarketDataClient",e.dataChannelType=ct.UaEquityMarketData,t=o.call(this,e),_O(SO(t)).current=e,_O(SO(t)).subscribers=oo(["UaEquityLevelData","UaEquityOrderBookCache","UaEquityPrint","UaEquityQuote","UaEquityTodayInfo","UaEquityMarketTime","UaEquityMarketDataRequestReject","UaEquityTimeResponse","UaEquityGeneralSymbolInfo"],e.subscribers),t}return e=i,(n=[{key:"OnLevelDataUpdate",get:function(){return _O(this).subscribers.UaEquityLevelData.observer}},{key:"OnOrderBookCache",get:function(){return _O(this).subscribers.UaEquityOrderBookCache.observer}},{key:"OnPrint",get:function(){return _O(this).subscribers.UaEquityPrint.observer}},{key:"OnQuote",get:function(){return _O(this).subscribers.UaEquityQuote.observer}},{key:"OnTodayInfo",get:function(){return _O(this).subscribers.UaEquityTodayInfo.observer}},{key:"OnGeneralSymbolInfo",get:function(){return _O(this).subscribers.UaEquityGeneralSymbolInfo.observer}},{key:"OnMarketTime",get:function(){return _O(this).subscribers.UaEquityMarketTime.observer}},{key:"OnMarketDataRequestReject",get:function(){return _O(this).subscribers.UaEquityMarketDataRequestReject.observer}},{key:"OnTimeResponse",get:function(){return _O(this).subscribers.UaEquityTimeResponse.observer}},{key:"SendMarketDataRequest",value:function(t){Nd(_O(this).subscribers.Error,t,sh)&&kO(this,t)}},{key:"SendTimeRequest",value:function(t){Nd(_O(this).subscribers.Error,t,ch)&&kO(this,t)}}])&&mO(e.prototype,n),r&&mO(e,r),i}(Vw);function RO(t){return RO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RO(t)}function jO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xO(t,e){return xO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},xO(t,e)}function UO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=DO(t);if(e){var o=DO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return AO(this,n)}}function AO(t,e){if(e&&("object"===RO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return CO(t)}function CO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DO(t){return DO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DO(t)}var IO=F(),qO=function(t,e){IO(t).current.networkService.send(e)},BO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xO(t,e)}(i,t);var e,n,r,o=UO(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.create(null);return jO(this,i),e.type="UaEquityManagementDataClient",e.dataChannelType=ct.ManagementData,t=o.call(this,e),IO(CO(t)).current=e,IO(CO(t)).subscribers=oo(["UserInfo","UaEquityAccountInfoUpdate","UserUaEquityAccountLinkInfo","UaEquityAccountInfoResponse","LinkedUaEquityAccountsResponse"],e.subscribers),t}return e=i,(n=[{key:"SendPasswordChangeRequest",value:function(t){Nd(IO(this).subscribers.Error,t,Bd)&&qO(this,t)}},{key:"SendLinkedAccountsRequest",value:function(t){Nd(IO(this).subscribers.Error,t,Oh)&&qO(this,t)}},{key:"SendAccountInfoRequest",value:function(t){Nd(IO(this).subscribers.Error,t,Iw)&&qO(this,t)}},{key:"OnUserInfoUpdate",get:function(){return IO(this).subscribers.UserInfo.observer}},{key:"OnAccountInfoUpdate",get:function(){return IO(this).subscribers.UaEquityAccountInfoUpdate.observer}},{key:"OnUserAccountLinksUpdate",get:function(){return IO(this).subscribers.UserUaEquityAccountLinkInfo.observer}},{key:"OnAccountInfoResponse",get:function(){return IO(this).subscribers.UaEquityAccountInfoResponse.observer}},{key:"OnLinkedAccountsResponse",get:function(){return IO(this).subscribers.LinkedUaEquityAccountsResponse.observer}}])&&PO(e.prototype,n),r&&PO(e,r),i}(Vw),MO={UaEquityExecutionDataClient:iO,UaEquityHistoricalDataClient:dO,UaEquityMarketDataClient:TO,ManagementDataClient:BO};function NO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var LO=F(),zO=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),LO(this).ExecutionData={},LO(this).HistoricalData={},LO(this).MarketData={},LO(this).ManagementData={},LO(this).clientNames=[ct.UaEquityExecutionData.name,ct.UaEquityHistoricalData.name,ct.UaEquityMarketData.name,ct.ManagementData.name],this.ExecutionData=new MO.UaEquityExecutionDataClient(LO(this).ExecutionData),this.HistoricalData=new MO.UaEquityHistoricalDataClient(LO(this).HistoricalData),this.MarketData=new MO.UaEquityMarketDataClient(LO(this).MarketData),this.ManagementData=new MO.ManagementDataClient(LO(this).ManagementData),LO(this).clients=[this.ExecutionData,this.HistoricalData,this.MarketData,this.ManagementData]}var e,n,r;return e=t,(n=[{key:"connect",value:function(t){var e=t.UserInfo.DataAccess;if(e){for(var n={},r=0;r<e.length;r++){var o=e[r];n[o.AccessName]=o}for(var i=t.UserInfo.ConnectionSettings,c={},u=0;u<i.length;u++){var a=i[u];void 0!==a.Channel&&(c[a.Channel.key]=a)}n.UaEquityMarket.Enabled&&(n.UaEquityMarketData.Enabled&&this.MarketData.Connect(c[ct.UaEquityMarketData.key].ConnectionString),n.UaEquityExecutionData.Enabled&&this.ExecutionData.Connect(c[ct.UaEquityExecutionData.key].ConnectionString),n.UaEquityHistoricalData.Enabled&&this.HistoricalData.Connect(c[ct.UaEquityHistoricalData.key].ConnectionString)),n.ManagementData.Enabled&&this.ManagementData.Connect(c[ct.ManagementData.key].ConnectionString)}}},{key:"disconnect",value:function(){d(LO(this).clients,(function(t){return t.Disconnect()}))}},{key:"updateUserCredentials",value:function(t){d(LO(this).clients,(function(e){return e.UpdateUserCredentials(t)}))}},{key:"processServerStateMessage",value:function(t,e){void 0!==LO(this)[e.name]&&LO(this)[e.name].subscribers.ServerState.notify(t,this[e.name])}},{key:"processAuthenticationFailedResponse",value:function(t,e){var n=e.name;void 0!==LO(this)[n]&&(LO(this)[n].subscribers.AuthenticationFailedResponse.notify(t,this[n]),this[n].Disconnect())}},{key:"notifyDisconnectedServers",value:function(){for(var t=0;t<LO(this).clientNames.length;t++){var e=LO(this).clientNames[t];LO(this)[e].subscribers.ServerState.notify(M.Disconnected,this[e])}}},{key:"setSerializerType",value:function(t){d(LO(this).clients,(function(e){e.SerializerType=t}))}}])&&NO(e.prototype,n),r&&NO(e,r),t}();function FO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var HO=F(),ZO=function(t){HO(t).authNewtworkService.packService.registerMessages(Md,N,L),HO(t).authNewtworkService.onServerError.subscribe((function(e){return KO(e,t)})),HO(t).authNewtworkService.onResponsePackError.subscribe((function(e){return KO(e,t)})),HO(t).authNewtworkService.onRequestPackError.subscribe((function(e){return KO(e,t)})),HO(t).authNewtworkService.dataReceived.subscribe((function(e){return function(t,e){if(void 0===e.messageType)ro(HO(t).subscribers.Error,new Error("Received data is not model of Message"));else{if(t.debugMode){var n=Bw("Data is received from API UA Equity InteseLab Market",e);Mw(n,t.debugMode)}var r=e.messageType;if(void 0===HO(t).subscribers[r]){if(t.debugMode){var o='Type of received data "'.concat(r,'" does not support on IntenseLabUaEquityMarket');ro(HO(t).subscribers.Error,new Error(o))}}else HO(t).subscribers[r].notify(e,t)}}(t,e)})),HO(t).authNewtworkService.serverStateChanged.subscribe((function(e){return HO(t).subscribers.ServerState.subject.notify(e)})),HO(t).authNewtworkService.onReady.subscribe((function(){var e=new qw.Authentication.AuthenticationRequest;e.UserCredentials=HO(t).currentUserCredentials,HO(t).authNewtworkService.send(e)}))},VO=function(t,e){var n=t.NotificationCode.key===Qr.NotificationCode.UserForceDisconnect.key;n&&e.Disconnect(),HO(e).subscribers.SystemNotification.subject.notify(t),n&&HO(e).clientsService.notifyDisconnectedServers()},WO=function(t,e){t.ServerChannel.name===Qr.DataChannelType.Authentication.name?HO(e).subscribers.ServerState.subject.notify(t.State):HO(e).clientsService.processServerStateMessage(t.State,t.ServerChannel)},GO=function(t,e){t.Channel.key===Qr.DataChannelType.Authentication.key?(HO(e).subscribers.AuthenticationFailedResponse.subject.notify(t),HO(e).authNewtworkService.disconnect()):HO(e).clientsService.processAuthenticationFailedResponse(t,t.Channel)},YO=function(t,e){HO(e).subscribers.AuthenticationSuccessResponse.subject.notify(t),HO(e).isAuthenticated||(HO(e).isAuthenticated=!0,HO(e).authNewtworkService.disconnect(),HO(e).currentUser=t.UserInfo,HO(e).subscribers.UserCredentials.subject.notify(HO(e).currentUserCredentials),HO(e).clientsService.updateUserCredentials(HO(e).currentUserCredentials),HO(e).clientsService.connect(t))},KO=function(t,e){ro(HO(e).subscribers.Error,t)},QO=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),HO(this).currentUserCredentials=new qw.User.UserCredentials,HO(this).currentUser=void 0,HO(this).url=i,HO(this).localization=Qr.Localization.getDefault(),HO(this).authNewtworkService=new bw,HO(this).isAuthenticated=!1,HO(this).clientsService=new zO,ZO(this),HO(this).subscribers=oo(["UserCredentials","SystemNotification","AuthenticationSuccessResponse","AuthenticationFailedResponse","RequestResult","ServerState","ServerStateMessage","UaEquityExecutorAccountConnectionStatus","Error"]),this.Enums=Qr,this.Messages=qw,this.debugMode=!1,HO(this).subscribers.SystemNotification.notify=VO,HO(this).subscribers.ServerStateMessage.notify=WO,HO(this).subscribers.AuthenticationFailedResponse.notify=GO,HO(this).subscribers.AuthenticationSuccessResponse.notify=YO}var e,n,r;return e=t,(n=[{key:"Localization",get:function(){return HO(this).localization}},{key:"SerializerType",get:function(){return HO(this).authNewtworkService.packService.serializerType},set:function(t){void 0!==Qr.SerializerType.getValue(t)?(HO(this).authNewtworkService.packService.serializerType=t,HO(this).clientsService.setSerializerType(t)):ro(HO(this).subscribers.Error,new Error('Wrong value of parameter, this value must exist in collection of enumeration "SerializerType"'))}},{key:"ExecutionDataClient",get:function(){return HO(this).clientsService.ExecutionData}},{key:"HistoricalDataClient",get:function(){return HO(this).clientsService.HistoricalData}},{key:"MarketDataClient",get:function(){return HO(this).clientsService.MarketData}},{key:"ManagementDataClient",get:function(){return HO(this).clientsService.ManagementData}},{key:"OnServerStateChanged",get:function(){return HO(this).subscribers.ServerState.observer}},{key:"OnUpdateAuthenticationInfo",get:function(){return HO(this).subscribers.UserCredentials.observer}},{key:"OnSystemNotification",get:function(){return HO(this).subscribers.SystemNotification.observer}},{key:"OnAuthenticationSuccessResponse",get:function(){return HO(this).subscribers.AuthenticationSuccessResponse.observer}},{key:"OnAuthenticationFailedResponse",get:function(){return HO(this).subscribers.AuthenticationFailedResponse.observer}},{key:"OnRequestResult",get:function(){return HO(this).subscribers.RequestResult.observer}},{key:"OnUaEquityExecutorAccountConnectionStatus",get:function(){return HO(this).subscribers.UaEquityExecutorAccountConnectionStatus.observer}},{key:"OnException",get:function(){return HO(this).subscribers.Error.observer}},{key:"Connect",value:function(t,e,n){try{HO(this).isAuthenticated&&this.Disconnect(),HO(this).authNewtworkService.connect(n),HO(this).currentUserCredentials=new qw.User.UserCredentials(t,e)}catch(t){ro(HO(this).subscribers.Error,t)}}},{key:"Disconnect",value:function(){HO(this).authNewtworkService.socket.disconnect(),HO(this).clientsService.disconnect(),HO(this).isAuthenticated=!1,HO(this).currentUser=void 0,HO(this).currentUserCredentials=void 0}},{key:"CreateNewInstance",value:function(){return new t}},{key:"setNetworkService",value:function(t){HO(this).authNewtworkService.dispose(),HO(this).authNewtworkService=t,ZO(this)}}])&&FO(e.prototype,n),r&&FO(e,r),t}())}();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})}();