PageSourceSearch

https://www.wirelesscar.com/wp-content/plugins/wirelesscar-cision/js/Cision.Websolutions-4.3.0.min.js

js wirelesscar.com collected 2026-10-02 05:34:55 UTC 88,929 bytes, 3 lines download raw bytes

1/*! Cision.Websolutions 29-05-2020 */
2
3var cision;(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},$.support.cors=!0,cision.websolution.translationHelpers={getTranslation:function(e){return cision.websolution.texts[cision.websolution.settings.general.uiLanguage][e]}},cision.websolution.common=function(s){var l=s.extend({},cision.websolution.settings.general),c=cision.websolution.texts[l.uiLanguage];function t(e){return l.useProxyHandler?l.proxyHandler+"?url="+l.serviceEndpoint+e:l.serviceEndpoint+e}function u(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o}return{getModuleData:function(a){if(a){if(a.accessKey){var e=t(a.path);return new Promise(function(t,n){s.ajax({url:e,type:"GET",dataType:"json",data:a.postData||null}).done(function(e){console.log("Successfully retrieved "+a.module+" data"),t(e)}).fail(function(e,t,o){console.log("Could not retrieve "+a.module+" data"),n(t+o.message)})})}console.log("You must provide the "+a.module+" access key")}else console.log("You must provide the accesskey and module path")},modelToHtml:function(e,t,o,n){var a=s.extend(e,c,l);n&&(a=s.extend(a,function(){var e=new Object;e.Years=[],e.Months=[],e.Days=[];for(var t=l.startDateYear;t<=moment().year();t++)e.Years.push(t);for(t=1;t<=12;t++)e.Months.push(u(t,2));for(t=1;t<=31;t++)e.Days.push(u(t,2));return e.StartDateSelectedYear=moment().year()-1,e.EndDateSelectedYear=moment().year(),e.SelectedMonth=u(moment().month()+1,2),e.SelectedDay=u(moment().date(),2),e}()));var i=s.extend(cision.websolution.formatHelpers,cision.websolution.translationHelpers),r=s(t).render(a,i);s(o).html(r)},generateUrl:t,getIndicatorSettings:function(o){var n={};return s.each(l.indicatorsOnSeries,function(e,t){o==t.uniqueKey&&(n=t)}),n},setPagingItems:function(e){var t=e.TotalFoundReleases||e.TotalFound;return e.PreviousPageExists=0<e.PageIndex,e.PreviousPageIndex=Math.max(1,e.PageIndex-1),e.NextPageIndex=e.PageIndex+1,e.NextPageExists=e.PageIndex*e.PageSize<t,e.PageCount=Math.ceil(t/e.PageSize),e}}}(jQuery),function(e){"use strict";e.console||(e.console={});for(var t,o,n=e.console,a=function(){},i=["memory"],r="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)n[t]||(n[t]={});for(;o=r.pop();)"function"!=typeof n[o]&&(n[o]=a)}("undefined"==typeof window?this:window),(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.formatHelpers.formatNumber=function(e,t,o,n){if(null==e)return e;var a=cision.websolution.settings.general.numberFormatOptions||{};return null==t&&(t=null==a.decimalPrecision?2:a.decimalPrecision),null==o&&(o=null==a.decimalSeparator?".":a.decimalSeparator),null==n&&(n=null==a.thousandSeparator?"":a.thousandSeparator),jQuery.number(e,t,o||".",n)},cision.websolution.formatHelpers.formatCurrency=function(e,t,o){if(null==e)return e;var n=cision.websolution.formatHelpers.formatNumber(e);return null==n?n:(t||"")+n+(o||"")},cision.websolution.formatHelpers.formatDate=function(e,t){var o=cision.websolution.settings.general.dateFormatOptions||{};return moment(e).format(t||o.dateFormat||"DD MMM YYYY")},cision.websolution.formatHelpers.formatTime=function(e,t){var o=cision.websolution.settings.general.dateFormatOptions||{};return moment(e).format(t||o.timeFormat||"HH:mm")},cision.websolution.formatHelpers.formatDateTime=function(e,t){var o=cision.websolution.settings.general.dateFormatOptions||{};return moment(e).format(t||o.dateTimeFormat||"DD MMM YYYY HH:mm")},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(t){var o=this.constructor;return this.then(function(e){return o.resolve(t()).then(function(){return e})},function(e){return o.resolve(t()).then(function(){return o.reject(e)})})}var t=setTimeout;function l(e){return Boolean(e&&void 0!==e.length)}function n(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],m(e,this)}function a(o,n){for(;3===o._state;)o=o._value;0!==o._state?(o._handled=!0,i._immediateFn(function(){var e=1===o._state?n.onFulfilled:n.onRejected;if(null!==e){var t;try{t=e(o._value)}catch(e){return void s(n.promise,e)}r(n.promise,t)}else(1===o._state?r:s)(n.promise,o._value)})):o._deferreds.push(n)}function r(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if(e instanceof i)return t._state=3,t._value=e,void c(t);if("function"==typeof o)return void m(function(e,t){return function(){e.apply(t,arguments)}}(o,e),t)}t._state=1,t._value=e,c(t)}catch(e){s(t,e)}}function s(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,o=e._deferreds.length;t<o;t++)a(e,e._deferreds[t]);e._deferreds=null}function u(e,t,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=o}function m(e,t){var o=!1;try{e(function(e){o||(o=!0,r(t,e))},function(e){o||(o=!0,s(t,e))})}catch(e){if(o)return;o=!0,s(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var o=new this.constructor(n);return a(this,new u(e,t,o)),o},i.prototype.finally=e,i.all=function(t){return new i(function(n,a){if(!l(t))return a(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var r=i.length;function s(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;
3if("function"==typeof o)return void o.call(e,function(e){s(t,e)},a)}i[t]=e,0==--r&&n(i)}catch(e){a(e)}}for(var e=0;e<i.length;e++)s(e,i[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(o){return new i(function(e,t){t(o)})},i.race=function(a){return new i(function(e,t){if(!l(a))return t(new TypeError("Promise.race accepts an array"));for(var o=0,n=a.length;o<n;o++)i.resolve(a[o]).then(e,t)})},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in o?o.Promise.prototype.finally||(o.Promise.prototype.finally=e):o.Promise=i}),(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.calendar=cision.websolution.settings.calendar?function(c){function n(){if(m.accessKey&&(a=m.accessKey),a)return postData={languageCode:m.uiLanguage,pageIndex:m.pageIndex,pageSize:m.pageSize||50,startDate:m.startDate,endDate:m.endDate,category:m.calendarCategory};console.log("You must provide your Calendar access key.")}function u(e){return e.EventTimeFormatted=moment(e.EventTime).locale(m.uiLanguage).format(m.dateFormatOptions.dateTimeFormat),e.EventTimeFormattedDate=moment(e.EventTime).locale(m.uiLanguage).format(m.dateFormatOptions.dateFormat),e.EventTimeFormattedTime=moment(e.EventTime).locale(m.uiLanguage).format(m.dateFormatOptions.timeFormat),e.EventWeekDay=moment(e.EventTime).locale(m.uiLanguage).format("dddd"),0<e.LogoUrl?e.HasImage=!0:e.HasImage=!1,e.PublishTimeFormatted=moment(e.PublishTime).locale(m.uiLanguage).format(m.dateFormatOptions.dateTimeFormat),e.ArchiveTimeFormatted=moment(e.ArchiveTime).locale(m.uiLanguage).format(m.dateFormatOptions.dateTimeFormat),e.ICalUrl=m.serviceEndpoint+"Calendar/"+a+"/EventDetailIcs?eventGuid="+e.EventGuid+"&languageCode="+m.uiLanguage,e.EventDuration=moment.duration(e.EventDuration,"minutes").asHours(),e.EndDateWeekDay=moment(e.EventTime).add(e.EventDuration,"hours").locale(m.uiLanguage).format("dddd"),e.EndDateFormattedDate=moment(e.EventTime).add(e.EventDuration,"hours").format(m.dateFormatOptions.dateFormat),e.EndDateFormattedTime=moment(e.EventTime).add(e.EventDuration,"hours").format(m.dateFormatOptions.timeFormat),e.IsOneDay=e.EventTimeFormattedDate==e.EndDateFormattedDate,e}var m=c.extend({},cision.websolution.settings.general),a=(cision.websolution.settings.calendar||{}).accessKey,d=cision.websolution.texts[m.uiLanguage],p=[],g=!0;return{getEventByGuid:function(e){if(e.eventGuid){if(e&&c.extend(m,e),a){var t={eventguid:e.eventGuid,LanguageCode:m.uiLanguage},o=cision.websolution.common.getModuleData({accessKey:a,module:"Calendar event",path:"Calendar/"+a+"/EventDetail",postData:t});return Promise.resolve(o).then(function(e){e=u(e);var t="#"+(m.templateElement||"tplEventDetail"),o="#"+(m.outputTargetElement||"target-event-detail");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log(e.message)})}console.log("You must provide your Calendar access key.")}else console.log("You must provide an event guid.")},renderEventList:function(e){e&&c.extend(m,e);var t=n();if(null!=t){var o=cision.websolution.common.getModuleData({accessKey:a,module:"Calendar events",path:"Calendar/"+a,postData:t});return Promise.resolve(o).then(function(e){var o=null;c.each(e.Events,function(e,t){t=u(t),g&&t.Categories&&c.each(t.Categories,function(e,t){p.push(t)}),!0===m.separateFirstEvent&&null===o&&""==m.calendarCategory&&(o=t).HasImage&&(o.LogoUrl=t.LogoUrl)});var n=[];c.each(p,function(e,t){-1===c.inArray(t,n)&&n.push(t)}),!0===m.separateFirstEvent&&""==m.calendarCategory&&e.Events.shift();var t="#"+(m.templateElement||"tplCalendarEventListing"),a="#"+(m.outputTargetElement||"eventListTarget");if(cision.websolution.common.modelToHtml(e,t,a),m.separateFirstEvent&&g&&o){var i="#"+(m.topEventTemplateElement||"tplTopEvent"),r="#"+(m.topEventOutputTargetElement||"target-event-top");cision.websolution.common.modelToHtml(o,i,r)}if(g){d.Categories=n;var s="#"+(m.categoriesTemplateElement||"tplCategories"),l="#"+(m.categoriesOutputTargetElement||"target-categories");cision.websolution.common.modelToHtml({},s,l)}g=!1}
3).catch(function(e){console.log(e.message)})}},renderArchiveList:function(e){e&&c.extend(m,e);var t=n();if(null!=t){var o=cision.websolution.common.getModuleData({accessKey:a,module:"Calendar archive",path:"Calendar/"+a+"/Archive",postData:t});return Promise.resolve(o).then(function(e){c.each(e.Events,function(e,t){t=u(t)});var t="#"+(m.templateElement||"tplCalendarArchiveListing"),o="#"+(m.calendarOutputTargetElement||"archiveEventListTarget");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log(e.message)})}},renderSidebarCalendar:function(e){e&&c.extend(m,e);var t=n();if(null!=t){var o=cision.websolution.common.getModuleData({accessKey:a,module:"Sidebar calendar",path:"Calendar/"+a,postData:t});return Promise.resolve(o).then(function(e){var o=null;c.each(e.Events,function(e,t){t=u(t),g&&t.Categories&&c.each(t.Categories,function(e,t){p.push(t)}),!0===m.separateFirstEvent&&null===o&&""==m.calendarCategory&&(o=t).HasImage&&(o.LogoUrl=t.LogoUrl)});var n=[];c.each(p,function(e,t){-1===c.inArray(t,n)&&n.push(t)}),!0===m.separateFirstEvent&&""==m.calendarCategory&&e.Events.shift();var t="#"+(m.templateElement||"tplSidebarCalendar"),a="#"+(m.outputTargetElement||"sidebarCalendarTarget");cision.websolution.common.modelToHtml(e,t,a),g=!1}).catch(function(e){console.log(e.message)})}},queryObj:function(){for(var e,t={},o=location.search.slice(1),n=/([^&=]+)=([^&]*)/g;e=n.exec(o);)t[decodeURIComponent(e[1])]=decodeURIComponent(e[2]);return t}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.dividend=cision.websolution.settings.ticker?function(s){var l=cision.websolution.settings.general,n=cision.websolution.settings.ticker.accessKey;return{renderToGraph:function(r,e){if(e&&s.extend(l,e),n){var t={type:l.dividendType||"Annual",startDate:l.startDate,endDate:l.endDate},o=cision.websolution.common.getModuleData({accessKey:n,module:"Dividend",path:"Ticker/"+n+"/Dividend",postData:t});return Promise.resolve(o).then(function(e){var o=cision.websolution.common.getIndicatorSettings(l.dividendsUniqueKey),t=e.Instruments[0],n=[];s.each(t.Dividends,function(e,t){n.push({x:1e3*moment(t.EventDate).format("X"),title:o.title||"D",text:t.Amount,DividendTransaction:t})}),n=n.sort(function(e,t){var o=e.x-t.x;return 0==o?o:o<0?-1:1});var a={UniqueKey:l.dividendsUniqueKey},i={id:a.UniqueKey,name:"DIVIDENDS",type:"flags",data:n,onSeries:o.seriesId||"",shape:o.shape||"squarepin",fillColor:o.shapeColor||"",color:o.shapeOutlineColor||"",style:{color:o.shapeTextColor||""},zIndex:20,objOriginal:a,visible:!0,tooltip:{useHTML:!0,pointFormat:"<strong>{point.DividendTransaction.Amount}</strong>"}};r.addSeries(i)}).catch(function(e){console.log("Could not retrieve dividend data. "+e.message)})}console.log("You must provider your dividend access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.estimate=cision.websolution.estimate||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.estimate.annual=cision.websolution.settings.estimate?function(i){var l=i.extend({},cision.websolution.settings.general),o=cision.websolution.settings.estimate.accessKey;return{render:function(e){if(e&&i.extend(l,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Estimate",path:"Estimate/"+o});return Promise.resolve(t).then(function(e){var o=function(e){var r={},s={};return i.each(e,function(e,t){"actual"===t.Type.toLowerCase()&&(r[t.Period]=t.Type)}),l.periodStart=l.periodStart.toString(),l.periodEnd=l.periodEnd.toString(),i.each(e,function(e,t){if(t.Period<l.periodStart||t.Period>l.periodEnd)return!0;var o="estimate"===t.Type.toLowerCase(),n=t.Period+"-"+t.Type.toLowerCase(),a=t.Period+(o?l.suffixEstimate:l.suffixActual),i=t.Date;return l.hideEstimateIfActualExists&&o&&r.hasOwnProperty(t.Period)||(s.hasOwnProperty(n)||(s[n]={Name:n,Header:a,Period:t.Period,IsEstimate:o,Date:i}),t.Currency!=l.estimateCurrency.toUpperCase()&&""!=l.estimateCurrency||(s[n][t.Field]=t.Average,o&&(s[n][t.Field+"_Count"]=t.Count||0))),!0}),i.map(s,function(e){return e})}(e.AnnualKeyFigures),n="2000-01-01";i(o).each(function(e,t){t.Date>=n&&(o.LastDateFormatted=moment(t.Date).locale(l.uiLanguage).format(l.dateFormatOptions.dateFormat)),n=t.Date});var t="#"+(l.templateElement||"template-estimate-annual"),a="#"+(l.outputTargetElement||"target-estimate-annual");cision.websolution.common.modelToHtml({PeriodList:o},t,a)}).catch(function(e){console.log("Could not retrieve annual estimate data. "+e.message)})}console.log("You must provide your estimates access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.estimate=cision.websolution.estimate||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.estimate.historical=cision.websolution.settings.estimate?function(n){function t(e){if(e&&n.extend(i,e),a){var t={field:i.field},o=cision.websolution.common.getModuleData({accessKey:a,module:"Estimate historical",path:"Estimate/"+a+"/Historical",postData:t});return Promise.resolve(o).then(function(e){!function(e){var t={labels:{formatter:function(){return r(this.value)}},tickPixelInterval:150},o={labels:{formatter:function(){return cision.websolution.formatHelpers.formatNumber(this.value.toString(),i.numberFormatOptions.decimalPrecision,i.numberFormatOptions.decimalSeparator,i.numberFormatOptions.thousandSeparator)}},title:{text:"",margin:0}},n={formatter:function(){return'<span style="text-align:center;font-size:130%;"> '+("line"===this.series.type?i.tooltipHeaderEstimate:i.tooltipHeaderReal)+this.series.name+"</span><br/>"+i.dateString+r(this.x)+"<br/>"+i.amountString+cision.websolution.formatHelpers.formatNumber(this.y,i.numberFormatOptions.decimalPrecision,i.numberFormatOptions.decimalSeparator,i.numberFormatOptions.thousandSeparator)+" "+i.valueSuffix}},a={enabled:!0,borderColor:"#DBDBDB",margin:20,labelFormatter:function(){return("line"===this.type?i.tooltipHeaderEstimate:i.tooltipHeaderReal)+this.name}};new Highcharts.Chart({chart:{renderTo:"historicalDataContainer",defaultSeriesType:"line"},series:e,xAxis:t,yAxis:o,tooltip:n,plotOptions:{line:{lineWidth:2,states:{hover:{lineWidth:3}},marker:{enabled:false,states:{hover:{enabled:true,symbol:"circle",radius:4,lineWidth:1}}}}},legend:a,credits:{enabled:!1},title:{text:i.chartTitle}})}(function(e){var t=e.HistoricalKeyFigures,a={};return n.each(t,function(e,t){if(!("EBIT"==t.Field&&"Percent"==t.Unit)){var o="estimate"===t.Type.toLowerCase(),n=t.Period+"_y"+(o?"":"_actual");a.hasOwnProperty(n)||(a[n]={id:n,name:t.Period,type:o?"line":"scatter",data:[]}),t.Currency!=i.estimateCurrency.toUpperCase()&&""!=i.estimateCurrency||a[n].data.push([moment(t.Date).valueOf(),t.Average])}}),n.map(a,function(e,t){return e})}(e))}).catch(function(e){console.log("Could not retrieve historical estimates data. "+e.message)})}console.log("You must provide your access key.")}var i=n.extend({},cision.websolution.settings.general),a=cision.websolution.settings.estimate.accessKey;function r(e){var t="YYYY-MM-DD";switch(i.uiLanguage){case"EN":t="MM/DD/YYYY";break;case"SV":default:t="YYYY-MM-DD"}return moment(new Date(e)).format(t)}return{render:t,reloadChart:function(e){switch(e){case"SALES":i.chartTitle="SALES, MSEK",i.valueSuffix=" MSEK",i.numberFormatOptions={decimalPrecision:0};break;case"VOLUMES":i.chartTitle="VOLUME, MT",i.valueSuffix=" MT",i.numberFormatOptions={decimalPrecision:0};break;case"EBIT":i.chartTitle="EBIT, MSEK",i.valueSuffix=" MSEK",i.numberFormatOptions={decimalPrecision:0};break;case"DPS":i.chartTitle="DPS, SEK",i.valueSuffix=" SEK",i.numberFormatOptions={decimalPrecision:2};break;case"EPS":i.chartTitle="EPS, SEK",i.valueSuffix=" SEK",i.numberFormatOptions={decimalPrecision:2}}t({field:e}),n("#historicDataHeader a.active").removeClass("active"),e?n("#historicalDataHeader"+e).addClass("active"):n("#historicalDataHeaderSALES").addClass("active")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.estimate=cision.websolution.estimate||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.estimate.common=cision.websolution.settings.estimate?function(){var t=cision.websolution.settings.general;return{renderEstimateTab:function(e){if(null==t.estimateTabLoaded[e]){switch(e){case"#target-estimate-annual":cision.websolution.estimate.annual.render({periodStart:(moment().year()-2).toString(),periodEnd:moment().year()+1});break;case"#target-estimate-quarterly":cision.websolution.estimate.quarterly.render({periodStart:(moment().year()-1).toString()+"-Q1",periodEnd:moment().year()+1+"-Q1"});break;case"#target-estimate-historical":cision.websolution.estimate.historical.render({chartTitle:"SALES, MSEK",valuePrefix:"",valueSuffix:" MSEK",dateFormatTooltip:"Do MMMM YYYY",numberFormatOptions:{decimalPrecision:0}});break;case"#target-estimate-recommendations":cision.websolution.estimate.recommendations.renderTicker({dateFormat:t.dateFormatOptions.dateFormat}),cision.websolution.estimate.recommendations.renderCurrent({dateFormat:t.dateFormatOptions.dateFormat});break;case"#target-estimate-historic-recommendations":cision.websolution.estimate.recommendations.renderHistory({startDate:moment().subtract(6,"months").format("YYYY-MM-DD"),endDate:moment().format("YYYY-MM-DD")})}t.estimateTabLoaded[e]=!0}}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.estimate=cision.websolution.estimate||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.estimate.quarterly=cision.websolution.settings.estimate?function(i){var l=i.extend({},cision.websolution.settings.general),o=cision.websolution.settings.estimate.accessKey;return{render:function(e){if(e&&i.extend(l,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Estimate quarterly",path:"Estimate/"+o+"/Quarterly"});return Promise.resolve(t).then(function(e){var o=function(e){var r={},s={};return i.each(e,function(e,t){"actual"===t.Type.toLowerCase()&&(r[t.Period]=t.Type)}),l.periodStart=l.periodStart.toString(),l.periodEnd=l.periodEnd.toString(),i.each(e,function(e,t){var o="estimate"===t.Type.toLowerCase(),n=t.Period+"-"+t.Type.toLowerCase(),a=t.Period+(o?l.suffixEstimate:l.suffixActual),i=t.Date;return t.Period<l.periodStart||t.Period>l.periodEnd||l.hideEstimateIfActualExists&&o&&r.hasOwnProperty(t.Period)||(s.hasOwnProperty(n)||(s[n]={Name:n,Header:a,Period:t.Period,IsEstimate:o,Date:i}),t.Currency!=l.estimateCurrency.toUpperCase()&&""!=l.estimateCurrency||(s[n][t.Field]=t.Average,o&&(s[n][t.Field+"_Count"]=t.Count||0))),!0}),i.map(s,function(e){return e})}(e.QuarterlyKeyFigures),n="2000-01-01";i(o).each(function(e,t){t.Date>=n&&(o.LastDateFormatted=moment(t.Date).locale(l.uiLanguage).format(l.dateFormatOptions.dateFormat)),n=t.Date});var t="#"+(l.templateElement||"template-estimate-quarterly"),a="#"+(l.outputTargetElement||"target-estimate-quarterly");cision.websolution.common.modelToHtml({PeriodList:o},t,a)}).catch(function(e){console.log("Could not retrieve quarterly estimates data. "+e.message)})}console.log("You must provide your estimate access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.estimate=cision.websolution.estimate||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.estimate.recommendations=cision.websolution.settings.estimate?function(l){var c=l.extend({},cision.websolution.settings.general),n=cision.websolution.settings.estimate.accessKey,o=cision.websolution.settings.estimate.accessKeyTicker;return{renderCurrent:function(e){if(e&&l.extend(c,e),n){var t=cision.websolution.common.getModuleData({accessKey:n,module:"Estimate",path:"Estimate/"+n+"/Recommendations"});return Promise.resolve(t).then(function(e){for(var t="2000-01-01",o=0;o<e.Recomendations.length;o++){var n=e.Recomendations[o];n.Date>=t&&(e.LastDate=n.Date,e.LastDateFormatted=moment(n.Date).locale(c.uiLanguage).format(c.dateFormatOptions.dateFormat)),t=n.Date}e.StrongBuyDistribution=Math.round(100*e.StrongBuy/e.TotalCount),e.BuyDistribution=Math.round(100*e.Buy/e.TotalCount),e.HoldDistribution=Math.round(100*e.Hold/e.TotalCount),e.SellDistribution=Math.round(100*e.Sell/e.TotalCount),e.StrongSellDistribution=Math.round(100*e.StrongSell/e.TotalCount),e.Mean=e.StrongBuy/e.TotalCount*5+e.Buy/e.TotalCount*4+e.Hold/e.TotalCount*3+e.Sell/e.TotalCount*2+e.StrongSell/e.TotalCount*1,e.MeanDistribution=Math.round(100*e.Mean/5),e.MeanDistribution=99<e.MeanDistribution?99:e.MeanDistribution,e.MeanDistribution=e.MeanDistribution<1?1:e.MeanDistribution;var a="#"+(c.templateElement||"tplCurrentRecommendationDistribution"),i="#"+(c.outputTargetElement||"currentRecommendationDistribution");cision.websolution.common.modelToHtml(e,a,i)}).catch(function(e){console.log("Could not retrieve estimate recommendations data. "+e.message)})}console.log("You must provide your Estimates access key.")},renderHistory:function(e){if(e&&l.extend(c,e),n){var t={startDate:c.startDate,field:c.field},o=cision.websolution.common.getModuleData({accessKey:n,module:"Estimate",path:"Estimate/"+n+"/RecommendationsHistorical",postData:t});return Promise.resolve(o).then(function(e){var o=function(e){var r={},s={},t=e.BuyRecomendations.concat(e.HoldRecomendations,e.SellRecomendations);return t=t.sort(function(e,t){return e.Date<t.Date?-1:e.Date>t.Date?1:0}),l.each(t,function(e,t){if(t.Date<c.startDate||t.Date>c.endDate)return!0;var o=t.Date.substr(0,7),n="";switch(t.key=t.Aspect+t.Type,t.key){case"BuyStrong":n="StrongBuy";break;case"BuyNeutral":n="Buy";break;case"HoldNeutral":n="Hold";break;case"SellNeutral":n="Sell";break;case"SellStrong":n="StrongSell"}r.hasOwnProperty(o)||(r[o]={Date:t.Date,Month:o,MonthName:moment(t.Date).locale(c.uiLanguage).format("MMM YYYY"),StrongBuy:0,Buy:0,Hold:0,Sell:0,StrongSell:0,Mean:0}),r[o][n]=t.Count;var a=r[o];a.TotalCount=a.StrongBuy+a.Buy+a.Hold+a.Sell+a.StrongSell;var i=a.StrongBuy/a.TotalCount*5+a.Buy/a.TotalCount*4+a.Hold/a.TotalCount*3+a.Sell/a.TotalCount*2+a.StrongSell/a.TotalCount*1;return r[o].Mean=i.toFixed(4),s.hasOwnProperty(o)||(s[o]=[]),s[o].push(t),!0}),r}(e);o.Months=l.map(o,function(e,t){return e.Month=t,e});var t=e.BuyRecomendations.concat(e.HoldRecomendations,e.SellRecomendations),n="2000-01-01";l(t).each(function(e,t){t.Date>=n&&(o.LastDateFormatted=moment(t.Date).locale(c.uiLanguage).format(c.dateFormatOptions.dateFormat)),n=t.Date});var a="#"+(c.templateElement||"template-recommendations-history-table"),i="#"+(c.outputTargetElement||"historicRecommendation");cision.websolution.common.modelToHtml(o,a,i)}).catch(function(e){console.log("Could not retrieve historical estimates recommendations data. "+e.message)})}console.log("You must provide your Estimates access key.")},renderTicker:function(e){if(e&&l.extend(c,e),o){var t=cision.websolution.common.getModuleData({accessKey:n,module:"Estimate share information",path:"Ticker/"+o});return Promise.resolve(t).then(function(e){var t=e.Instruments[0],o="2000-01-01";t.LatestQuote={};for(var n=0;n<t.Quotes.length;n++){var a=t.Quotes[n];a.QuoteTime>=o&&(a.QuoteTimeFormatted=moment(a.QuoteTime).locale(c.uiLanguage).format(c.dateFormatOptions.dateFormat),t.LatestQuote=a
3),o=a.QuoteTime}var i="#"+(c.templateElement||"tplShareInformation"),r="#"+(c.outputTargetElement||"shareinformation");cision.websolution.common.modelToHtml(t,i,r)}).catch(function(e){console.log("Could not retrieve estimate ticker data. "+e.message)})}console.log("You must provide your Ticker access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.insiders=cision.websolution.settings.insider?function(r){var s=r.extend({},cision.websolution.settings.general),n=cision.websolution.settings.insider.accessKey,l=cision.websolution.texts[s.uiLanguage].insidersDescriptions;return{renderTransactionsList:function(e){if(e&&r.extend(s,e),n){var t={startDate:s.startDate,endDate:s.endDate},o=cision.websolution.common.getModuleData({accessKey:n,module:"Insiders",path:"InsiderTrade/"+n+"/TransactionsList",postData:t});return Promise.resolve(o).then(function(e){r.each(e.Transactions,function(e,t){t.TransactionDateFormatted=moment(t.TransactionDate).locale(s.uiLanguage).format(s.dateFormatOptions.dateFormat),t.SecurityTypeDescription=l.securityTypes[t.SecurityTypeId],t.TransactionTypeDescription=l.transactionTypes[t.TransactionTypeId],t.PositionDescription=l.positionTypes[t.PositionId],t.HolderTypeDescription=l.holderTypes[t.HolderTypeId],t.Comment?t.Status=l.commentTypes[t.Comment.toLowerCase()]||t.Comment:t.Status="",t.HolderName&&(t.HolderTypeDescription+=" ["+t.HolderName+"]")});var t="#"+(s.templateElement||"tplInsiderTransactionsList"),o="#"+(s.outputTargetElement||"target-transactions");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log("Could not retrieve insiders data. "+e.message)})}console.log("You must provide your insiders access key.")},renderToGraph:function(i,e){if(e&&r.extend(s,e),n){var t={startDate:s.startDate,endDate:s.endDate},o=cision.websolution.common.getModuleData({accessKey:n,module:"Insiders",path:"InsiderTrade/"+n+"/TransactionsList",postData:t});return Promise.resolve(o).then(function(o){var n=cision.websolution.common.getIndicatorSettings(s.insidersUniqueKey),a=[];r.each(o.Transactions,function(e,t){t.TransactionDateFormatted=moment(t.TransactionDate).locale(s.uiLanguage).format(s.dateFormatOptions.dateFormat),t.DetailsLink=o.DetailsLink+t.InsiderName,t.PlusMinus=0<t.Quantity?"+":"",t.TransactionTypeDescription=l.transactionTypes[t.TransactionTypeId],a.push({x:1e3*moment(t.TransactionDate).format("X"),title:n.title||"I",text:t.InsiderName,InsiderTransaction:t})}),a=a.sort(function(e,t){var o=e.x-t.x;return 0==o?o:o<0?-1:1});var e={UniqueKey:s.insidersUniqueKey},t={id:e.UniqueKey,name:s.insidersUniqueKey,type:"flags",data:a,visible:!0,onSeries:n.seriesId||"",shape:n.shape||"flag",fillColor:n.shapeColor||"",color:n.shapeOutlineColor||"",style:{color:n.shapeTextColor||""},zIndex:20,objOriginal:e,tooltip:{useHTML:!0,pointFormat:"<strong>{point.InsiderTransaction.InsiderName}</strong><br/>{point.InsiderTransaction.PlusMinus}{point.InsiderTransaction.Quantity} st ({point.InsiderTransaction.TransactionTypeDescription})"}};i.addSeries(t)}).catch(function(e){console.log("Could not retrieve insiders data. "+e.message)})}console.log("You must provide your insiders access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.mediafeed=cision.websolution.settings.mediafeed?function(a){function e(e){if(e&&a.extend(i,e),i.accessKey&&(n=i.accessKey),n){var t={mediaRestriction:i.mediaRestriction,startDate:i.startDate,endDate:i.endDate,pageIndex:i.pageIndex,pageSize:i.pageSize,tags:i.tags},o=cision.websolution.common.getModuleData({accessKey:n,module:"Mediafeed",path:"NewsRoom/"+n+"/Medias",postData:t});return Promise.resolve(o).then(function(e){var o={Images:[],Videos:[],Embedded:[],Medias:[]};a.each(e.Medias,function(e,t){t.CreateDate=moment(t.CreateDate).locale(i.uiLanguage).format(i.dateFormatOptions.dateFormat),t.ThumbnailUrlImage=t.UrlTo200x200ArResized||t.UrlTo200x200Thumbnail,t.DownloadUrl=t.LargeThumbn
3ailUrl||t.DownloadUrl,"Image"===t.MediaType&&o.Images.push(t),"Embedded"===t.MediaType&&(t.EmbeddedItem=t.EmbedCode,o.Embedded.push(t)),"Video"===t.MediaType&&o.Videos.push(t),o.Medias.push(t)}),e.PageIndex<=0&&(e.PageIndex=1),(e=cision.websolution.common.setPagingItems(e)).Images=o.Images.reverse(),e.Medias=o.Medias.reverse(),e.Videos=o.Videos.reverse(),e.Embedded=o.Embedded.reverse();var t="#"+(i.templateElement||"tplMediaList"),n="#"+(i.outputTargetElement||"target-media-list");cision.websolution.common.modelToHtml(e,t,n)}).catch(function(e){console.log("Could not retrieve mediafeed data. "+e.message)})}console.log("You must provide your mediafeed access key.")}var i=a.extend({},cision.websolution.settings.general),n=cision.websolution.settings.mediafeed.accessKey;return{renderListing:e,render:e,renderThumbnails:function(e){if(e&&a.extend(i,e),i.accessKey&&(n=i.accessKey),n){var t={mediaRestriction:"image",startDate:i.startDate,endDate:i.endDate,pageIndex:i.pageIndex,pageSize:i.pageSize},o=cision.websolution.common.getModuleData({accessKey:n,module:"Mediafeed thumbnails",path:"NewsRoom/"+n+"/Medias",postData:t});return Promise.resolve(o).then(function(e){var o={Images:[]};a.each(e.Medias,function(e,t){"Image"===t.MediaType&&(t.CreateDate=moment(t.CreateDate).locale(i.uiLanguage).format(i.dateFormatOptions.dateFormat),t.ThumbnailUrl=t.UrlTo200x200ArResized||t.ThumbnailUrl,o.Images.push(t))}),o.PageIndex=e.PageIndex,o.PageSize=e.PageSize,o.Images=o.Images.reverse();var t="#"+(i.templateElement||"tplThumbnailList"),n="#"+(i.outputTargetElement||"target-thumbnail");cision.websolution.common.modelToHtml(o,t,n)}).catch(function(e){console.log("Could not retrieve mediafeed thumbnails. "+e.message)})}console.log("You must provide your newsfeed access key.")},renderTags:function(e){if(e&&a.extend(i,e),i.accessKey&&(n=i.accessKey),n){var t=cision.websolution.common.getModuleData({accessKey:n,module:"Mediafeed tags",path:"Newsroom/"+n+"/Tags",postData:{mainTypes:"Media"}});return Promise.resolve(t).then(function(e){var o=[];a.each(e.Tags,function(e,t){o.push(t)}),e.Tags=o,e.numberOfTags=o.length;var t="#"+(i.templateElement||"tplTags"),n="#"+(i.outputTargetElement||"target-tags");cision.websolution.common.modelToHtml(e,t,n)}).catch(function(e){console.log("Could not retrieve mediafeed tags. "+e.message)})}console.log("You must provide your newsfeed access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.newsfeed=cision.websolution.settings.newsfeed?function(c){function e(e){if(e&&c.extend(s,e),s.accessKey&&(n=s.accessKey),n){var t={startDate:s.startDate,endDate:s.endDate,pageIndex:s.pageIndex,pageSize:s.pageSize,searchTerm:s.searchTerm,separateFirstRelease:s.separateFirstRelease,tags:s.tags,regulatory:s.regulatory},o=cision.websolution.common.getModuleData({accessKey:n,module:"Newsfeed",path:"NewsFeed/"+n+"/Releases",postData:t});return Promise.resolve(o).then(function(e){var n=null,a=[];if(c.each(e.Releases,function(e,t){t.PublishDateFormatted=moment(t.PublishDate).locale(s.uiLanguage).format(s.dateFormatOptions.dateTimeFormat),t.DetailUrl=s.serviceEndpoint+"Release/"+t.EncryptedId,t.years=t.PublishDateFormatted.slice(0,4),t.HasImage=t.Images&&0<t.Images.length;var o=t.EncodedUrl||t.Title.toLowerCase().replace(/[öø]/g,"o").replace(/[åä]/g,"a").replace(/[éèëê]/g,"e").replace(/[ûü]/g,"u").replace(/[^a-z0-9]+/gi,"-").replace(/\-+/g,"-");t.TitleForUrl=encodeURI(o),t.ThumbnailUrl="",0<t.Images.length&&(t.ThumbnailUrl=t.Images[0].UrlTo400x400ArResized),s.introMaxLength&&0<s.introMaxLength&&t.Intro.length>s.introMaxLength&&(t.Intro=c.trim(t.Intro).substring(0,s.introMaxLength)+"..."),s.titleMaxLength&&0<s.titleMaxLength&&t.Title.length>s.titleMaxLength&&(t.Title=c.trim(t.Title).substring(0,s.titleMaxLength)+"..."),!0===s.separateFirstRelease&&null===n?(n=t).HasImage&&(n.ImageUrl=t.Images[0].DownloadUrl):a.push(t)}),e.Releases=a,e=cision.websolution.common.setPagingItems(e),!0===s.separateFirstRelease){var t="#"+(s.templateElement||"tplTopRelease"),o="#"+(s.outputTargetElement||"target-release-top");cision.websolution.common.modelToHtml(n,t,o)}var i="#"+(s.templateElement||"tplReleaseList"),r="#"+(s.outputTargetElement||"target-release-list");cision.websolution.common.modelToHtml(e,i,r),a.length<1&&null===n?c("#no-published-releases-container").attr("hidden",!1):c("#no-published-releases-container").attr("hidden",!0)}).catch(function(e){console.log("Could not retrieve newsfeed data. "+e.message)})}console.log("You must provide your newsfeed access key.")}var s=c.extend({},cision.websolution.settings.general),n=cision.websolution.settings.newsfeed.accessKey;
3return{renderListing:e,render:e,renderDetail:function(e){if(e&&c.extend(s,e),s.accessKey&&(n=s.accessKey),s.releaseIdentifier){var t=cision.websolution.common.getModuleData({accessKey:n,module:"Release detail",path:"Release/"+s.releaseIdentifier+"/Detail"});return Promise.resolve(t).then(function(e){var t=e.Release;t.PublishDateFormatted=moment(t.PublishDate).locale(s.uiLanguage).format(s.dateFormatOptions.dateTimeFormat),t.DetailUrl=s.serviceEndpoint+"Release/"+t.EncryptedId,t.HasImage=t.Images&&0<t.Images.length,t.Files&&c.each(t.Files,function(e,t){var o=t.FileName.split(".").pop();t.FileType=o||"unknown-file-extension"});var o="#"+(s.templateElement||"tplReleaseDetail"),n="#"+(s.outputTargetElement||"target-release-detail");cision.websolution.common.modelToHtml(t,o,n)}).catch(function(e){console.log("Could not retrieve release details. "+e.message)})}console.log("You must provide a release Encrypted ID.")},renderYears:function(e){if(e&&c.extend(s,e),s.accessKey&&(n=s.accessKey),n){var t={startYear:s.newsfeedYearsStartYear},o=cision.websolution.common.getModuleData({accessKey:n,module:"Newsfeed years",path:"NewsFeed/"+n+"/Years",postData:t});return Promise.resolve(o).then(function(e){var o=[];c.each(e.Years,function(e,t){o.push(t)}),o.reverse(),e.Years=o;var t="#"+(s.templateElement||"tplArchive"),n="#"+(s.outputTargetElement||"target-archive");cision.websolution.common.modelToHtml(e,t,n)}).catch(function(e){console.log("Could not retrieve newsfeed years data. "+e.message)})}console.log("You must provide your newsfeed access key.")},renderContactsAndAbout:function(e){if(e&&c.extend(s,e),s.accessKey&&(n=s.accessKey),n){var t={siteKey:s.siteKey},o=cision.websolution.common.getModuleData({accessKey:n,module:"Newsroom content",path:"NewsRoom/"+n,postData:t});return Promise.resolve(o).then(function(e){var t=c("#tplNewsroomAbout"),o=c("#target-newsroom-about");t.length&&o.length&&cision.websolution.common.modelToHtml(e,t,o);var n=c("#tplNewsroomLogoUrl"),a=c("#target-newsroom-logo");n.length&&a.length&&cision.websolution.common.modelToHtml(e,n,a);var i=c("#tplNewsroomContactListDetail"),r=c("#target-newsroom-contact-list-detail");i.length&&r.length&&cision.websolution.common.modelToHtml(e,i,r);var s=c("#tplNewsroomContactListSidebar"),l=c("#target-newsroom-contact-list-sidebar");s.length&&l.length&&cision.websolution.common.modelToHtml(e,s,l)}).catch(function(e){console.log("Could not retrieve newsroom content. "+e.message)})}console.log("You must provide your newsroom access key.")},renderTags:function(e){if(e&&c.extend(s,e),s.accessKey&&(n=s.accessKey),n){var t={languageCodes:s.uiLanguage,pageSize:100},o=cision.websolution.common.getModuleData({accessKey:n,module:"Newsfeed tags",path:"Newsroom/"+n+"/Tags",postData:t});return Promise.resolve(o).then(function(e){var o=[];c.each(e.Tags,function(e,t){o.push(t)}),e.Tags=o,e.numberOfTags=o.length;var t="#"+(s.templateElement||"tplTags"),n="#"+(s.outputTargetElement||"target-tags");cision.websolution.common.modelToHtml(e,t,n)}).catch(function(e){console.log("Could not retrieve newsfeed tags. "+e.message)})}console.log("You must provide your newsfeed access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.orderbook=cision.websolution.settings.orderbook?function(i){var r=i.extend({},cision.websolution.settings.general),o=cision.websolution.settings.orderbook.accessKey;return{render:function(e){if(e&&i.extend(r,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Orderbook",path:"OrderBook/"+o+"/Items"});return Promise.resolve(t).then(function(e){var t=e.Instruments[0],o=0;t.LastUpdateFormatted=moment(t.LastUpdate).locale(r.uiLanguage).calendar(),i.each(t.OrderBookItems,function(e,t){o=Math.max(o,t.BidPrice*t.BidQuantity,t.AskPrice*t.AskQuantity)}),i.each(t.OrderBookItems,function(e,t){t.BidVisualComparison=100*t.BidPrice*t.BidQuantity/o,t.AskVisualComparison=100*t.AskPrice*t.AskQuantity/o});var n="#"+(r.templateElement||"templateorderbook"),a="#"+(r.outputTargetElement||"target-orderbook");cision.websolution.common.modelToHtml(t,n,a)}).catch(function(e){console.log("Could not retrieve orderbook data. "+e.message)})}console.log("You must provide your orderbook access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.ownership=cision.websolution.settings.ownership?function(a){function t(e){if(e&&a.extend(m,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ownership L
3argest shareholders",path:"Ownership/"+o});return Promise.resolve(t).then(function(e){e.TotalAmount=e.ShareHolders.length,e.DateFormatted=moment(e.Date).format(m.dateFormatOptions.dateFormat),e.AmountInList=m.LargestListShowCount,l(e);var t="#"+(m.templateElement||"tplLargestShareholdersListing"),o="#"+(m.outputTargetElement||"target-largestshareholders");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log("Could not retrieve ownership data for largest shareholders. "+e.message)})}console.log("You must provide your ownership access key.")}var m=a.extend({},cision.websolution.settings.general),o=cision.websolution.settings.ownership.accessKey,d=cision.websolution.texts[m.uiLanguage];function i(e,t){return{chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1},title:{text:""},tooltip:{pointFormat:"{series.name}: <b>{point.percentage:.1f}%</b>"},credits:{text:"Source Cision/Euroclear"},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"}}},series:[{type:"pie",name:e.Name,data:t}]}}function n(e){if(e&&a.extend(m,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ownership size groups",path:"Ownership/"+o+"/ShareSizeGroups"});return Promise.resolve(t).then(function(e){e.DateFormatted=moment(e.Date).format("ll");var t="#"+(m.templateElement||"tplShareSizeGroupsListing"),o="#"+(m.outputTargetElement||"target-sharesizegroups");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log("Could not retrieve ownership data for share size groups. "+e.message)})}console.log("You must provide your ownership access key.")}function r(e){if(e&&a.extend(m,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ownership shareholder areas",path:"Ownership/"+o+"/ShareHolderAreas"});return Promise.resolve(t).then(function(e){var t=[];m.ownershipAreasNames=m.ownershipAreasNames||{};var o=d.TextOwnershipAreaNames||{},n=e.Areas.filter(function(e){return"SVERIGEBOENDE"==e.AreaName});n&&(n[0].AreaName=o.Sweden||n.AreaName,t.push(n[0]));var a=e.Areas.filter(function(e){return"USA"==e.AreaName});a&&(a[0].AreaName=o.Usa||a.AreaName,t.push(a[0]));var i=e.Areas.filter(function(e){return"ÖVRIGA NORDEN"==e.AreaName});i&&(i[0].AreaName=o.Nordic||i.AreaName,t.push(i[0]));var r=e.Areas.filter(function(e){return"ÖVRIGA EUROPA (EXKL SVERIGE OCH NORDEN)"==e.AreaName});r&&(r[0].AreaName=o.Europe||"ÖVRIGA EUROPA",t.push(r[0]));var s=e.Areas.filter(function(e){return"ÖVRIGA VÄRLDEN"==e.AreaName});s&&(s[0].AreaName=o.World||s.AreaName,t.push(s[0]));var l=e.Areas.filter(function(e){return 100==e.OwnershipPercent});l&&(l[0].AreaName=o.Total||l.AreaName),e.Areas=t,e.Total=l[0],e.DateFormatted=moment(e.Date).format("ll"),p(e);var c="#"+(m.templateElement||"tplShareShareHolderAreasListing"),u="#"+(m.outputTargetElement||"target-shareholderareas");cision.websolution.common.modelToHtml(e,c,u)}).catch(function(e){console.log("Could not retrieve ownership data for shareholder areas. "+e.message)})}console.log("You must provide your ownership access key.")}function s(e){if(e&&a.extend(m,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ownership largest grouped shareholders",path:"Ownership/"+o+"/LargestGroupedShareHolders"});return Promise.resolve(t).then(function(e){e.TotalAmount=e.ShareHolders.length,e.DateFormatted=moment(e.Date).format("ll"),e.AmountInList=m.LargestListShowCount,c(e);var t="#"+(m.templateElement||"tplLargestShareholdersListing"),o="#"+(m.outputTargetElement||"target-largestgroupedshareholders");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log("Could not retrieve ownership data for largest grouped shareholders. "+e.message)})}console.log("You must provide your ownership access key.")}var l=function(e){var o=[],n=100;a.each(e.ShareHolders,function(e,t){t.Number<=m.LargestPieShowCount&&(n-=t.OwnershipPercent,o.push({name:t.Name,y:t.OwnershipPercent}))}),0<n&&o.push({name:"Others",y:n,sliced:!0});var t=i(e,o);a("#container-largest-shareholders-chart").highcharts(t)},p=function(e){var o=[];a.each(e.Areas,function(e,t){t.OwnershipPercent<100&&o.push({name:t.AreaName,y:t.OwnershipPercent})});var t=i(e,o);a("#target-shareholderareas-chart").highcharts(t)},c=function(e){var o=[],n=100;
3a.each(e.ShareHolders,function(e,t){t.Number<=m.LargestPieShowCount&&(n-=t.OwnershipPercent,o.push({name:t.Name,y:t.OwnershipPercent}))}),0<n&&o.push({name:"Others",y:n,sliced:!0});var t=i(e,o);a("#container-largest-grouped-shareholders-chart").highcharts(t)};return{renderLargestShareholders:t,renderNewShareholders:function(e){if(e&&a.extend(m,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ownership new shareholders",path:"Ownership/"+o+"/NewShareHolders"});return Promise.resolve(t).then(function(e){e.DateFormatted=moment(e.Date).format("ll");var t="#"+(m.templateElement||"tplNewShareholdersListing"),o="#"+(m.outputTargetElement||"target-newshareholders");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log("Could not retrieve ownership data for new shareholders. "+e.message)})}console.log("You must provide your ownership access key.")},renderShareSizeGroups:n,renderShareHolderAreas:r,renderShareHolderAreasChart:p,renderLargestGroupedShareholders:s,renderOwnershipTab:function(e){if(null==m.ownershipTabLoaded[e]){switch(e){case"#target-largest":t();break;case"#target-sharesizegroups":n();break;case"#target-area":r();break;case"#target-grouped":s()}m.ownershipTabLoaded[e]=!0}}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.printedMaterial=cision.websolution.settings.printedMaterial?function(l){function r(e){return e.PrintTimeFormatted=moment(e.PrintTime).locale(s.uiLanguage).format(s.dateFormatOptions.dateTimeFormat),e.PrintTimeFormattedDate=moment(e.PrintTime).locale(s.uiLanguage).format(s.dateFormatOptions.dateFormat),e.PrintTimeFormattedTime=moment(e.PrintTime).locale(s.uiLanguage).format(s.dateFormatOptions.timeFormat),e.PublishTimeFormatted=moment(e.PublishTime).locale(s.uiLanguage).format(s.dateFormatOptions.dateTimeFormat),e.ArchiveTimeFormatted=moment(e.ArchiveTime).locale(s.uiLanguage).format(s.dateFormatOptions.dateTimeFormat),e.MaxOrder=s.maxAmountOfItems,0<e.LogoUrl?e.HasImage=!0:e.HasImage=!1,e}function n(){if(s.accessKey&&(c=s.accessKey),c)return postData={languageCode:s.uiLanguage,pageIndex:s.PageIndex,pageSize:s.PageSize||50,startDate:s.startDate,endDate:s.endDate,category:s.printedMaterialCategory};console.log("You must provide your printed material access key.")}var s=l.extend({},cision.websolution.settings.general),c=(cision.websolution.settings.printedMaterial||{}).accessKey,u=cision.websolution.texts[s.uiLanguage],m=[],d=[],p=!0,g=!0;return{retrievePrintedMaterials:function e(t,o,n){cision.websolution.printedMaterial.renderItemList({PageIndex:t,PageSize:o,printedMaterialCategory:n||"",dateFormat:"DD MMM",timeFormat:"HH:mm",endDate:moment().add(5,"years").format("YYYY-MM-DD")}).then(function(){l(".lang").each(function(e){var t=l(this).attr("data-id");u.Languages.hasOwnProperty(t)&&l("#"+e).append("<p>"+u.Languages[t]+"</p>")}),l(".categories button").off().on("click",function(){l(".categories button").removeClass("active"),l(this).addClass("active"),e(s.pageIndex,s.pageSize,l(this).data("category"))}),l("#btnOrder").click(function(e){var t=l("#name").val(),o=l("#company").val(),n=l("#address").val(),a=l("#code").val(),i=l("#city").val(),r=l("#country").val();if(t&&o&&n&&a&&i&&r){var s={Name:t,CompanyName:o,Address:n,PostCode:a,City:i,CountryCode:r,Items:[]};l.each(l(".validate"),function(e){var t=l("#quantity-"+e).val(),o=l("#guid-"+e).val();0<t.length&&s.Items.push({ItemGuid:o,Quantity:t})}),l.post(cision.websolution.common.generateUrl("PrintedMaterial/"+c+"/Order"),s).done(function(e){var t=e.Order,o="";l("#printedMaterialModal").modal("show"),l("<h4>"+u.TextPrintOrderSuccessHeader+"</h4>").appendTo("#responseTarget"),l.each(t.Items,function(e){o+="<p>"+t.Items[e].Quantity+"x "+l("[data-guid='"+t.Items[e].ItemGuid+"']").text()+"</p>"}),l("<p>"+u.TextPrintOrderSuccess+"</p>"+o).appendTo("#responseTarget")}).fail(function(){l("#printedMaterialModal").modal("show"),l("<h4>"+u.TextPrintOrderFailHeader+"</h4>").appendTo("#responseTarget"),l("<p>"+u.TextPrintOrderFail+"</p>").appendTo("#responseTarget")})}
3else l("#frmOrder input").css("border","1px solid #CCC").css("box-shadow","none"),0==t.length&&l("#name").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202"),0==o.length&&l("#company").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202"),0==n.length&&l("#address").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202"),0==a.length&&l("#code").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202"),0==i.length&&l("#city").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202"),0==r.length&&l("#country").css("border","1px solid #ce0202").css("box-shadow","0 0 9px -3px #ce0202")})})},getItemByGuid:function(e){var t=e.itemGuid;if(e&&l.extend(s,e),s.accessKey&&(c=s.accessKey),t){var o=cision.websolution.common.getModuleData({accessKey:c,module:"Printed material",path:"PrintedMaterial/"+c+"/ItemDetail?itemguid="+t});return Promise.resolve(o).then(function(e){objResponse.PrintDateFormatted=moment(objResponse.PrintDate).locale(s.uiLanguage).format(s.dateFormatOptions.dateFormat);var t="#"+(s.templateElement||"tplItemDetail"),o="#"+(s.outputTargetElement||"target-item-detail");cision.websolution.common.modelToHtml(e,t,o)}).catch(function(e){console.log(e.message)})}console.log("You must provide an item guid.")},renderItemList:function(e){e&&l.extend(s,e);var t=n();if(null!=t){var o=cision.websolution.common.getModuleData({accessKey:c,module:"Printed material",path:"PrintedMaterial/"+c,postData:t});return Promise.resolve(o).then(function(e){l.each(e.Items,function(e,t){t=r(t),p&&t.CategoryName&&d.push(t.CategoryName)});var o=[];if(l.each(d,function(e,t){-1===l.inArray(t,o)&&o.push(t)}),p){u.Categories=o;var t="#"+(s.categoriesTemplateElement||"tplCategories"),n="#"+(s.categoriesOutputTargetElement||"target-categories");cision.websolution.common.modelToHtml({},t,n)}var a="#"+(s.templateElement||"tplPrintedMaterialItemListing"),i="#"+(s.outputTargetElement||"itemListTarget");cision.websolution.common.modelToHtml(e,a,i),p=!1}).catch(function(e){console.log("Could not retrieve printed material data. "+e.message)})}},renderArchiveList:function(e){e&&l.extend(s,e);var t=n();if(null!=t){var o=cision.websolution.common.getModuleData({accessKey:c,module:"Printed material",path:"PrintedMaterial/"+c+"/Archive",postData:t});return Promise.resolve(o).then(function(e){l.each(e.Items,function(e,t){t=r(t),g&&t.Categories&&l.each(t.Categories,function(e,t){d.push(t)}),m[t.ItemGuid]=t});var o=[];if(l.each(d,function(e,t){-1===l.inArray(t,o)&&o.push(t)}),g){u.Categories=o;var t="#"+(s.categoriesTemplateElement||"tplCategories"),n="#"+(s.categoriesOutputTargetElement||"target-categories");cision.websolution.common.modelToHtml({},t,n)}var a="#"+(s.templateElement||"tplPrintedMaterialArchiveListing"),i="#"+(s.outputTargetElement||"archiveItemListTarget");cision.websolution.common.modelToHtml(e,a,i),g=!1}).catch(function(e){console.log("Could not retrieve printed material data. "+e.message)})}}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.sharecalculator=cision.websolution.settings.sharecalculator?function(g){var p=g.extend({},cision.websolution.settings.general),n=cision.websolution.settings.sharecalculator.accessKey,a=cision.websolution.texts[p.uiLanguage];return{render:function(e){if(e&&g.extend(p,e),n){var t={startDate:moment().format("YYYY-MM-DD"),endDate:moment().format("YYYY-MM-DD"),tickerSymbol:"",quoteType:p.typeOfCalclator},o=cision.websolution.common.getModuleData({accessKey:n,module:"Share calculator",path:"ShareCalculator/"+n,postData:t});Promise.resolve(o).then(function(e){0<e.Instruments.length?function(e){e.Instruments=e.Instruments.sort(function(e,t){return e.TickerSymbol>t.TickerSymbol}),e.Instruments[0].Checked=!0;var t="#"+(p.templateElementShareType||"template-sharecalclulator-sharetype"),o="#"+(p.outputTargetElementShareType||"sharecalclulator-sharetype-container");cision.websolution.common.modelToHtml({Instruments:e.Instruments},t,o);var n="#"+(p.templateElement||"template-sharecalclulator"),a="#"+(p.outputTargetElement||"sharecalclulator-container");cision.websolution.common.modelToHtml({Instruments:e.Instruments},n,a,!0),g("#tbNumberOfShares").on("change",function(){""==this.value?g("#tbAmount").removeAttr("disabled"):g("#tbAmount").attr("disabled",!0)}),g("#tbAmount").on("change",function(){""==this.value?g("#tbNumberOfShares").removeAttr("disabled"):g("#tbNumberOfShares").attr("disabled",!0)}),g("#datePickerShareCalculatorFrom input").datepicker({format:"yyyy-mm-dd",todayBtn:!1,autoclose:!0,todayHighlight:!0,orientation:"bottom left",language:p.uiLanguage,endDate:moment().subtract(1,"days").format("YYYY-MM-DD")}),g("#datePickerShareCalculatorTo input").datepicker({format:"yyyy-mm-dd",todayBtn:"linked",autoclose:!0,todayHighlight:!0,orientation:"bottom left",language:p.uiLanguage,endDate:moment().format("YYYY-MM-DD")}),g("#datePickerShareCalculatorFrom input").datepicker("update",moment().subtract(1,"years").format("YYYY-MM-DD")),g("#datePickerShareCalculatorTo input").datepicker("update",moment().format("YYYY-MM-DD")),g(".date-picker").on("click",function(){g(this).find("input").datepicker("show")})}(e):console.log("You need to have instruments on your feed.")})}else console.log("You must provide your sharecalculator access key.")},compute:function(){var s=g.extend(a,p),l=g.extend(a,p),e=g("#sharecalclulator-sharetype-container input[type='radio']:checked").val(),c=g("#datePickerShareCalculatorFrom input").val(),u=g("#datePickerShareCalculatorTo input").val(),m=g("#tbNumberOfShares").val(),d=g("#tbAmount").val();if(n){var t={startDate:c,endDate:u,tickerSymbol:e,quoteType:p.typeOfCalclator},o=cision.websolution.common.getModuleData({accessKey:n,module:"Share c
3alculator",path:"ShareCalculator/"+n,postData:t});Promise.resolve(o).then(function(e){var t=e.Instruments[0];""==m&&""==d?s.RenderResults=!1:s.Results=function(t,e,o,n,a,i){var r=new Object;null!=e.StartDateQuote&&null!=e.EndDateQuote||(t.RenderResults=!1);try{r.Currency=e.TradeCurrency,r.StartDateQuote=e.StartDateQuote,r.EndDateQuote=e.EndDateQuote,r.StartDateFormated=moment(e.StartDateQuote.QuoteTime).locale(p.uiLanguage).format(p.dateFormatOptions.dateFormat),r.EndDateFormated=moment(e.EndDateQuote.QuoteTime).locale(p.uiLanguage).format(p.dateFormatOptions.dateFormat),r.NumberOfShares=""==a?parseInt(parseFloat(i)/r.StartDateQuote.Price):a,r.StartValue=r.NumberOfShares*r.StartDateQuote.Price,r.StartPrice=r.StartDateQuote.Price,r.EndValue=r.NumberOfShares*r.EndDateQuote.Price,r.EndPrice=r.EndDateQuote.Price,r.Change=r.EndValue-r.StartValue,r.ChangePercent=r.Change/r.StartValue*100;var s=(r.StartValue+r.Change)/r.StartValue,l=moment(n).diff(moment(o),"days");return r.ChangeAnnualizedPercent=100*(Math.pow(s,365/l)-1),t.RenderResults=!0,r}catch(e){t.RenderResults=!1}}(s,t,c,u,m,d);var o="#"+(p.templateElement||"template-sharecalclulator-results"),n="#"+(p.outputTargetElement||"sharecalclulator-results-container");cision.websolution.common.modelToHtml(s,o,n);var a=function(e){var t=new Object;t.PartOfDayHelp=!1,e=e.reverse();for(var o=0;o<e.length;o++)e[o].QuoteTimeFormated=moment(e[o].QuoteTime).locale(p.uiLanguage).format(p.dateFormatOptions.dateFormat),"PartOfDay"==e[o].QuoteType&&(t.PartOfDayHelp=!0);return t.Quotes=e,t}(t.Quotes);l.Quotes=a.Quotes,l.PartOfDayHelp=a.PartOfDayHelp;var i="#"+(p.templateElementShareHistory||"template-sharecalclulator-history"),r="#"+(p.outputTargetElementShareHistory||"sharecalclulator-history-container");cision.websolution.common.modelToHtml(l,i,r)})}else console.log("You must provide your sharecalculator access key.")},exportCsv:function(){!function(e){var t=g("#initial-investment").find("tr:has(td)"),a=String.fromCharCode(11),o=String.fromCharCode(0),n="\r\n",i="";0<t.length&&(i+=g("#initial-investment-header").text()+" "+g("#initial-investment-type").text()+n,i+=m(t.map(d)),i+=n+n),0<g("#end-value").find("tr:has(td)").length&&(i+=g("#end-value-header").text()+" "+g("#end-value-type").text()+n,i+=m(t.map(d)),i+=n+n);var r=g("#shareCalculatorHistory"),s=r.find("tr:has(th)"),l=r.find("tr:has(td)");i+=m(s.map(d)),i+=n,i+=m(l.map(d));var c="data:application/csv;charset=utf-8,"+encodeURIComponent(i);if(window.navigator.msSaveOrOpenBlob){var u=new Blob([decodeURIComponent(encodeURI(i))],{type:"text/csv;charset=utf-8;"});navigator.msSaveBlob(u,e)}else g("#csvExport").attr({download:e,href:c}),g("#csvExport")[0].click();function m(e){return e.get().join(o).split(o).join(n).split(a).join(";")}function d(e,t){var o=g(t),n=o.find("td");return n.length||(n=o.find("th")),n.map(p).get().join(a)}function p(e,t){return g(t).text().replace('"','""')}}("ShareCalculator-"+g("#sharecalclulator-sharetype-container input[type='radio']:checked").val()+"-"+(g("#shareCalculatorStartYear").val()+g("#shareCalculatorStartMonth").val()+g("#shareCalculatorStartDay").val())+"-"+(g("#shareCalculatorEndYear").val()+g("#shareCalculatorEndMonth").val()+g("#shareCalculatorEndDay").val())+"-.csv")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.sharegraph=cision.websolution.settings.sharegraph?function(p){var u,g=p.extend({},window.cision.websolution.settings.general),i=window.cision.websolution.settings.sharegraph.accessKey,r=g.showVolume,s=moment().format("YYYY-MM-DD"),l=[];function t(){function t(){u.setSize(e,n,!1)}function o(){u.setSize.apply(this,this.resetParams)}var e=p("#"+g.chartContainerId).width(),n=p("#"+g.chartContainerId).height();window.matchMedia&&window.matchMedia("print").addListener(function(e){e.matches?t():o()});window.onbeforeprint=t,window.onafterprint=o}function f(o){var n=null;try{p.each(g.instrumentColors,function(e,t){t.uniqueKey==o&&(n=t.preferredColor)})}catch(e){console.log(e)}return n}function c(){g.typeOfChart="EndOfDay",n({volumeOffset:-35,showVolume:r,typeOfChart:g.typeOfChart,dateToStartFrom:g.endOfDayStartFrom,dateToEnd:g.endOfDayEndTime}).then(function(){g.isMiniShareGraph||(p("#datePickerFrom input").datepicker("update",g.endOfDayStartFrom),p("#datePickerTo input").datepicker("update",g.endOfDayEndTime),p(".share-index").removeClass("disabled")),o(),t()})}function m(){g.typeOfChart="PartOfDay";var e=1;5<parseInt(moment().format("d"))&&(e=3),g.endOfDayStartFrom=moment().subtract(e,"days").format("YYYY-MM-DD"),g.endOfDayEndTime=s,n({dateToStartFrom:g.endOfDayStartFrom,dateToEnd:null,typeOfChart:g.typeOfChart,showVolume:r}).then(function(){p("#datePickerFrom input").datepicker("update",g.endOfDayStartFrom),p("#datePickerTo input").datepicker("update",g.endOfDayEndTime),p(".share-index").addClass("disabled"),o(),t()})}var o=function(){p(".show-hide-instrument").each(function(){var e=p(this);h(e)})},d=0,h=function(e){var t=p(e),n=t.data("key"),o=t.data("triggercomparison"),a=t.hasClass("selected");g.endOfDayStartFrom=p("#datePickerFrom input").val(),o&&(a?d++:d--,0<(d=0<=d?d:0)||"percent"==g.chartComparison?y():b()),p.each(u.series,function(e,t){var o=t.userOptions.objOriginal;o&&o.UniqueKey==n&&t.setVisible(a)}),"INSIDERS"==n&&a&&function(e,t){var n=!1;p.each(u.series,function(e,t){var o=t.userOptions.objOriginal;o&&o.UniqueKey==g.insidersUniqueKey&&(n=!0)}),n||window.cision.websolution.insiders.renderToGraph(u,{startDate:e,insidersUniqueKey:t})}(g.endOfDayStartFrom,n),"DIVIDEND"==n&&a&&function(e,t){var n=!1;p.each(u.series,function(e,t){var o=t.userOptions.objOriginal;o&&o.UniqueKey==g.dividendsUniqueKey&&(n=!0)}),n||window.cision.websolution.dividend.renderToGraph(u,{startDate:e,dividendsUniqueKey:t})}(g.endOfDayStartFrom,n),"Regulatory PRM"!=n&&"Regulatory RPT"!=n||!a||function(r){var e=window.cision.websolution.common.getModuleData({accessKey:i,module:"Share releases",path:"Share/"+i+"/Releases",postData:{startDate:g.dateToStartFrom}});Promise.resolve(e).then(function(e){p.each(e.Releases,function(e,t){var o=t.Name==r;if(o){var n=window.cision.websolution.common.getIndicatorSettings(r);t.UniqueKey=t.Name;var a=[];p.each(t.Releases,function(e,t){t.PublishDateFormatted=moment(t.PublishDate).locale(g.uiLanguage).format(),a.push({x:1e3*moment(t.PublishDate).format("X"),title:n.title||"R",text:t.Title,Release:t})}),a=a.sort(function(e,t){var o=e.x-t.x;return 0==o?o:o<0?-1:1});var i={id:t.Name,type:"flags",onSeries:n.seriesId||"",shape:n.seriesShape||"circlepin",fillColor:n.shapeColor||"",color:n.shapeOutlineColor||"",style:{color:n.shapeTextColor||""},name:t.Name,data:a,cursor:"pointer",visible:o,objOriginal:t};g.showReleaseLink&&(i.events={click:function(e){var t=e.point.Release.CwUrl;g.releaseLinkFormatter&&"CISIONWIRE"!==g.releaseLinkFormatter&&(t=g.releaseLinkFormatter+e.point.Release.Id),window.open(t,"_blank")}},i.tooltip={pointFormat:"{point.Release.Title}"}),u.addSeries(i)}})}).catch(function(e){console.log("Could not retrieve release data. "+e.message)})}(n)};function y(){g.chartComparison="percent",p.each(u.series,function(e,t){"flag"!==t.type&&"column"!==t.type&&t.update({compare:g.chartComparison},!1)}),u.redraw(),u.yAxis[0].setExtremes(null),p("#comparisonPercent").addClass("selected"),p("#comparisonNone").removeClass("selected")}function b(){g.chartComparison="none",p.each(u.series,function(e,t){"flag"!==t.type&&"column"!==t.type&&t.update({compare:g.chartComparison},!1)}),u.redraw();var e=u.yAxis[0].getExtremes();(e.dataMin<0||e.min<0)&&u.yAxis[0].setExtremes(0,null,!0,!1),p("#comparisonNone").addClass("selected"),p("#comparisonPercent").removeClass("selected")}var n=function(e){if(e&&p.extend(g,e),i){var t={startDate:g.dateToStartFrom,endDate:g.dateToEnd,quoteType:g.typeOfChart,groupByMinutes:"PartOfDay"==g.typeOfChart?1:0},o=window.cision.websolution.common.getModuleData({accessKey:i,module:"Sharegraph",path:"Share/"+i,postData:t});return Promise.resolve(o).then(function(e){for(var t=[],o=[],n="EndOfDay"==g.typeOfChart,a=0;a<e.Instruments.length;a++){var i=e.Instruments[a],r=!1,s=!1;i.MarketPlace=p.trim(i.MarketPlace),p.each(g.mainInstruments,function(e,t){i.TickerSymbol===t.symbol&&i.MarketPlace===t.marketPlace&&(s=r=!0)===t.isHidden&&(r=!1)}),i.UniqueKey=i.TickerSymbol+i.MarketPlace+i.TradeCurrency;var l=[],c=[],u=[];
3if(p.each(i.Quotes,function(e,t){t.QuoteTime=n?moment(t.QuoteTime).format("YYYY-MM-DD")+"T00:00:00Z":moment(t.QuoteTime).format("YYYY-MM-DD[T]HH:mm")+":00Z",t.DeltaPercentage=(100*t.DeltaPercentage).toFixed(2),new RegExp("-").test(t.DeltaPercentage)||(t.DeltaPercentage="+"+t.DeltaPercentage);var o=1e3*moment(t.QuoteTime).format("X");l.push({x:1e3*moment(t.QuoteTime).format("X"),y:t.Price,extras:t.DeltaPercentage||0}),s&&u.push({x:o,y:t.Quantity})}),t.push({id:i.UniqueKey,name:i.TickerSymbol,data:l,visible:r,color:f(i.UniqueKey),tooltip:{valueDecimals:2,pointFormat:'<span style="color:{series.color}">●</span> {series.name}: '+i.TradeCurrency+" <b>{point.y}</b>"+(n?" ({point.extras}%)</span><br/>":"")},showInNavigator:!(!s||!r),zIndex:10,objOriginal:i}),!g.isMiniShareGraph&&g.showVolume&&s&&u&&0<u.length&&o.push({id:i.UniqueKey+"VOLUME",name:i.TickerSymbol+" [VOLUME]",data:u,visible:r,color:f(i.UniqueKey+"VOLUME"),type:"column",yAxis:1,tooltip:{valueDecimals:2},zIndex:9,objOriginal:i}),i.EffectiveYields&&0<i.EffectiveYields.length){var m={TickerName:i.TickerName+"/"+i.MarketPlace+" [TR]",TickerSymbol:i.TickerSymbol,MarketPlace:i.MarketPlace,TradeCurrency:i.TradeCurrency,TickerType:"EFFECTIVEYIELD",UniqueKey:i.UniqueKey+g.effectiveYieldSuffix,Quotes:i.EffectiveYields};c=[];var d=i.EffectiveYields[0];p.each(i.EffectiveYields,function(e,t){c.push({x:1e3*moment(t.ObsDate).format("X"),x1:t.ObsDate,y:t.LastAdjReInv*d.LastAdj/d.LastAdjReInv})}),t.push({id:m.UniqueKey,name:m.TickerName,data:c,visible:!1,color:f(m.UniqueKey),tooltip:{valueDecimals:2},objOriginal:m})}}t=t.concat(o),w(t)}).catch(function(e){console.log(e.message)})}console.log("You must provide your sharegraph access key.")},w=function(e){var t={text:g.chartTitle},o={spline:{states:{hover:{lineWidth:g.lineWidth+3}}},series:{turboThreshold:1e5,compare:g.chartComparison||"none",lineWidth:g.lineWidth}},n={enabled:g.useHighchartsElements,sourceHeight:p("#"+g.chartContainerId||"sharegraph-container").height(),sourceWidth:p("#"+g.chartContainerId||"sharegraph-container").width()},a={enabled:g.enableScrollbar},i={enabled:g.enableLegend},r=[{opposite:!0}],s={type:"datetime",gridLineWidth:g.gridLineWidth};!g.isMiniShareGraph&&g.showVolume&&(r=[{height:g.yAxisSize.share.height},{top:g.yAxisSize.volume.top,height:g.yAxisSize.volume.height}]);var l={enabled:g.useHighchartsElements,buttons:[],inputEnabled:!0,inputDateFormat:"%Y-%m-%d",inputEditDateFormat:"%Y-%m-%d",inputDateParser:function(e){return e=e.split("-"),Date.UTC(parseInt(e[0]),parseInt(e[1])-1,parseInt(e[2]))}};"PartOfDay"==g.typeOfChart?l.buttons=[{type:"minute",count:15,text:"15m"},{type:"minute",count:30,text:"30m"},{type:"day",count:1,text:"1D"},{type:"all",text:"All"}]:l.buttons=[{type:"day",count:1,text:"1D"},{type:"week",count:1,text:"1W"},{type:"month",count:1,text:"1M"},{type:"month",count:3,text:"3M"},{type:"month",count:6,text:"6M"},{type:"year",count:1,text:"1M"},{type:"all",text:"All"}],Highcharts.setOptions({lang:{rangeSelectorZoom:"",contextButtonTitle:window.cision.websolution.texts[g.uiLanguage].TextDownload||"Download",months:window.cision.websolution.texts[g.uiLanguage].calendarTexts.months,weekdays:window.cision.websolution.texts[g.uiLanguage].calendarTexts.weekdays,shortMonths:window.cision.websolution.texts[g.uiLanguage].calendarTexts.shortMonths,rangeSelectorFrom:window.cision.websolution.texts[g.uiLanguage].calendarTexts.rangeSelectorFrom,rangeSelectorTo:window.cision.websolution.texts[g.uiLanguage].calendarTexts.rangeSelectorTo,downloadJPEG:window.cision.websolution.texts[g.uiLanguage].calendarTexts.downloadJPEG,downloadPDF:window.cision.websolution.texts[g.uiLanguage].calendarTexts.downloadPDF,downloadPNG:window.cision.websolution.texts[g.uiLanguage].calendarTexts.downloadPNG,downloadSVG:window.cision.websolution.texts[g.uiLanguage].calendarTexts.downloadSVG,printChart:window.cision.websolution.texts[g.uiLanguage].calendarTexts.printChart}});var c=(u=new Highcharts.StockChart({chart:{renderTo:g.chartContainerId,defaultSeriesType:g.defaultSeriesType,plotBackgroun
3dColor:g.plotBackgroundColor,plotBorderWidth:g.plotBorderWidth,plotBackgroundImage:g.backgroundImage},title:t,xAxis:s,yAxis:r,plotOptions:o,rangeSelector:l,scrollbar:a,legend:i,exporting:n,navigator:{enabled:!g.isMiniShareGraph&&g.enableNavigator,maskFill:"rgba(50, 50, 50, 0.2)",series:{type:"areaspline",fillOpacity:.05,dataGrouping:{smoothed:!0},lineWidth:1,marker:{enabled:!1}}},credits:{text:window.cision.websolution.translationHelpers.getTranslation("TextDelayInfo")+" "+window.cision.websolution.translationHelpers.getTranslation("TextCredits"),href:""},series:e})).yAxis[0].getExtremes();(c.dataMin<0||c.min<0)&&u.yAxis[0].setExtremes(0,null,!0,!1)};return{init:function(e){if(g.endOfDayStartFrom=moment().subtract(6,"months").format("YYYY-MM-DD"),g.endOfDayEndTime=moment().format("YYYY-MM-DD"),e&&p.extend(g,e),g.isMiniShareGraph)"PartOfDay"==g.typeOfChart?m():c();else{var t="#"+(g.templateElement||"templatesharegraph"),o="#"+(g.outputTargetElement||"target-sharegraph-wrapper");if(cision.websolution.common.modelToHtml({},t,o),p("#datePickerFrom input").datepicker({format:"yyyy-mm-dd",todayBtn:!1,autoclose:!0,todayHighlight:!0,orientation:"bottom left",language:g.uiLanguage,endDate:g.endOfDayEndTime}),p("#datePickerTo input").datepicker({format:"yyyy-mm-dd",todayBtn:"linked",autoclose:!0,todayHighlight:!0,orientation:"bottom left",language:g.uiLanguage,endDate:s}),p("#datePickerFrom input").datepicker().on("changeDate",function(e){-1!=e.delegateTarget.className.indexOf("date-input")?10==p(this).val().length&&(g.endOfDayStartFrom=moment(e.date).format("YYYY-MM-DD"),c(),p("#periods div").removeClass("active")):(g.endOfDayStartFrom=moment(e.date).format("YYYY-MM-DD"),c(),p("#periods div").removeClass("active"))}).on("hide",function(e){p(this).val(g.endOfDayStartFrom)}),p("#datePickerTo input").datepicker().on("changeDate",function(e){-1!=e.delegateTarget.className.indexOf("date-input")?10==p(this).val().length&&(g.endOfDayEndTime=moment(e.date).format("YYYY-MM-DD"),c(),p("#periods div").removeClass("active")):(g.endOfDayEndTime=moment(e.date).format("YYYY-MM-DD"),c(),p("#periods div").removeClass("active"))}).on("hide",function(e){p(this).val(g.endOfDayEndTime)}),p("#datePickerFrom input").datepicker("update",g.endOfDayStartFrom),p("#datePickerTo input").datepicker("update",g.endOfDayEndTime),p(".date-picker").on("click",function(){p(this).find("input").datepicker("show")}),l.partofday=m,l.endofday=c,l.percent=y,l.price=b,l.volume=function(e,t){r=p(t).hasClass("selected"),"EndOfDay"==g.typeOfChart?c():m()},l.dataPeriodDays1=function(){m()},l.dataPeriodWeeks1=function(){g.endOfDayStartFrom=moment().subtract(1,"weeks").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodMonths1=function(){g.endOfDayStartFrom=moment().subtract(1,"months").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodMonths3=function(){g.endOfDayStartFrom=moment().subtract(3,"months").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodMonths6=function(){g.endOfDayStartFrom=moment().subtract(6,"months").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodYears1=function(){g.endOfDayStartFrom=moment().subtract(1,"years").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodYears5=function(){g.endOfDayStartFrom=moment().subtract(5,"years").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodYears10=function(){g.endOfDayStartFrom=moment().subtract(10,"years").format("YYYY-MM-DD"),g.endOfDayEndTime=s,c()},l.dataPeriodYearsAll=function(){g.endOfDayStartFrom="1998-09-07",g.endOfDayEndTime=s,c()},p(".dropdown-toggle").dropdown("update"),p("#print-chart").on("click",function(){u.print()}),p("#export-png-chart").on("click",function(){u.exportChart(null,{type:"image/png"})}),p("#export-jpeg-chart").on("click",function(){u.exportChart({type:"image/jpeg"})}),p("#export-svg-chart").on("click",function(){u.exportChart({type:"image/svg+xml"})}),p("#export-pdf-chart").on("click",function(){u.exportChart({type:"application/pdf",filename:"my-pdf"})}),p("#excel-download").on("click",function(){var t="",e=p("#share-options-select .share-index.selected, #share-options-select .share-peer.selected");p(p(e)).each(function(){var e=p(this).data("symbol");t+=e+","});var o=p("#datePickerFrom input").val(),n=p("#datePickerTo input").val();window.open(g.serviceEndpoint+"ShareHistory/"+window.cision.websolution.settings.sharegraph.shareHistoryKey+"/csv?indexSymbol
3s="+t+"&mainInstrument="+g.mainInstruments[0].symbol+"&startDate="+o+"&endDate="+n,"exeldownload","")}),p("#share-options-select li").on("click",function(e){e.preventDefault(),e.stopPropagation()}),p("#share-options-select .show-hide-instrument").on("click",function(){p(this).hasClass("cision-disabled")||(p(this).toggleClass("selected"),h(p(this)))}),p("#share-options-select .chartComparisonType").on("click",function(e){if(!p(this).hasClass("cision-disabled")){p(this).toggleClass("selected"),"percent"==p(this).data("key")&&p(this).hasClass("selected")&&p("#comparisonNone").removeClass("selected"),"price"==p(this).data("key")&&p(this).hasClass("selected")&&p("#comparisonPercent").removeClass("selected");var t=p(this).data("key"),o=l[t];o&&o(e,p(this))}}),p(".action").on("click",function(e){p("#periods div").removeClass("active"),p(this).addClass("active");var t=p(this).data("key"),o=l[t];o&&o(e,p(this))}),cision.websolution.tickers.render(),cision.websolution.trades.render(),cision.websolution.performance.render(),cision.websolution.orderbook.render(),cision.websolution.sharecalculator.render(),"PartOfDay"==g.typeOfChart)m(),p("#intraDay").addClass("active");else{var n=p("#defaultPeriod");n.addClass("active");var a=n.data("key"),i=l[a];i&&i(event,n)}}g.showVolume&&p("#share-options-select .chartComparisonType.volume").addClass("selected")},render:n,setVisibility:function(n,a){p.each(u.series,function(e,t){var o=t.userOptions.objOriginal;o&&o.UniqueKey==n&&t.setVisible(a)})},reinitializeState:o}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.tickers=cision.websolution.settings.ticker?function(b){var w=b.extend({},cision.websolution.settings.general),n=cision.websolution.settings.ticker.accessKey,v=cision.websolution.texts[w.uiLanguage];return{render:function(e){if(e&&b.extend(w,e),n){var t=cision.websolution.common.getModuleData({accessKey:n,module:"Ticker",path:"Ticker/"+n}),o=cision.websolution.common.getModuleData({accessKey:n,module:"Ticker performance",path:"Ticker/"+n+"/Performance"});Promise.all([t,o]).then(function(e){for(var t=e[0],o=e[1],n={tickers:[]},a=t.Instruments.sort(function(e,t){return e.TickerSymbol-t.TickerSymbol}),i=0;i<a.length;i++){for(var r,s=a[i],l="2010-02-01T00:00:00.000000Z",c=0;c<s.Quotes.length;c++){var u=s.Quotes[0];u.QuoteTime>=l&&(r=u),l=u.QuoteTime}var m=b.extend({},r,v);m.TickerName=s.TickerName,m.TickerSymbol=s.TickerSymbol,m.TradeCurrency=s.TradeCurrency,m.DeltaPercentage&&(m.DeltaPercentage=100*m.DeltaPercentage),m.Time=moment(m.QuoteTime).locale(w.uiLanguage).format("HH:mm"),m.Date=moment(m.QuoteTime).locale(w.uiLanguage).format("DD MMM YYYY");var d=o.Instruments[i],p=w.valueSuffix,g=d.LastPrice||d.ClosePrice1D||-1,f=(d.NumberOfShares||-1)*g;m.mcapTotalRaw=Math.round(f),m.mcapTotalKilo=Math.round(f/1e3),m.mcapTotalMega=Math.round(f/1e6),m.mcapTotal=m.mcapTotalMega+" M",m.mcapTotal=m.mcapTotal+p,m.mcapTotal=m.mcapTotal||"",0<m.Delta?m.ArrowImageurl=w.tickerImagePlus:m.Delta<0?m.ArrowImageurl=w.tickerImageMinus:m.ArrowImageurl=w.tickerImageUnchanged,n.tickers.push(m)}var h="#"+(w.templateElement||"templateTicker"),y="#"+(w.outputTargetElement||"target-ticker");cision.websolution.common.modelToHtml(n,h,y)}).catch(function(e){console.log("Failed:",e)})}else console.log("You must provide your ticker access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.performance=cision.websolution.settings.ticker?function(c){var u=c.extend({},cision.websolution.settings.general),o=cision.websolution.settings.ticker.accessKey,m=cision.websolution.texts[u.uiLanguage];return{render:function(e){if(e&&c.extend(u,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Share performance",path:"Ticker/"+o+"/Performance"});return Promise.resolve(t).then(function(e){for(var t=e.Instruments,o=c.extend(t,m).sort(function(e,t){return e.TickerSymbol-t.Symbol}),n="",a="#"+(u.templateElement||"tplTickerPerformance"),i=0;i<o.length;i++){var r=o[i];r.AthDateFormatted=moment(r.AthDate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.LastUpdateFormatted=moment(r.LastUpdate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.AtlDateFormatted=moment(r.AtlDate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.HighPriceYtdDateFormatted=moment(r.HighPriceYtdDate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.LowPriceYtdDateFormatted=moment(r.LowPriceYtdDate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.DividendDateFormatted=moment(r.DividendDate).locale(u.uiLanguage).format(u.dateFormatOptions.dateFormat),r.QuoteTimeFormatted=moment(r.QuoteTime).locale(u.uiLanguage).format(u.dateFormatOptions.dateTimeFormat),r.KeyRatioTimeFormatted=moment(r.KeyRatioTime).locale(u.uiLanguage).format(u.dateFormatOptions.dateTimeFormat);var s=c.extend(r,m,u);n+=c(a).render(s,cision.websolution.formatHelpers)}var l="#"+(u.outputTargetElement||"target-share-performance");c(l).html(n)}).catch(function(e){console.log("Could not retrieve share performance data. "+e.message)})}console.log("You must provide your ticker access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.trades=cision.websolution.settings.ticker?function(a){var i=a.extend({},cision.websolution.settings.general),o=cision.websolution.settings.ticker.accessKey;return{render:function(e){if(e&&a.extend(i,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"Ticker Trades",path:"Ticker/"+o+"/Trades"});Promise.resolve(t).then(function(e){var t=e.Instruments[0];a.each(t.Trades,function(e,t){t.TradeTimeFormatted=moment(t.TradeTime).locale(i.uiLanguage).format(i.dateFormatOptions.dateFormat)});var o="#"+(i.templateElement||"tplTickerTrades"),n="#"+(i.outputTargetElement||"target-trades");cision.websolution.common.modelToHtml(t,o,n)}).catch(function(e){console.log("Could not retrieve trades data. "+e.message)})}else console.log("You must provide your ticker access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.totalReturn=cision.websolution.totalReturn||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.totalReturn.detail=cision.websolution.settings.totalreturn?function(m){function t(o){if(o&&m.extend(d,o),n){var e={};d.intervalType&&(e.intervalType=d.intervalType,"custom"===d.intervalType.toLowerCase()&&(e.startDate=d.startDate,d.endDate&&(e.endDate=d.endDate))),d.intervalLength&&(e.intervalLength=d.intervalLength);var t=cision.websolution.common.getModuleData({accessKey:n,module:"TotalReturn Detail",path:"TotalReturn/"+n+"/Detail",postData:e});return Promise.resolve(t).then(function(e){if(a(e),i(e),r(e),o.callback)try{var t=e.Instruments[0];o.callback(t.CustomSummary.DateStart,t.CustomSummary.DateCurrent)}catch(e){console.log(e)}d.startDate=moment(t.CustomSummary.DateStart).format("YYYY-MM-DD"),d.endDate=moment(t.CustomSummary.DateCurrent).format("YYYY-MM-DD")}).catch(function(e){console.log("Could not retrieve total return data. "+e.message)})}console.log("You must provide your access key.")}var o,d=m.extend({excludeKeys:[],preferredColors:{}},cision.websolution.settings.general),n=cision.websolution.settings.totalreturn.accessKey,p=cision.websolution.texts[d.uiLanguage],a=function(e){!function(e){var t={spline:{states:{hover:{}}},series:{lineWidth:d.lineWidth}};d.lineWidth,d.chartComparison,d.lineWidth;o=new Highcharts.Chart({chart:{type:"spline",renderTo:"container-total-return-detail-chart",defaultSeriesType:"spline"},series:e.series,xAxis:{type:"datetime"},yAxis:{},tooltip:{valueDecimals:1,shared:true,useHTML:true},plotOptions:t,credits:{enabled:!1},title:{text:d.chartTitle}})}(function(e){var r=[];return m.each(e.Instruments,function(e,t){t.TickerSymbol,t.MarketPlace,t.TradeCurrency;
3if(t.EffectiveYields&&0<t.EffectiveYields.length){var o={id:t.TickerSymbol+" / "+t.MarketPlace+" / "+t.TradeCurrency+" [TR]",name:t.TickerName+" ("+t.TickerSymbol+") [TR]",data:[],uniqueKey:"blue"},n=t.EffectiveYields[0];m.each(t.EffectiveYields,function(e,t){t.Date=moment(t.ObsDate).format("YYYY-MM-DD")+"T00:00:00Z",o.data.push([1e3*moment(t.Date).format("X"),100*(t.LastAdjReInv-n.LastAdjReInv)/n.LastAdjReInv])}),o.color=s(o.uniqueKey),r.push(o)}if(t.Quotes&&0<t.Quotes.length){var a={id:t.TickerSymbol+" / "+t.MarketPlace+" / "+t.TradeCurrency,name:t.TickerName+" ("+t.TickerSymbol+")",data:[],uniqueKey:"gray"},i=t.Quotes[0];m.each(t.Quotes,function(e,t){t.Date=moment(t.QuoteTime).format("YYYY-MM-DD")+"T00:00:00Z",a.data.push([1e3*moment(t.Date).format("X"),100*(t.Price-i.Price)/i.Price])}),a.color=s(a.uniqueKey),r.push(a)}}),{series:r}}(e))},i=function(e){var t=m.extend({},e,p,d),o="#"+(d.templateElementCustomSummary||"tplTotalReturnCustomSummary"),n=m(o).render(t,cision.websolution.formatHelpers),a="#"+(d.outputTargetElement||"target-total-return-detail-custom-summary");m(a).html(n)},r=function(e){var o=[],t={tickers:[],rows:[]},n=[];m.each(e.Instruments,function(e,t){n.push({TickerType:t.TickerType,TickerName:t.TickerName,TickerSymbol:t.TickerSymbol,MarketPlace:t.MarketPlace,TradeCurrency:t.TradeCurrency}),m.each(t.Summaries,function(e,t){if(-1!==d.excludeKeys.indexOf(t.Key))return!0;o[t.Key]||(o[t.Key]={Key:p.totalReturnDescriptions.intervalKeys[t.Key]||t.Key,tickers:[]}),o[t.Key].tickers.push(t)})}),t.tickers=n,t.rows=Object.values(o);var a=m.extend({},t,p,d),i="#"+(d.templateElementListing||"tplTotalReturnListing"),r=m(i).render(a,cision.websolution.formatHelpers),s="#"+(d.outputTargetElementListing||"target-total-return-detail-listing");m(s).html(r);var l="#"+(d.templateElementCagrListing||"tplTotalReturnCAGRListing"),c=m(l).render(a,cision.websolution.formatHelpers),u="#"+(d.outputTargetElementCagr||"target-total-return-detail-cagr-listing");m(u).html(c)};var s=function(o){var n=null;try{m.each(d.cisionChartsColors,function(e,t){t.uniqueKey==o&&(n=t.preferredColor)})}catch(e){console.log(e)}return n};return{chartObj:o,initDatePickers:function(e){e&&m.extend(d,e),m("#"+(d.datePickerStart||"datePickerStart")+" input").datepicker({autoclose:!0,todayHighlight:!0,language:d.uiLanguage}).on("changeDate",function(e){d.setDetailLoadingState&&d.setDetailLoadingState(!0),d.startDate=moment(e.date).format("YYYY-MM-DD"),t({excludeKeys:d.excludeKeys,startDate:d.startDate,endDate:d.endDate,callback:d.callback,intervalType:"Custom"})}),m("#"+(d.datePickerEnd||"datePickerEnd")+" input").datepicker({autoclose:!0,todayHighlight:!0,language:d.uiLanguage}).on("changeDate",function(e){d.setDetailLoadingState&&d.setDetailLoadingState(!0),d.endDate=moment(e.date).format("YYYY-MM-DD"),t({excludeKeys:d.excludeKeys,startDate:d.startDate,endDate:d.endDate,callback:d.callback,intervalType:"Custom"})})},render:t}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.totalReturn=cision.websolution.totalReturn||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.totalReturn.dividend=cision.websolution.settings.totalreturn?function(r){var s=r.extend({excludeKeys:[],preferredColors:{}},cision.websolution.settings.general),o=cision.websolution.settings.totalreturn.accessKey,l=cision.websolution.texts[s.uiLanguage]||cision.websolution.texts.en||{totalReturnDescriptions:{intervalKeys:{}}};var n=function(e){var t={rows:e.rows},o=r.extend({},t,l,s),n="#"+(s.templateElementListing||"tplTotalReturnDividendListing"),a=r(n).render(o,cision.websolution.formatHelpers),i="#"+(s.outputTargetElement||"target-total-return-dividend-listing");r(i).html(a)};var i=function(o){var n=null;try{r.each(s.cisionChartsColors,function(e,t){t.uniqueKey==o&&(n=t.preferredColor)})}catch(e){console.log(e)}return n};return{render:function(e){if(e&&r.extend(s,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"TotalReturn Dividend",path:"TotalReturn/"+o+"/Dividend"});return Promise.resolve(t).then(function(e){var t=function(e){var n={name:l.totalReturnDescriptions.titles.DividendType_Annual||"Annual",data:[],uniqueKey:"gray"},a={name:l.totalReturnDescriptions.titles.DividendType_Bonus||"Bonus",data:[],uniqueKey:"blue"};n.color=i(n.uniqueKey),a.color=i(a.uniqueKey),r.each(e.AnnualDivi
3dends,function(e,t){var o=moment(t.EventDate).year()-1;t.Year=o,t.Type=n.name,n.data.push({x:o,y:t.AmountAdjusted})}),r.each(e.BonusDividends,function(e,t){var o=moment(t.EventDate).year()-1;t.Year=o,t.Type=a.name,a.data.push({x:o,y:t.AmountAdjusted})});var t=e.AnnualDividends.concat(e.BonusDividends);return t=t.sort(function(e,t){return e.EventDate>t.EventDate?-1:1}),{categories:[],series:[a,n],rows:t}}(e.Instruments[0]);!function(e){var t={categories:e.categories};new Highcharts.Chart({chart:{type:"column",renderTo:"container-total-return-dividend-chart",defaultSeriesType:"column"},series:e.series,xAxis:t,yAxis:{min:0,title:{text:"",margin:0}},tooltip:{valueDecimals:2,shared:true,useHTML:true},plotOptions:{column:{stacking:"normal"}},credits:{enabled:!1},title:{text:s.chartTitle}})}(t),n(t)}).catch(function(e){console.log("Could not retrieve total return data. "+e.message)})}console.log("You must provide your access key.")}}}(jQuery):{},(cision=cision||{}).websolution=cision.websolution||{},cision.websolution.texts=cision.websolution.texts||{},cision.websolution.totalReturn=cision.websolution.totalReturn||{},cision.websolution.settings=cision.websolution.settings||{},cision.websolution.formatHelpers=cision.websolution.formatHelpers||{},cision.websolution.totalReturn.overview=cision.websolution.settings.totalreturn?function(r){var s=r.extend({excludeKeys:[],preferredColors:{}},cision.websolution.settings.general),o=cision.websolution.settings.totalreturn.accessKey,l=cision.websolution.texts[s.uiLanguage]||cision.websolution.texts.en||{totalReturnDescriptions:{intervalKeys:{}}};var c=function(o){var n=null;try{r.each(s.cisionChartsColors,function(e,t){t.uniqueKey==o&&(n=t.preferredColor)})}catch(e){console.log(e)}return n};return{render:function(e){if(e&&r.extend(s,e),o){var t=cision.websolution.common.getModuleData({accessKey:o,module:"TotalReturn",path:"TotalReturn/"+o+"/Summary"});return Promise.resolve(t).then(function(e){!function(e){var t={categories:e.categories};new Highcharts.Chart({chart:{type:"column",renderTo:"container-total-return-overview-chart",defaultSeriesType:"column"},series:e.series,xAxis:t,yAxis:{min:0,title:{text:"",margin:0}},tooltip:{valueDecimals:2,valueSuffix:" %",shared:true,useHTML:true},plotOptions:{series:{borderWidth:0,dataLabels:{enabled:true,format:"{point.y:.0f}%"}}},credits:{enabled:!1},title:{text:s.chartTitle}})}(function(e){var o={name:l.totalReturnDescriptions.titles.Price||"Listed Price",data:[],uniqueKey:"gray"};o.color=c(o.uniqueKey);var n={name:l.totalReturnDescriptions.titles.Dividend||"Dividend",data:[],uniqueKey:"blue"};n.color=c(n.uniqueKey);var a={name:l.totalReturnDescriptions.titles.TotalReturn||"Total Return",data:[],uniqueKey:"orange"};a.color=c(a.uniqueKey);var i=[];return r.each(e.Summaries,function(e,t){if(-1!==s.excludeKeys.indexOf(t.Key))return!0;i.push(l.totalReturnDescriptions.intervalKeys[t.Key]||t.Key),o.data.push(100*t.PricePercentage),a.data.push(100*t.EYieldPercentage),n.data.push(100*t.DividendPercentage)}),{categories:i,series:[n,o,a]}}(e.Instruments[0]))}).catch(function(e){console.log("Could not retrieve total return data. "+e.message)})}console.log("You must provide your access key.")}}}(jQuery):{};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.