if (typeof window.InvestingChannelQueue === 'undefined') { var ic_calculateDocumentType = function() { try{ if(self == window.top) return 'pg'; if(window.location.hostname == window.top.location.hostname) return 'ff'; return 'if'; }catch(e){ return 'if'; } return 'un'; }; var ic_getCurrentAdTagElement = function (pAdTagUrl) { var icScriptElement = null; var scripts = document.getElementsByTagName('script'); if (scripts != null) { for (var i = scripts.length - 1; icScriptElement == null && i >= 0; i--) { var scriptElement = scripts[i]; var scriptSrc = scriptElement.src; if (scriptSrc.match(pAdTagUrl)) { icScriptElement = scriptElement; } } } return icScriptElement; }; var ic_createADSlot = function (pAdParentElementId, pAdTagUrl) { var ic_tagElement; var ic_parent_element = document.getElementById(pAdParentElementId); var div_id = 'ic-adSlot-' + Math.floor(Math.random() * 1e16); var div = document.createElement('div'); div.id = div_id; if (!ic_parent_element) { ic_tagElement = ic_getCurrentAdTagElement(pAdTagUrl); ic_tagElement.parentNode.insertBefore(div, ic_tagElement); } else if (ic_parent_element.tagName === "SCRIPT") { ic_tagElement = ic_parent_element; ic_tagElement.parentNode.insertBefore(div, ic_tagElement); } else { div_id = pAdParentElementId; } return div_id; }; var ic_getUrlVars = function (url) { var vars = [], hash; var hashes = url.slice(url.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { try { hash = hashes[i].split('='); if (hash[0] != 'dcopt' && hash[0] != 'multi_size' && hash[0] != 'ad_element_id') vars[hash[0]] = hash[1].split(','); } catch (e) { } } return vars; } var ic_page; InvestingChannelQueue = window.InvestingChannelQueue || []; InvestingChannelQueue.push(function () { ic_page = InvestingChannel.UAT.Run('5c5a75c3-8896-4592-98f8-dc06e6fdcc56'); }); var ic_dropOOPTag = function() { if ("1x1".toLowerCase() != 'oop' && true && ic_calculateDocumentType() == 'pg') { var ic_uat5ooptag; var ic_adSlot = ic_createADSlot('', 'ads.investingchannel.com/adtags/4Traders/equities/1x1.js'); InvestingChannelQueue.push(function () { ic_uat5ooptag = ic_page.defineOutOfPageTag('4traders/equities', ic_adSlot); var kvals = ic_getUrlVars(""); if (ic_uat5ooptag && kvals) { ic_uat5ooptag.setKval(kvals); if ("t" in kvals) ic_page.setKval({"t": kvals["t"].join().toUpperCase().split(",")}); } }); InvestingChannelQueue.push(function () { ic_page.renderTags(); }); } } ic_dropOOPTag(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments);};var InvestingChannel=__assign(function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(i,l){function r(e){try{o(a.next(e))}catch(e){l(e)}}function s(e){try{o(a.throw(e))}catch(e){l(e)}}function o(e){e.done?i(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(r,s)}o((a=a.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,a,i,l,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return l={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function s(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=2&l[0]?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]0)for(var s=0;s0)for(var r=0;r0)for(var o=0;o0&&this.mTemplate.renderAdvancePlacements(n)}catch(e){s=this.mTemplate?this.mTemplate.getPageId():"null";InternalInvestingChannel.Template.pushAPILog(l.default.PAGE_RENDERTAG_FAILED,"("+e.message+")",s)}},e.prototype.refreshTags=function(t){if(T&&h("Invoked global refresh tags command"),!this.mTemplate)return"READY"==e.mLoadedStatus?void InternalInvestingChannel.Template.pushAPILog(l.default.PAGE_OBJECT_NOT_FOUND,"(page.refreshTags())"):(T&&h("Objects is not Initialized: refreshTags added in queue with params: "+t),void this.InternalInvestingChannelQueue.push(function(){m.refreshTags(t)}));try{if(t&&Array.isArray(t))for(var n=0;n0)for(;this.InternalInvestingChannelQueue.length>0;)this.InternalInvestingChannelQueue.shift()()},e.mLoadedStatus="NOT_READY",e}();e.Page=t;var n=function(){function e(e,t,n,a,i,l){if(this.mPlacements=[],this.mTemplate=e,t)this.mPlacements[this.mPlacements.length]=t;else if(void 0!=a&&void 0==i){(r=e.defineOutOfPageTag(a,n))&&(this.mPlacements[this.mPlacements.length]=r)}else if(void 0!=a&&void 0!=i){var r;(r=e.defineTag(a,i,n,l))&&(this.mPlacements[this.mPlacements.length]=r)}}return e.prototype.getId=function(){return this.mPlacements.length>0?this.mPlacements[0].getRandomNumber():null},e.prototype.render=function(){return a(this,void 0,void 0,function(){var e,t,n,a,r;return i(this,function(i){switch(i.label){case 0:i.trys.push([0,3,,4]);try{if(T)for(t=0;t0&&this.mTemplate?[4,this.mTemplate.renderAdvancePlacements(this.mPlacements)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[3,4];case 3:for(e=i.sent(),t=0;t0)for(;InvestingChannelQueue.length>0;){var e=c.Page.getAPIStatus();if("NOT_READY"==e||"READY"==e)InvestingChannelQueue.shift()();else if("INPROGRESS"==e){c.Page.apiReady(A);break}}!function(e,t){e.push=function(n){Array.prototype.push.call(e,n),t(e)}}(InvestingChannelQueue,function(e){A()})}var f=document.currentScript||function(){for(var e=document.getElementsByTagName("script"),t=null,n=0;n-1&&-1!==a.indexOf(".js",a.length-".js".length))return e[n]}catch(e){s("uat.js","Error while parcing the script src on "+(o()?"ZeroHedge":"Other"))}return null}();null!=f?f.addEventListener("load",function(){T&&h("Script loaded."),A()}):(console.warn("IC: Not able to add load event...."),s("uat.js","Not able to add load event "+(o()?"ZeroHedge":"Other")))},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorType=void 0,function(e){e.SELECTOR_NOT_FOUND="Selector not loaded.",e.GEO_TARGETING_FAILED="Geo not matched.",e.DEVICE_TARGETING_FAILED="Device not matched.",e.GDPR_TARGETING_FAILED="Not able to serve the tag as consents are not given.",e.CUSTOM_TARGETING_FAILED="Not able to serve the tag as targeting is not matched.",e.TAG_NOT_CONFIGURED="Tag is not configured.",e.SELECTOR_INVALID="Selector not configured.",e.ADSIZE_INVALID="AdSize is not configured for display tag.",e.TARGET_INVALID="Target is not configured for display tag.",e.ADSIZEMAPPING_INVALID="Invalid SizeMapping configuration.",e.ADSIZEMAPPING_TARGETING_FAILED="Blank AdSize configured in SizeMapping.",e.NO_ADS="Publisher has passed show_no_ads flag.",e.UNKNOW_ERROR="Due some unknown error, not able to serve the tag.",e.PAGE_OBJECT_NOT_FOUND="Publisher is trying to call API, but page object does not exist ",e.PAGE_DESTROY_TEMPLATE_NOT_FOUND="Template does not exist ",e.PAGE_DESTROY_FAILED="Failed to destroy the page due to some internal error ",e.PAGE_REFRESHTAG_TAG_NOT_FOUND="Publisher tag does not exist.",e.PAGE_REFRESHTAG_FAILED="Failed to refresh the page due to some internal error ",e.ADD_SIZEMAPPING_FAILED="Failed to add the sizemppaing object, due to some internal error ",e.BUILD_SIZEMAPPING_FAILED="Failed to build the size mapping object due to some internal error ",e.PAGE_DEFINETAG_SITE_MISMATCH="Different site provided ",e.PAGE_DEFINETAG_TARGET_NOT_FOUND="Invalid target provided ",e.PAGE_DEFINETAG_INVALID_SIZE="Invalid size provided ",e.PAGE_DEFINETAG_FAILED="Failed to define the tag due to some internal error ",e.PAGE_DEFINETAG_INVALID_DIVID="Publisher is trying to create the multiple tags with the same div-id",e.PAGE_DEFINEOOPTAG_SITE_MISMATCH="Different oop site provided ",e.PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND="Invalid oop target provided ",e.PAGE_DEFINEOOPTAG_FAILED="Failed to define the oop tag due to some internal error ",e.PAGE_DEFINEOOPTAG_INVALID_DIVID="Publisher is trying to create the multiple oop tags with the same div-id",e.PAGE_GETPUBTAG_TAG_NOT_FOUND="Tag does not exist for the provided divid ",e.PAGE_GETPUBTAG_FAILED="Failed to found the tag due to some internal error ",e.PAGE_SETKVAL_FAILED="Failed to set the kval due to some error ",e.PAGE_CLEARKVAL_FAILED="Failed to clear the kval due to some error ",e.PAGE_RENDERTAG_TAG_NOT_FOUND="Publisher tag does not exist",e.PAGE_RENDERTAG_FAILED="Failed to render the tags due to some internal error ",e.TAG_DEFINESIZEMAPPING_FAILED="Failed to define the size mapping on tag ",e.TAG_SETKVAL_FAILED="Failed to set the kval due to some error ",e.TAG_CLEARKVAL_FAILED="Failed to clear the kval due to some error ",e.TAG_RENDER_FAILED="Failed to render the tag due to some error ",e.TAG_REFRESH_FAILED="Failed to refresh the tag due to some error ",e.TAG_CLEAR_FAILED="Failed to clear the tag content due to some error ",e.TAG_DESTROY_FAILED="Failed to destroy the tag due to some error ",e.TAG_ADDEVENTLISTNER_FAILED="Failed to register event listener",e.NATIVE_LAYOUT_NOT_FOUND="Native layout is not configured on tag ",e.PAGE_DEFINENATIVETAG_SITE_MISMATCH="Different site provided ",e.PAGE_DEFINENATIVETAG_TARGET_NOT_FOUND="Invalid target provided ",e.PAGE_DEFINENATIVETAG_FAILED="Failed to define the native tag due to some internal error ",e.PAGE_DEFINENATIVETAG_INVALID_DIVID="Publisher is trying to create the multiple tags with the same div-id",e.PAGE_DEFINENATIVETAG_LAYOUT_NOT_FOUND="Invalid native layout id provided "}(a=t.ErrorType||(t.ErrorType={})),t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){}return e.NETWORK_CODE="5206",e.ENVIRONMENT="prod",e.UAT_BASE_URL="https://uat5-b.investingchannel.com/",e.UAT_DATA_URL=e.UAT_BASE_URL+"data",e.UAT_TARGET_KVAL_URL=e.UAT_BASE_URL+"target/",e.UAT_NATIVELAYOUT_URL=e.UAT_BASE_URL+"site/{0}/nativelayout/{1}",e.UAT_LOG_REPORT_URL=e.UAT_BASE_URL+"log/report/",e.UAT_LOG_ERROR_URL=e.UAT_BASE_URL+"log/error/",e.UAT_LOG_API_URL=e.UAT_BASE_URL+"log/api/",e.UAT_LOG_PAGE_URL=e.UAT_BASE_URL+"log/page/",e.UAT_LOG_URL=e.UAT_BASE_URL+"logs/",e.UAT_EXELATE_PIXEL_URL=e.UAT_BASE_URL+"pixels/vendor/exelate",e.SESSION_TEMPLATE_OBJECT_NAME="IC_TemplateObject",e.VIEWCOUNTER_COOKIE_NAME_PREFIX="IC_ViewCounter_",e.FOLDPOSITION_TOLERANCE=1,e.UAT_CDN_URL="https://u5.investingchannel.com/",e.PREDICTIVE_BASE_URL=e.UAT_CDN_URL+"predictive/",e.UID_IFRAME_URL=e.UAT_CDN_URL+"start.html",e.UAT_JS_URL=e.UAT_CDN_URL+"static",e.VERSION="1.7.0",e}();t.default=a}]), InvestingChannel); } var ic_dropTag = function() { if ("1x1".toLowerCase() == 'oop') { var ic_adSlot = ic_createADSlot('', 'ads.investingchannel.com/adtags/4Traders/equities/1x1.js'); InvestingChannelQueue.push(function () { ic_uat5ooptag = ic_page.defineOutOfPageTag('4traders/equities', ic_adSlot); var kvals = ic_getUrlVars(""); if (ic_uat5ooptag && kvals) { ic_uat5ooptag.setKval(kvals); if ("t" in kvals) ic_page.setKval({"t": kvals["t"].join().toUpperCase().split(",")}); } }); } else { var ic_adSlot = ic_createADSlot('', 'ads.investingchannel.com/adtags/4Traders/equities/1x1.js'); InvestingChannelQueue.push(function () { var adSize = "1x1"; if (ic_calculateDocumentType() != 'pg' && adSize) adSize = adSize.split(",")[0]; var ic_uat5tag = ic_page.defineTag('4traders/equities', adSize, ic_adSlot); var kvals = ic_getUrlVars(""); if (ic_uat5tag && kvals) { ic_uat5tag.setKval(kvals); if ("t" in kvals) { ic_page.setKval({"t": kvals["t"].join().toUpperCase().split(",")}); } } }); } InvestingChannelQueue.push(function () { ic_page.renderTags(); }); } ic_dropTag();