UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

13 lines 5.13 MB
/*! THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib"),require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","tslib","@angular/core","@angular/common"],t):t((e=e||self)["igniteui-angular-core"]={},e.tslib,e.i0,e.i1)}(this,(function(e,t,n,i){"use strict"; /*! THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */var r={},o=0;function a(e){return e.$type?e.$type:"number"==typeof e?q:"string"==typeof e?U:"boolean"==typeof e?Y:e instanceof Date?K:u.prototype.$type}var u=function(){function e(){}return e.prototype.equals=function(e){return this===e},e.equalsStatic=function(e,t){var n=null==e||!!e.isNullable&&!e.hasValue,i=null==t||!!t.isNullable&&!t.hasValue;return n||i?n&&i:e.equals?e.equals(t):t.equals?t.equals(e):!(!Number.isNaN(e)||!Number.isNaN(t))||(e instanceof Date?t instanceof Date&&+e==+t:e==t&&typeof e==typeof t)},e.equalsSimple=function(e,t){return e==t},e.compareSimple=function(e,t){return e==t?0:e<t?-1:1},e.compare=function(t,n){if(t===n)return 0;var i=p(j,t);if(null!==i&&i.compareToObject)return i.compareToObject(n);var r=p(j,n);return null!==r&&r.compareToObject?-r.compareToObject(t):e.compareSimple(t,n)},e.prototype.getHashCode=function(){return void 0===this.$hashCode&&(this.$hashCode=e.nextHashCode++),this.$hashCode},e.getHashCodeStatic=function(t){return t.getHashCode?t.getHashCode():void 0!==t.$hashCode?t.$hashCode:"object"!=typeof t?s.getPrimitiveHashCode(t):(t.$hashCode=e.nextHashCode++,t.$hashCode)},e.prototype.memberwiseClone=function(){var e;try{e=Object.create(this.$type.InstanceConstructor.prototype)}catch(n){var t=function(){return function(){}}();t.prototype=this.$type.InstanceConstructor.prototype,e=new t}for(var n in this)this.hasOwnProperty(n)&&(e[n]=this[n]);return e},e.referenceEquals=function(e,t){return e===t||null==e&&null==t},e.getArrayOfValues=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},e.getArrayOfProperties=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},e.nextHashCode=0,e}(),s=function(e){function n(t,n,i,a,s){void 0===i&&(i=u.prototype.$type),void 0===a&&(a=null),void 0===s&&(s=null);var l=e.call(this)||this;l.specializationCache=null,l._staticInitializer=null,l.name=null,l.typeArguments=null,l.baseType=null,l.interfaces=null,l.isEnumType=!1,l._isGenericType=void 0,l._staticFields=null,l.isNullable=!1,l._$nullNullable=null,l.enumInfo=null,l.specializationCache={},l._staticInitializer=s,l._fullName=n,l.name=n,l.InstanceConstructor=t;var c=l.name.lastIndexOf(".");return c>=0&&(l.name=l.name.substr(c+1)),l.typeArguments=null,l.baseType=null,l.interfaces=null,i&&(l.baseType=i),a&&(l.interfaces=a),r[n]?l.identifier=r[n]:(l.identifier=o++,r[n]=l.identifier),l}return t.__extends(n,e),Object.defineProperty(n.prototype,"typeName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fullName",{get:function(){return this._fullName},enumerable:!1,configurable:!0}),n.prototype.getSpecId=function(e){if(1===e.length)return e[0]?-1===e[0]?void 0:e[0].typeName?e[0].stringId?e[0].stringId:e[0].identifier.toString():e[0].toString():"undef";for(var t="",n=0;n<e.length;n++){var i=e[n];if(i){if(-1==i)return;i.typeName?i.stringId?t+=i.stringId:t+=i.identifier.toString():t+=i.toString()}else t+="undef"}return t},Object.defineProperty(n.prototype,"isGenericType",{get:function(){return void 0===this._isGenericType&&(this._isGenericType=this.name.indexOf("$")>=0),this._isGenericType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isGenericTypeDefinition",{get:function(){return null===this.typeArguments&&this.isGenericType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"genericTypeArguments",{get:function(){return this.typeArguments},enumerable:!1,configurable:!0}),n.prototype.getStaticFields=function(e){void 0===e&&(e=this);for(var t=this;null!=t;){if(t===e||t._fullName==e._fullName)return null==t._staticFields&&t._staticInitializer&&(t._staticFields={},t._staticInitializer.apply(t._staticFields,t.typeArguments)),t._staticFields;t=t.baseType}return null},n.prototype.initSelfReferences=function(e){var t,i;if(e){if(this.typeArguments){var r=!1;for(i=0;i<this.typeArguments.length;i++){var o=this.typeArguments[i];-1==o?(r=!0,this.typeArguments[i]=e):o&&o instanceof n&&o.initSelfReferences&&o.initSelfReferences(e)}if(r){var a=this.getSpecId(this.typeArguments);this.specializationCache[a]||(this.specializationCache[a]=this)}}}else if(this.baseType&&this.baseType.initSelfReferences(this),this.interfaces)for(t=0;t<this.interfaces.length;t++)this.interfaces[t].initSelfReferences(this);return this},n.prototype.specialize=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(!this.isGenericType)return this;var r=this.getSpecId(Array.from(arguments)),o=this.specializationCache[r];if(o)return o;(o=new n(this.InstanceConstructor,this._fullName,this.baseType,this.interfaces,this._staticInitializer)).specializationCache=this.specializationCache;var a=this.typeArguments,u=!1;if(a&&a.length&&(u=!0),o.typeArguments=[],u)for(e=0;e<a.length;e++)"number"==typeof a[e]&&isFinite(a[e])&&!isFinite(arguments[a[e]])?o.typeArguments[e]=arguments[a[e]]:o.typeArguments[e]=a[e];else for(e=0;e<arguments.length;e++)o.typeArguments[e]=arguments[e];if(this.baseType&&this.baseType.typeArguments&&(o.baseType=this.specialize.apply(this.baseType,o.typeArguments)),this.interfaces)for(o.interfaces=[],e=0;e<this.interfaces.length;e++)o.interfaces[e]=this.specialize.apply(this.interfaces[e],o.typeArguments);if("Nullable$1"==this._fullName&&1==o.typeArguments.length&&(o.isNullable=!0),r&&(this.specializationCache[r]=o,o.stringId=o.generateString()),null!=this.InstanceConstructor){var s=this;o.InstanceConstructor=function(){return s.InstanceConstructor.apply(this,o.typeArguments.concat(Array.prototype.slice.call(arguments,0))),this},o.InstanceConstructor.prototype=this.InstanceConstructor.prototype}return o},n.prototype.equals=function(e){if(!(e instanceof n))return!1;if(this.identifier!==e.identifier)return!1;if(null===this.typeArguments&&null===e.typeArguments)return!0;if(null===this.typeArguments&&null!==e.typeArguments)return!1;if(null!==this.typeArguments&&null===e.typeArguments)return!1;if(this.typeArguments.length!==e.typeArguments.length)return!1;for(var t=0;t<this.typeArguments.length;t++)if(!n.checkEquals(this.typeArguments[t],e.typeArguments[t]))return!1;return!0},n.checkEquals=function(e,t){return e instanceof n?e.equals(t):t instanceof n?t.equals(e):e===t},n.op_Equality=function(e,t){return e.equals(t)},n.op_Inequality=function(e,t){return!e.equals(t)},n.prototype.generateString=function(){if(this.typeArguments&&this.typeArguments.length){for(var e=this.identifier.toString()+"[",t=!0,n=0;n<this.typeArguments.length;n++)null!=this.typeArguments[n]&&(t?t=!1:e+=",",this.typeArguments[n].toString?e+=this.typeArguments[n].toString():e+=this.typeArguments[n].identifier.toString());return e+="]"}return this.identifier.toString()},Object.defineProperty(n.prototype,"isValueType",{get:function(){return this.baseType===T.prototype.$type},enumerable:!1,configurable:!0}),n.prototype.isAssignableFrom=function(e){if(this===e)return!0;if(e.baseType&&this.isAssignableFrom(e.baseType))return!0;if(e.interfaces)for(var t=0;t<e.interfaces.length;t++)if(this.isAssignableFrom(e.interfaces[t]))return!0;return!1},n.prototype.isInstanceOfType=function(e){return null!==p(this,e)},Object.defineProperty(n.prototype,"isPrimitive",{get:function(){return this===q||this===Y},enumerable:!1,configurable:!0}),n.canAssign=function(e,t){return"Nullable$1"===e.name&&"Nullable$1"!==t.name&&(e=w.getUnderlyingType(e)),n.canAssignSimple(e,t)},n.canAssignSimple=function(e,t){if(e===t||n.checkEquals(e,t))return!0;if(t.interfaces)for(var i=0;i<t.interfaces.length;i++)if(n.canAssignSimple(e,t.interfaces[i]))return!0;return!!t.baseType&&n.canAssignSimple(e,t.baseType)},n.createInstance=function(e){if(e===Number||e==q||e.isEnumType)return 0;if(e==Boolean||e==Y)return!1;if(e.InstanceConstructor){var n=e.InstanceConstructor;return new(n.bind.apply(n,t.__spreadArray([void 0],t.__read(Array.prototype.slice.call(arguments,1)))))}throw new Error("Cannot find instance constructor for the type parameter")},n.getDefaultValue=function(e){return e===q||e.isEnumType?0:e!=Y&&(e.baseType===T.$type?n.createInstance(e):null)},n.getPrimitiveHashCode=function(e){var t=typeof e;if("string"===t||e instanceof String){var n,i,r=0;if(0===e.length)return r;for(n=0,i=e.length;n<i;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return r}return"boolean"===t||e instanceof Boolean?+e:e},n.decodePropType=function(e){return 0===e?Y:1===e?q:2===e?U:3===e?K:e},n}(u);function l(e,t,n,i,r){for(var o=[],a="",u=[],l=!1,p=null,h=null,f=null,g=null,d=null,m=null,b=null,y=function(){if(_%2==0){if((a=r[_]).indexOf(":")>=0){var y=a.split(":");2==y.length?(a=y[0],m=y[1],b=a.substring(0,1).toLowerCase()+a.substring(1)+"Property"):(a=y[0],0==(m=y[1]).length&&(m=a.substring(0,1).toLowerCase()+a.substring(1)),b=y[2])}else m=a.substring(0,1).toLowerCase()+a.substring(1),b=m+"Property";o.push(a)}else{2==(u=r[_]).length?(l=!0,p=u[1],h=s.decodePropType(u[0])):(l=!1,h=s.decodePropType(u[0]));var S=a;f=function(e,t){e[i].call(e,S,t.oldValue,t.newValue)};var v=null;v=l?t.createWithDefaultAndCallback(p,f):t.createWithCallback(f);var C=e.registerAlt(a,h,n.$type,v);g=function(e){this.setValueAlt(C,e)},d=h.isEnumType?function(){return c(this.getValueAlt(C))}:function(){return this.getValueAlt(C)},Object.defineProperty(n.prototype,m,{set:g,get:d,configurable:!0}),n[b]=C}},_=0;_<r.length;_++)y();return o}function c(e){return null!==e&&e.$type&&e.$type.isEnumType?e.value:e}function p(e,t){if(null==t)return null;if(e===Array)return t instanceof Array?t:null;e===String&&(e=U),e===Number&&(e=q),e===Boolean&&(e=Y),e===Date&&(e=K);var n=t;return t.$type?n=t.$type:"number"==typeof t?n=e===Number?Number:q:"string"==typeof t?n=U:"boolean"==typeof t?n=Y:t instanceof Date&&(n=K),t instanceof Array&&(n=De),s.canAssignSimple(e,n)?t:"Nullable$1"===e.name&&"Nullable$1"!==n.name?(e=w.getUnderlyingType(e),s.canAssignSimple(e,n)?D(e,t):D(e,null)):null}function h(e,t){var n=!1;return e.isNullable&&(e=e.typeArguments[0],n=!0),null!==t&&e.isEnumType&&(t=t.value),n?D(e,t):t}var f=new Array;function g(e,t,n,i,r){return void 0===n&&(n=T.prototype.$type),void 0===i&&(i=null),void 0===r&&(r=null),e.prototype.$type=new s(e,t,n,i,r),"function"==typeof e.staticInit&&f.push(e),e.$type=e.prototype.$type,e.$=e.prototype.$type,e.prototype.$type}function d(e,t,n){void 0===n&&(n=!1);var i=new s(null,e,u.prototype.$type,[_]);i.isEnumType=!0;for(var r=t.split("|"),o=[],a=[],l={},c={},p=0;p<r.length;p++){var h=r[p].split(","),f=h[0].split(":"),g=f[0],d=f[0];f.length>1&&(d=f[1]),o.push(g),a.push(d),l[g]=parseInt(h[1]),c[d]=parseInt(h[1])}var m={names:o,actualNames:a,namesValuesMap:l,actualNamesValuesMap:c,mustCoerceToInt:n};return i.enumInfo=m,i}var m=!1;function b(e,t,n,i,r){return void 0===n&&(n=u.prototype.$type),void 0===i&&(i=null),void 0===r&&(r=null),e.prototype.$type=new s(e,t,n,i,r),m||(m=!0,b(s,"Type"),b(u,"Base",null)),"function"==typeof e.staticInit&&f.push(e),e.$type=e.prototype.$type,e.$=e.prototype.$type,e.prototype.$type}function y(){var e,n;if(f.length>0){var i=Array.from(f);f.length=0;try{for(var r=t.__values(i),o=r.next();!o.done;o=r.next()){o.value.staticInit()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}}var _=new s(null,"IConvertible"),S=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.$t=b(n,"Enum"),n}(u),v=function(e){function n(t,n){var i=e.call(this)||this;return i.value=t,i.$type=n,i}return t.__extends(n,e),n.prototype.getHashCode=function(){return this.value},n.prototype.toDouble=function(e){return this.value},n.prototype.toString=function(){return P.getName(this.$type,this.value)},n.prototype.getActualName=function(){var e=P.getValues(this.$type);return(this.$type.isEnumType?this.$type.enumInfo.actualNames:P.getNames(this.$type))[e.indexOf(this.value)]},n}(S);function C(e,t){return null!==t&&e&&(e.isNullable&&(e=e.typeArguments[0]),e.isEnumType)?x(e,t):t}function x(e,t){return e._boxes||(e._boxes={}),e._boxes[t]||(e._boxes[t]=new v(t,e)),e._boxes[t]}var P=function(){function e(){}return e.getValueFromName=function(e,t,n,i){if(e.hasOwnProperty(n))return x(t,e[n]);if(i){var r=n.toUpperCase();for(var o in e)if(o.toUpperCase()===r)return x(t,e[o])}else{var a=n.charAt(0);if(n="_"!=a?a.toLowerCase()+n.substr(1):"_"+n.charAt(1).toLowerCase()+n.substr(2),e.hasOwnProperty(n))return x(t,e[n])}return null},e.parse=function(t,n,i){var r=t.isEnumType?t.enumInfo.actualNamesValuesMap:t.InstanceConstructor.prototype,o=e.getValueFromName(r,t,n,i);if(null!==o)return o;if(t.isEnumType){r=t.enumInfo.namesValuesMap;var a=e.getValueFromName(r,t,n,i);if(null!==a)return a}throw new Error("Invalid "+t.name+" value: "+n)},e.enumHasFlag=function(e,t){return(e&t)===t},e.toString=function(t,n){return e.getName(t,n)},e.getName=function(t,n){if(null==t._nameMap){for(var i=e.getValues(t),r=t.isEnumType?t.enumInfo.names:e.getNames(t),o={},a=0;a<i.length;a++)o[i[a]]=r[a];t._nameMap=o}return t._nameMap[n]},e.getFlaggedName=function(e,t,n){var i,r,o=this,a=[],u=t,s=[];for(var l in this)this.hasOwnProperty(l)&&(r=e[l],"number"==typeof e[l]&&s.push(l));s.sort((function(e,t){return o[e]-o[t]}));for(var c=s.length-1;c>=0;c--)0===(r=this[s[c]])?i=n(0):(t&r)===r&&(t-=r,a.unshift(n(r)));return 0!==t?u.toString():0!==u?a.join(", "):i||"0"},e.getValues=function(e){var t=[];if(e.isEnumType){for(var n=0;n<e.enumInfo.actualNames.length;n++)t.push(e.enumInfo.actualNamesValuesMap[e.enumInfo.actualNames[n]]);return t}var i=e.isEnumType?e.enumInfo.actualNames:e.InstanceConstructor.prototype;for(var r in i)i.hasOwnProperty(r)&&"number"==typeof i[r]&&t.push(i[r]);return t},e.getNames=function(e){var t=[];if(e.isEnumType){for(var n=0;n<e.enumInfo.actualNames.length;n++)t.push(e.enumInfo.actualNames[n]);return t}var i=e.isEnumType?e.enumInfo.actualNames:e.InstanceConstructor.prototype;for(var r in i)i.hasOwnProperty(r)&&"number"==typeof i[r]&&t.push(r);return t},e.getEnumValue=function(e,t){return null!=t?"number"==typeof t?t:t.value:0},e.isDefined=function(e,t){t=c(t);var n=e.isEnumType?e.enumInfo.actualNamesValuesMap:e.InstanceConstructor.prototype;for(var i in n)if(n.hasOwnProperty(i)&&n[i]===t)return!0;return!1},e.toDouble=function(e,t,n){return t.value},e.toObject=function(e,t){return"number"==typeof t?C(e,t):t},e.tryParse$1=function(t,n,i,r){try{return{ret:!0,p2:c(e.parse(t,n,i))}}catch(e){return{ret:!1,p2:s.createInstance(t)}}},e}(),T=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.$t=b(n,"ValueType"),n}(u),w=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.getUnderlyingType=function(e){return void 0!==e.isGenericType&&e.isGenericType&&!e.isGenericTypeDefinition&&O.prototype.$type.typeName==e.typeName?e.genericTypeArguments[0]:null},n.$t=b(n,"Nullable"),n}(u),O=function(e){function n(t,n){var i=e.call(this)||this;return i.$t=null,i._value=null,i.isNullable=!0,i.$t=t,i.$type=i.$type.specialize(i.$t),void 0!==n&&(i._value=n),i}return t.__extends(n,e),n.nullableEquals=function(e,t){var n=null==e||!!e.isNullable&&!e.hasValue,i=null==t||!!t.isNullable&&!t.hasValue;if(n&&i)return!0;if(n!=i)return!1;var r=e,o=t;return e.isNullable&&(r=e.value),t.isNullable&&(o=t.value),r==o},n.prototype.equals=function(e){return n.nullableEquals(this,e)},n.prototype.getHashCode=function(){return null===this._value?0:void 0!==this._value.getHashCode?this._value.getHashCode():s.getPrimitiveHashCode(this._value)},Object.defineProperty(n.prototype,"hasValue",{get:function(){return null!==this._value},enumerable:!1,configurable:!0}),n.prototype.toString=function(){return null===this._value?"":this._value.toString()},Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),n.prototype.getValueOrDefault=function(){return this.hasValue?this._value:this.getDefaultValue()},n.prototype.getDefaultValue=function(){return s.canAssign(q,this.$t)?0:!s.canAssign(Y,this.$t)&&(this.$t.baseType==T.prototype.$type?s.createInstance(this.$t):null)},n.prototype.getValueOrDefault1=function(e){return this.hasValue?this._value:e},n.prototype.preIncrement=function(){return this.hasValue?(this._value=this._value+1,this):this},n.prototype.preDecrement=function(){return this.hasValue?(this._value=this._value-1,this):this},n.prototype.postIncrement=function(){if(!this.hasValue)return this;var e=this._value;return this._value=this._value+1,new n(this.$t,e)},n.prototype.postDecrement=function(){if(!this.hasValue)return this;var e=this._value;return this._value=this._value-1,new n(this.$t,e)},n.$t=b(n,"Nullable$1"),n}(u);function D(e,t){return null==t?e._$nullNullable||(e._$nullNullable=new O(e,null)):t.isNullable?t:new O(e,t)}var j=new s(null,"IComparable"),A=new s(null,"IComparable$1"),M=new s(null,"IEquatable$1"),I=new s(null,"INotifyPropertyChanged"),R=function(e){function n(t){var n=e.call(this)||this;return n._propertyName=null,n._propertyName=t,n}return t.__extends(n,e),Object.defineProperty(n.prototype,"propertyName",{get:function(){return this._propertyName},set:function(e){this._propertyName=e},enumerable:!1,configurable:!0}),n.$t=b(n,"PropertyChangedEventArgs"),n}(u),F=function(){function e(e,t){this._inner=null,this._getNew=null,this._hasNext=!0,this._current=null,this._inner=e,this._getNew=t}return e.prototype.moveNext=function(){var e=this._inner.next();return this._hasNext=!e.done,this._current=e.value,this._hasNext},Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentObject",{get:function(){return this._current},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){},e.prototype.reset=function(){this._inner=this._getNew(),this._current=null,this._hasNext=!0},e}(),k=function(){function e(e){this._inner=null,this._inner=e}return e.prototype.getEnumerator=function(){var e=this;return new F(this._inner()[Symbol.iterator](),(function(){return e._inner()[Symbol.iterator]()}))},e.prototype.getEnumeratorObject=function(){var e=this;return new F(this._inner()[Symbol.iterator](),(function(){return e._inner()[Symbol.iterator]()}))},e}(),E=function(){function e(e){this._inner=null,this._inner=e}return e.prototype.next=function(){var e=!this._inner.moveNext(),t=null;return e||(t=this._inner.current),{done:e,value:t}},e}(),B=function(){function e(e){this._inner=null,this._inner=e}return e.prototype.next=function(){var e=!this._inner.moveNext(),t=null;return e||(t=this._inner.currentObject),{done:e,value:t}},e}();function L(e){var n,i,r,o,a;return t.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),n=t.__values(e),i=n.next(),u.label=1;case 1:return i.done?[3,4]:[4,i.value];case 2:u.sent(),u.label=3;case 3:return i=n.next(),[3,1];case 4:return[3,7];case 5:return r=u.sent(),o={error:r},[3,7];case 6:try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 7:return[2]}}))}function W(e){if(e instanceof Array||Array.isArray(e)){var t=e;return new F(L(t),(function(){return L(t)}))}return e.getEnumeratorObject()}function V(e){if(e instanceof Array||Array.isArray(e)){var t=e;return new F(L(t),(function(){return L(t)}))}return e.getEnumerator()}var N=function(){function e(e){this._inner=null,this._inner=e}return e.prototype[Symbol.iterator]=function(){return new E(V(this._inner))},e}(),$=function(){function e(e){this._inner=null,this._inner=e}return e.prototype[Symbol.iterator]=function(){return new B(W(this._inner))},e}();function z(e){return new k(e)}function H(e){return new N(e)}function G(e){return new $(e)}var q=new s(Number,"Number",u.prototype.$type,[j,_]),U=new s(String,"String",u.prototype.$type,[j,_]),K=new s(Date,"Date",u.prototype.$type,[j,_]),Y=new s(Boolean,"Boolean",u.prototype.$type,[j,_]),X=new s(null,"Void",u.prototype.$type),Z=q,Q=U,J=K,ee=Y,te=X,ne=new s(null,"Delegate");function ie(e,t){var n=t,i=function(){return n.apply(e,arguments)};return i.original=n,i.target=e,i}function re(e,t){if(!e)return t;if(!t)return e;var n=function(){return e.apply(null,arguments),t.apply(null,arguments)};return n.enumerate=function(n){e&&(e.enumerate?e.enumerate(n):n.push(e)),t&&(t.enumerate?t.enumerate(n):n.push(t))},n}function oe(e,t){if(!e)return null;if(!t)return e;var n=[],i=null;e.enumerate?e.enumerate(n):n.push(e);for(var r=0;r<n.length;r++)t.original&&n[r].original==t.original&&n[r].target==t.target||n[r]!=t&&(i=re(i,n[r]));return i}var ae=new s(null,"IDisposable"),ue=new s(null,"IEnumerable"),se=new s(null,"IEnumerator"),le=new s(null,"IEqualityComparer$1"),ce=new s(null,"IEqualityComparer"),pe=new s(null,"ICollection",null,[ue]),he=new s(null,"IList",null,[ue,pe]),fe=new s(null,"IEnumerable$1",null,[ue]),ge=new s(null,"ICollection$1",null,[fe.specialize(0),ue]),de=new s(null,"IList$1",null,[ge.specialize(0),fe.specialize(0),ue]),me=new s(null,"IEnumerator$1",null,[se,ae]),be=new s(null,"IDictionary"),ye=function(e){function n(t){void 0===t&&(t=-1);for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e.call(this)||this;if(r._message=null,r._innerException=null,t>=0)switch(t){case 1:r.init1.apply(r,arguments);break;case 2:r.init2.apply(r,arguments)}return r}return t.__extends(n,e),n.prototype.get_message=function(){return this._message},Object.defineProperty(n.prototype,"message",{get:function(){return this.get_message()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"innerException",{get:function(){return this._innerException},enumerable:!1,configurable:!0}),n.prototype.init1=function(e,t){this._message=t},n.prototype.init2=function(e,t,n){this._message=t,this._innerException=n},n.prototype.toString=function(){return this._message},n.$t=b(n,"BaseError"),n}(u),_e=function(e){function n(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e.call(this,0)||this;if(t>0){switch(t){case 1:r.init1.apply(r,arguments);break;case 2:r.init2.apply(r,arguments)}return r}return r}return t.__extends(n,e),n.prototype.init1=function(t,n){e.prototype.init1.call(this,1,n)},n.prototype.init2=function(t,n,i){e.prototype.init2.call(this,2,n,i)},n.$t=b(n,"SystemException",ye.prototype.$type),n}(ye),Se=function(e){function n(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e.call(this,0)||this;if(t>0){switch(t){case 1:r.init1.apply(r,arguments);break;case 2:r.init2.apply(r,arguments)}return r}return r}return t.__extends(n,e),n.prototype.init1=function(t,n){e.prototype.init1.call(this,1,n)},n.prototype.init2=function(t,n,i){e.prototype.init2.call(this,2,n,i)},n.$t=b(n,"NotSupportedException",_e.prototype.$type),n}(_e),ve=function(e){function n(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e.call(this,0)||this;if(t>0){switch(t){case 1:r.init1.apply(r,arguments);break;case 2:r.init2.apply(r,arguments)}return r}return r}return t.__extends(n,e),n.prototype.init1=function(t,n){e.prototype.init1.call(this,1,n)},n.prototype.init2=function(t,n,i){e.prototype.init2.call(this,2,n,i)},n.$t=b(n,"FormatException",_e.prototype.$type),n}(_e),Ce=function(){function e(){}return e.equals=function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&(e.x==t.x&&e.y==t.y))},e.notEquals=function(t,n){return!e.equals(t,n)},e.create=function(){return{x:0,y:0,$type:xe}},e.createXY=function(e,t){return{x:e,y:t,$type:xe}},e}(),xe=new s(null,"Point"),Pe=function(e){return e[e.Begin=0]="Begin",e[e.Current=1]="Current",e[e.End=2]="End",e}({}),Te=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.close=function(){this.disposeCore(!0)},n.prototype.dispose=function(){this.close()},n.prototype.disposeCore=function(e){},n.prototype.readByte=function(){var e=[0];return 0===this.read(e,0,1)?-1:e[0]},n.prototype.writeByte=function(e){this.write([e],0,1)},n.$t=b(n,"Stream"),n}(u),we=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),Object.defineProperty(n,"empty",{get:function(){return n._empty||(n._empty=new n),n._empty},enumerable:!1,configurable:!0}),n.$t=b(n,"EventArgs"),n}(u),Oe=new s(null,"IFormatProvider"),De=new s(Array,"Array",u.prototype.$type,[ue,pe]),je=De,Ae=function(){function e(){}return e.create=function(n){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(e.isRegistered(n)){var o=e.get(n);return o.htmlTagName?document.createElement(o.htmlTagName):new(o.bind.apply(o,t.__spreadArray([void 0],t.__read(i))))}return null},e.register=function(t,n){e._registrar.set(t,n.InstanceConstructor)},e.registerCons=function(t,n){e._registrar.set(t,n)},e.callRegister=function(t){var n=e.get(t);null!=n&&void 0!==n.register&&n.register()},e.isRegistered=function(t){return null!==e.get(t)},e.get=function(t){if(e._registrar.has(t))return e._registrar.get(t);if(0==t.indexOf("Igx")){var n=t.replace("Igx","Igc");if(e._registrar.has(n))return e._registrar.get(n);var i=t.replace("Igx","Igr");if(i.indexOf("Component")==i.length-9&&(i=i.substring(0,i.length-9)),e._registrar.has(i))return e._registrar.get(i)}return null},e.createFromInternal=function(t,n,i){if(!t)return null;if(!t.$type)return null;var r=n+t.$type.name+i;return e.isRegistered(r)?e.create(r):null},e._registrar=new Map,e}();var Me=new s(null,"IArray"),Ie=new s(null,"IArrayList");function Re(e,t,n){for(var i=0;i<e.length;i++)t[n++]=e[i]}function Fe(e,t){var n=e.indexOf(t);return n>=0&&(e.splice(n,1),!0)}function ke(e,t){return e[t]}function Ee(e,t){for(var n=e,i=t;n;){if(0===i)return n.length;i--,n=n[0]}return-1}function Be(e,t,n){var i=0;if(0===e.length)for(i=0;i<n.length;i++)e[t++]=n[i];else for(i=0;i<n.length;i++)e.splice(t++,0,n[i])}function Le(e){e.length=0}function We(e){return new Ne(e)}function Ve(){return new Ne([])}var Ne=function(){function e(e){this.isFixedSize=!1,this.isSynchronized=!1,this.syncRoot=null,this.isReadOnly=!1,this.$arrayWrapper=!0,this._target=e}return e.prototype.item=function(e,t){return 2===arguments.length?(this._target[e]=t,t):this._target[e]},e.prototype.indexOf=function(e){return this._target.indexOf(e)},e.prototype.insert=function(e,t){this._target.splice(e,0,t)},e.prototype.insertRange=function(e,t){Be(this._target,e,t)},e.prototype.removeRange=function(e,t){this._target.splice(e,t)},e.prototype.removeAt=function(e){this._target.splice(e,1)},Object.defineProperty(e.prototype,"count",{get:function(){return this._target.length},enumerable:!1,configurable:!0}),e.prototype.add=function(e){this._target.push(e)},e.prototype.clear=function(){this._target.length=0},e.prototype.contains=function(e){return this._target.indexOf(e)>=0},e.prototype.copyTo=function(e,t){for(var n=0;n<this._target.length;n++)e[n+t]=this._target[n]},e.prototype.remove=function(e){var t=this._target.indexOf(e);return!(t<0)&&(this._target.splice(t,1),!0)},e.prototype.getEnumerator=function(){return V(this._target)},e.prototype.getEnumeratorObject=function(){return W(this._target)},e.prototype.getHashCode=function(){return u.getHashCodeStatic(this._target)},e.prototype.equals=function(e){return e.$arrayWrapper&&(e=e._target),this._target===e},Object.defineProperty(e.prototype,"$type",{get:function(){return De},enumerable:!1,configurable:!0}),e.prototype.reverse=function(){for(var e=this._target.length,t=0;t<e/2;t++){var n=this._target[e-1-t];this._target[e-1-t]=this._target[t],this._target[t]=n}},e}(),$e=new s(null,"IComparer"),ze=new s(null,"IComparer$1"),He=function(){function e(){}return e.compareToObject=function(e,t){return e.compareToObject?e.compareToObject(t):u.compare(e,t)},e.compareTo=function(e,t){return e.compareTo?e.compareTo(t):u.compare(e,t)},e}(),Ge=function(e){function n(t){var n=e.call(this)||this;return n.$t=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n}return t.__extends(n,e),n.defaultComparerValue=function(e){return new qe(e)},n.a=function(e,t){return null},n.prototype.compareObject=function(e,t){return this.compare(h(this.$t,e),h(this.$t,t))},n.$t=b(n,"Comparer$1",u.$,[$e,ze.specialize(0)]),n}(u),qe=function(e){function n(t){var n=e.call(this,t)||this;return n.$t=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n}return t.__extends(n,e),n.prototype.compare=function(e,t){var n=p(A.specialize(this.$t),e);if(null!=n)return He.compareTo(n,t);var i=p(A.specialize(this.$t),t);return null!=i?-He.compareTo(i,e):u.compare(e,t)},n.$t=b(n,"DefaultComparer$1",Ge.$.specialize(0)),n}(Ge),Ue=function(e){function n(t,n){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o=e.call(this)||this;switch(o.$t=null,o.a=null,o.c={},o.$t=t,o.$type=o.$type.specialize(o.$t),n=null==n?0:n){case 0:break;case 1:var a=i[0];o.a=a}return o}return t.__extends(n,e),n.prototype.item=function(e,t){return 2===arguments.length?(this.a.item(e,t),t):this.a.item(e)},n.prototype.indexOf=function(e){return this.a.indexOf(e)},n.prototype.insert=function(e,t){},n.prototype.removeAt=function(e){},Object.defineProperty(n.prototype,"count",{get:function(){return this.a.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.add=function(e){},n.prototype.clear=function(){},n.prototype.contains=function(e){return this.a.contains(e)},n.prototype.copyTo=function(e,t){this.a.copyTo(e,t)},n.prototype.remove=function(e){return!1},n.prototype.getEnumerator=function(){return V(this.a)},n.prototype.getEnumeratorObject=function(){return V(this.a)},Object.defineProperty(n.prototype,"isFixedSize",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.add1=function(e){return-1},n.prototype.contains1=function(e){return this.a.contains(h(this.$t,e))},n.prototype.indexOf1=function(e){return this.a.indexOf(h(this.$t,e))},n.prototype.insert1=function(e,t){},n.prototype.remove1=function(e){},n.prototype.copyTo1=function(e,t){this.a.copyTo(e,t)},Object.defineProperty(n.prototype,"b",{get:function(){return this.a},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSynchronized",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"syncRoot",{get:function(){return this.c},enumerable:!1,configurable:!0}),n.$t=b(n,"ReadOnlyCollection$1",u.$,[de.specialize(0),he]),n}(u),Ke=function(e){function n(t){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=this;switch(t=null==t?0:t){case 0:o=e.call(this,1,"not implemented")||this;break;case 1:var a=i[0];throw o=e.call(this,1,a)||this,new n(0)}return o}return t.__extends(n,e),n.$t=b(n,"NotImplementedException",ye.$),n}(ye);function Ye(e){return Math.log(e)/Math.log(10)}function Xe(e){return+e}var Ze=Xe;function Qe(e){return!isFinite(e)&&!rt(e)}function Je(e,t){return et(e/t)}function et(e){return e>=0?Math.floor(e):Math.ceil(e)}function tt(e,t){return Math.log(e)/Math.log(t)}function nt(e){return e==Number.NEGATIVE_INFINITY}function it(e){return e==Number.POSITIVE_INFINITY}function rt(e){return e!=e}function ot(e,t){return 0==e.indexOf(t)}function at(e,t){var n=e.lastIndexOf(t);return n>=0&&n==e.length-t.length}function ut(e,t){return-1!=e.indexOf(t)}function st(e){return e.join("")}function lt(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function ct(e,t,n){for(var i="",r=0;r<n;r++)i+=e[t+r];return i}function pt(e){return e.split("")}function ht(e,t,n,i,r){for(var o=i;o<i+r;o++)n[o]=e.charAt(t+o-i)}function ft(){return"￿"}function gt(){return"\0"}function dt(e,t){return e==t?0:e<t?-1:1}var mt=dt;function bt(e){return!e||e.length<1}function yt(e){return!e||e.trim().length<1}function _t(){return""}function St(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function vt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(e()+e()+"-"+e()+"-4"+e().substr(0,3)+"-"+e()+"-"+e()+e()+e()).toLowerCase()}function Ct(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(e=String.prototype).concat.apply(e,t.__spreadArray([],t.__read(n)))}function xt(e,t,n){return e.replace(new RegExp(St(t),"g"),n)}function Pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.join(e)}function Tt(e,t,n){for(var i,r=V(n);r.moveNext();){var o=r.current.toString();void 0===i?i=o:i+=t+o}return i}function wt(e,t){return null!==t&&e&&(e.isNullable&&(e=e.typeArguments[0]),e.isEnumType)?P.getName(e,t):t.toString()}function Ot(e,t){return null==t||null==t.name?e.toLocaleLowerCase():e.toLocaleLowerCase(t.name)}var Dt=function(e){function n(n,i){for(var r,o,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var l=e.call(this)||this;switch(l.$t=null,l._inner=null,l.c=!1,l.h=0,l.m={},l.$t=n,l.$type=l.$type.specialize(l.$t),i=null==i?0:i){case 0:l._inner=[],l.c=l.$t.InstanceConstructor&&l.$t.InstanceConstructor.prototype.equals===u.prototype.equals;break;case 1:var c=a[0];if(l._inner=[],l.c=l.$t.InstanceConstructor&&l.$t.InstanceConstructor.prototype.equals===u.prototype.equals,l.d(0,c,!0))return l;try{for(var p=t.__values(H(c)),h=p.next();!h.done;h=p.next()){var f=h.value;l.add(f)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}break;case 2:c=a[0];l._inner=[],l.c=l.$t.InstanceConstructor&&l.$t.InstanceConstructor.prototype.equals===u.prototype.equals}return l}return t.__extends(n,e),n.prototype.x=function(e,t){this._inner[e]=t},n.prototype.r=function(e,t){this._inner.splice(e,0,t)},n.prototype.n=function(e){this._inner.push(e)},n.prototype.u=function(e){0!=e?this._inner.splice(e,1):this._inner.shift()},n.prototype.p=function(){this._inner=[]},n.prototype.item=function(e,t){return 2===arguments.length?(this.x(e,t),t):this._inner[e]},n.prototype.indexOf=function(e){if(this.c)return this._inner.indexOf(e);for(var t=0;t<this._inner.length;t++)if(u.equalsStatic(C(this.$t,e),C(this.$t,this._inner[t])))return t;return-1},n.prototype.indexOf2=function(e,t){if(this.c)return this._inner.indexOf(e,t);for(;t<this._inner.length;t++)if(u.equalsStatic(C(this.$t,e),C(this.$t,this._inner[t])))return t;return-1},n.prototype.k=function(e){if(this.c)return this._inner.lastIndexOf(e);for(var t=this._inner.length-1;t>=0;t--)if(u.equalsStatic(C(this.$t,e),C(this.$t,this._inner[t])))return t;return-1},n.prototype.insert=function(e,t){this.r(e,t)},n.prototype.removeAt=function(e){this.u(e)},Object.defineProperty(n.prototype,"count",{get:function(){return this._inner.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.add=function(e){this.n(e)},n.prototype.clear=function(){this.p()},n.prototype.contains=function(e){return this.indexOf(e)>=0},n.prototype.copyTo=function(e,t){for(var n=0;n<this._inner.length;n++)e[t+n]=this._inner[n]},n.prototype.remove=function(e){var t=this.indexOf(e);return!(t<0)&&(this.u(t),!0)},n.prototype.getEnumerator=function(){return W(this._inner)},n.prototype.getEnumeratorObject=function(){return W(this._inner)},n.prototype.asArray=function(){return this._inner},n.prototype.d=function(e,t,n){var i=p(Ie,t);if(null!=i){var r=i.asArrayList();return Array.prototype.splice.apply(this._inner,Array.prototype.concat.apply([e,0],r)),!0}var o=p(Me,t);if(null!=o){r=o.asArray();return Array.prototype.splice.apply(this._inner,Array.prototype.concat.apply([e,0],r)),!0}var a=p(de.specialize(this.$t),t);if(null!=a){for(var u=0;u<a.count;u++){var s=a.item(u);this._inner.splice(e+u,0,s)}return!0}var l=Array.isArray(t)?t:null;if(null!=l){var c=this._inner;if(0==this._inner.length)if(n){var f=l,g=l.length;for(u=0;u<g;u++)c[e++]=f[u]}else{var d=l.length;for(u=0;u<d;u++)c[e++]=h(this.$t,l[u])}else for(u=0;u<l.length;u++)c.splice(e++,0,l[u]);return!0}return!1},n.prototype.t=function(e,n){var i,r;if(!this.d(e,n,!1)){var o=e;try{for(var a=t.__values(G(n)),u=a.next();!u.done;u=a.next()){var s=u.value;this._inner.splice(o,0,s),o++}}catch(e){i={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}}},n.prototype.s=function(e,n){var i,r;if(!this.d(e,n,!0)){var o=e;try{for(var a=t.__values(H(n)),u=a.next();!u.done;u=a.next()){var s=u.value;this._inner.splice(o,0,s),o++}}catch(e){i={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}}},n.prototype.v=function(e,t){0!=e||1!=t?this._inner.splice(e,t):this._inner.shift()},n.prototype.copyTo1=function(e,t){Re(this._inner,e,t)},Object.defineProperty(n.prototype,"isFixedSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.add1=function(e){return this.n(h(this.$t,e)),this._inner.length-1},n.prototype.contains1=function(e){return this.indexOf1(e)>=0},n.prototype.indexOf1=function(e){return this.indexOf(h(this.$t,e))},n.prototype.insert1=function(e,t){this.r(e,h(this.$t,t))},n.prototype.remove1=function(e){var t=this.indexOf1(e);t<0||this.u(t)},n.prototype.y=function(){var e=null;e=this.$t==q||this.$t==q?function(e,t){return e<t?-1:e==t?0:1}:this.$t==q?function(e,t){var n=c(e),i=c(t);return n<i?-1:n==i?0:1}:this.$t==K?function(e,t){var n=e,i=t;return n.getTime()<i.getTime()?-1:n.getTime()==i.getTime()?0:1}:function(e,t){return dt(e,t)},this.ab(e)},n.prototype.ab=function(e){this._inner.sort(e)},n.prototype.aa=function(e){this._inner.sort(e)},n.prototype.o=function(e){var n,i;try{for(var r=t.__values(H(e)),o=r.next();!o.done;o=r.next()){var a=o.value;this._inner.push(a)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.toArray=function(){return this._inner},n.prototype.q=function(e){for(var t=0;t<this._inner.length;t++)e(this._inner[t])},Object.defineProperty(n.prototype,"isSynchronized",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"syncRoot",{get:function(){return this.m},enumerable:!1,configurable:!0}),n.prototype.f=function(e){return this.g(e,Ge.defaultComparerValue(this.$t))},n.prototype.g=function(e,t){for(var n=0,i=this.count-1;n<=i;){var r=n+Je(i-n,2),o=this._inner[r],a=t.compare(o,e);if(0==a)return r;a<0?n=r+1:i=r-1}return~n},n.prototype.e=function(){return new Ue(this.$t,1,this)},n.prototype.w=function(){for(var e=0;e<Je(this.count,2);e++){var t=this.count-e-1,n=this._inner[e];this._inner[e]=this._inner[t],this._inner[t]=n}},n.prototype.z=function(e){this.aa(ie(e,e.compare))},n.prototype.i=function(e){for(var t=0;t<this._inner.length;t++)if(e(this._inner[t]))return t;return-1},n.prototype.l=function(e){throw new Ke(0)},n.$t=b(n,"List$1",u.$,[de.specialize(0),Me,he]),n}(u),jt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._company=null,t._symbol=null,t._sector=null,t}return t.__extends(n,e),Object.defineProperty(n.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"symbol",{get:function(){return this._symbol},set:function(e){this._symbol=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sector",{get:function(){return this._sector},set:function(e){this._sector=e},enumerable:!1,configurable:!0}),n.$t=b(n,"StockInfo"),n}(u),At=function(e){function n(){var t=e.call(this)||this;return t._open=0,t._high=0,t._low=0,t._close=0,t._volume=0,t._date=new Date,t}return t.__extends(n,e),Object.defineProperty(n.prototype,"open",{get:function(){return this._open},set:function(e){this._open=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"high",{get:function(){return this._high},set:function(e){this._high=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"low",{get:function(){return this._low},set:function(e){this._low=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"close",{get:function(){return this._close},set:function(e){this._close=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"volume",{get:function(){return this._volume},set:function(e){this._volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"date",{get:function(){return this._date},set:function(e){this._date=e},enumerable:!1,configurable:!0}),n.$t=b(n,"StockPricePoint",jt.$),n}(jt),Mt=function(e){function n(){var t=e.call(this,At.$,0)||this;return t._symbol=null,t._company=null,t.symbol="",t.company="",t}return t.__extends(n,e),Object.defineProperty(n.prototype,"title",{get:function(){var e=bt(this.company)?"":" - "+this.company;return this.symbol+e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"symbol",{get:function(){return this._symbol},set:function(e){this._symbol=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),n.prototype.toString=function(){return this.symbol},n.$t=b(n,"StockPriceHistory",Dt.$.specialize(At.$)),n}(Dt),It=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._index=0,t._tradeDate=new Date,t._shares=0,t._costPerShare=0,t._marketPrice=0,t._data=null,t._action=null,t}return t.__extends(n,e),Object.defineProperty(n.prototype,"index",{get:function(){return this._index},set:function(e){this._index=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tradeDate",{get:function(){return this._tradeDate},set:function(e){this._tradeDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shares",{get:function(){return this._shares},set:function(e){this._shares=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"costPerShare",{get:function(){return this._costPerShare},set:function(e){this._costPerShare=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"costTotal",{get:function(){return Math.round(this.shares*this.costPerShare)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"marketValue",{get:function(){return Math.round(this.shares*this.marketPrice)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"marketPrice",{get:function(){return this._marketPrice},set:function(e){this._marketPrice=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gainValue",{get:function(){return Math.round(this.marketValue-this.costTotal)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gainPercentage",{get:function(){return this.gainValue/this.costTotal*100},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"action",{get:function(){return this._action},set:function(e){this._action=e},enumerable:!1,configurable:!0}),n.$t=b(n,"StockPosition",jt.$),n}(jt),Rt=function(e){function n(t,n){var i=e.call(this)||this;return i._addedSymbols=null,i._removedSymbols=null,i.addedSymbols=t,i.removedSymbols=n,i}return t.__extends(n,e),Object.defineProperty(n.prototype,"addedSymbols",{get:function(){return this._addedSymbols},set:function(e){this._addedSymbols=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"removedSymbols",{get:function(){return this._removedSymbols},set:function(e){this._removedSymbols=e},enumerable:!1,configurable:!0}),n.$t=b(n,"StockChangedEventArgs"),n}(u),Ft=function(e){function n(t,n,i){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var a=e.call(this)||this;switch(a.$tKey=null,a.$tValue=null,a.a=null,a.c=null,a.$tKey=t,a.$tValue=n,a.$type=a.$type.specialize(a.$tKey,a.$tValue),i=null==i?0:i){case 0:break;case 1:var u=r[0],s=r[1];a.a=u,a.c=s}return a}return t.__extends(n,e),Object.defineProperty(n.prototype,"key",{get:function(){return this.a},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.c},enumerable:!1,configurable:!0}),n.$t=g(n,"KeyValuePair$2"),n}(T),kt=new s(null,"IDictionary$2",null,[ge.specialize(Ft.$.specialize(0,1)),fe.specialize(Ft.$.specialize(0,1)),ue]),Et=function(e){function n(t){var n=e.call(this)||this;return n.$t=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n}return t.__extends(n,e),n.defaultEqualityComparerValue=function(e){return new Bt(e)},n.prototype.equalsC=function(e,t){return this.equalsC(h(this.$t,e),h(this.$t,t))},n.prototype.getHashCodeC=function(e){return this.getHashCodeC(h(this.$t,e))},n.$t=b(n,"EqualityComparer$1",u.$,[ce,le.specialize(0)]),n}(u),Bt=function(e){function n(t){var n=e.call(this,t)||this;return n.$t=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n}return t.__extends(n,e),n.prototype.equalsC=function(e,t){return u.equalsStatic(C(this.$t,e),C(this.$t,t))},n.prototype.getHashCodeC=function(e){return u.getHashCodeStatic(e)},n.$t=b(n,"DefaultEqualityComparer$1",Et.$.specialize(0)),n}(Et),Lt=function(e){function n(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(t=null==t?0:t){case 0:r=e.call(this,1,"Invalid operation")||this;break;case 1:var o=n[0];r=e.call(this,1,o)||this;break;case 2:o=n[0];var a=n[1];throw r=e.call(this,2,o,a)||this,new Ke(0)}return r}return t.__extends(n,e),n.$t=b(n,"InvalidOperationException",ye.$),n}(ye),Wt=function(e){function n(t,n,i,r,o,a){var u=e.call(this)||this;return u.$tKey=null,u.$tValue=null,u.$t=null,u.c=null,u.b=null,u.a=null,u.$tKey=t,u.$tValue=n,u.$t=i,u.$type=u.$type.specialize(u.$tKey,u.$tValue,u.$t),u.c=o,u.b=a,u.a=r,u}return t.__extends(n,e),Object.defineProperty(n.prototype,"count",{get:function(){return this.a.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.add=function(e){throw new Lt(0)},n.prototype.clear=function(){throw new Lt(0)},n.prototype.contains=function(e){var n,i;try{for(var r=t.__values(G(this.c)),o=r.next();!o.done;o=r.next()){var a=o.value;if(u.equalsStatic(C(this.$t,a),C(this.$t,e)))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return!1},n.prototype.copyTo=function(e,n){var i,r;try{for(var o=t.__values(G(this.c)),a=o.next();!a.done;a=o.next()){var u=a.value;e[n++]=u}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}},n.prototype.remove=function(e){throw new Lt(0)},n.prototype.getEnumerator=function(){return W(this.c)},n.prototype.getEnumeratorObject=function(){return W(this.c)},n.$t=b(n,"Dictionary_EnumerableCollection$3",u.$,[ge.specialize(2)]),n}(u),Vt=function(e){function n(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(t=null==t?0:t){case 0:r=e.call(this,0)||this;break;case 1:var o=n[0];r=e.call(this,1,o)||this;break;case 2:o=n[0];var a=n[1];r=e.call(this,1,o)||this;break;case 3:o=n[0],a=n[1];r=e.call(this,2,o,a)||this}return r}return t.__extends(n,e),n.$t=b(n,"ArgumentException",ye.$),n}(ye),Nt=function(e){function n(n,i,r){for(var o,a,s=[],l=3;l<arguments.length;l++)s[l-3]=arguments[l];var c=e.call(this)||this;switch(c.$tKey=null,c.$tValue=null,c.j=null,c.k=0,c.e=!1,c.d=!1,c.c=!1,c.a=null,c.b=null,c.$tKey=n,c.$tValue=i,c.$type=c.$type.specialize(c.$tKey,c.$tValue),r=null==r?0:r){case 0:var p=(b=[0,null])[0],h=b[1];c.a={},c.b={},c.j=h||Et.defaultEqualityComparerValue(c.$tKey),c.e=null==h&&n===U,c.d=n===u.$type||n.InstanceConstructor&&!n.InstanceConstructor.prototype.getHashCode,c.c=null==h&&(c.e||c.d||n.InstanceConstructor&&n.InstanceConstructor.prototype.getHashCode==u.prototype.getHashCode);break;case 1:h=(y=[b=s[0],null])[0];var f=y[1];c.a={},c.b={},c.j=f||Et.defaultEqualityComparerValue(c.$tKey),c.e=null==f&&n===U,c.d=n===u.$type||n.InstanceConstructor&&!n.InstanceConstructor.prototype.getHashCode,c.c=null==f&&(c.e||c.d||n.InstanceConstructor&&n.InstanceConstructor.prototype.getHashCode==u.prototype.getHashCode);break;case 2:h=(y=[0,b=s[0]])[0],f=y[1];c.a={},c.b={},c.j=f||Et.defaultEqualityComparerValue(c.$tKey),c.e=null==f&&n===U,c.d=n===u.$type||n.InstanceConstructor&&!n.InstanceConstructor.prototype.getHashCode,c.c=null==f&&(c.e||c.d||n.InstanceConstructor&&n.InstanceConstructor.prototype.getHashCode==u.prototype.getHashCode);break;case 3:f=[h=(y=[(b=s[0]).count])[0],null];var g=f[1];c.a={},c.b={},c.j=g||Et.defaultEqualityComparerValue(c.$tKey),c.e=null==g&&n===U,c.d=n===u.$type||n.InstanceConstructor&&!n.InstanceConstructor.prototype.getHashCode,c.c=null==g&&(c.e||c.d||n.InstanceConstructor&&n.InstanceConstructor.prototype.getHashCode==u.prototype.getHashCode);try{for(var d=t.__values(H(b)),m=d.next();!m.done;m=d.next()){p=m.value;c.item(p.key,p.value)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}break;case 4:var b=s[0],y=s[1];c.a={},c.b={},c.j=y||