(()=>{var t={7757:(t,e,r)=>{t.exports=r(5666)},5666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),o=new S(n||[]);return i._invoke=function(t,e,r){var n=d;return function(a,i){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===a)throw i;return k()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=O(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?f:m,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=f,r.method="throw",r.arg=u.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",p={};function y(){}function b(){}function v(){}var g={};u(g,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==r&&n.call(_,i)&&(g=_);var x=v.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(a,i,o,s){var u=l(t[a],t,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;this._invoke=function(t,n){function i(){return new e((function(e,a){r(t,n,e,a)}))}return a=a?a.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=l(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){var a=e[n];if(void 0!==a)return a.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=r(7757),e=r.n(t),n=function(t){var e=t.amount,r=t.currency,n=void 0===r?"EUR":r,a=t.minimumPrecision,i=void 0===a?0:a,o=t.maximumPrecision,s=void 0===o?0:o,u=t.replaceZeroWith,c=void 0!==u&&u,l=t.index,d=void 0!==l&&l;return c&&0===parseFloat(e)?c:(d?new Intl.NumberFormat("de"===document.documentElement.lang?"de":"en",{maximumFractionDigits:s,minimumFractionDigits:i,signDisplay:"auto"}):new Intl.NumberFormat("de"===document.documentElement.lang?"de":"en",{style:"currency",currency:n,maximumFractionDigits:s,minimumFractionDigits:i,signDisplay:"auto"})).format(Number.parseFloat(e))},a=function(t,e){return new Intl.NumberFormat("de"===document.documentElement.lang?"de":"en",{maximumFractionDigits:e,minimumFractionDigits:2}).format(t)},i=function(t,e){var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,r=!1;t<0&&(r=!0,t=Math.abs(t));var n,a=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"de"===document.documentElement.lang?"Mio.":"M"},{value:1e9,symbol:"de"===document.documentElement.lang?"Mrd.":"B"}],i=/\.0+$|(\.[0-9]*[1-9])0+$/;for(n=a.length-1;n>0&&!(t>=a[n].value);n--);var o={number:(t/a[n].value).toFixed(e).replace(i,"$1"),symbol:a[n].symbol};return r&&(o.number=-o.number),o}(t,e);return"de"===document.documentElement.lang?n({amount:r.number,minimumPrecision:e,maximumPrecision:e}).slice(0,-1)+r.symbol+" €":n({amount:r.number,minimumPrecision:e,maximumPrecision:e})+r.symbol};function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=1&&t(a[0].attributes.precision_for_fiat_price),t(2)})).fail((function(){e(2)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var s=function(e){var o="".concat(apiUrls.baseV2,"assets/index.html").concat(e,"/details");$.getJSON(o).done((function(o){var s="";switch(o.data.type){case"stock_details":s="stocks";break;case"cryptocoin_details":s="cryptocoins";break;case"etf_details":s="etfs";break;case"index_details":s="index";break;case"etc_details":s="etcs"}(function(t,e){return r.apply(this,arguments)})(s,e).then((function(e){var r,u,l,d,m,h,f=e,p={assetName:o.data.attributes.asset_name,currentPrice:o.data.attributes.current_price,currentPriceAbsoluteChange:o.data.attributes.current_price_absolute_change,currentPriceRelativeChange:o.data.attributes.current_price_relative_change,high52W:n({amount:o.data.attributes.high_52_w,minimumPrecision:2,maximumPrecision:f}),low52W:n({amount:o.data.attributes.low_52_w,minimumPrecision:2,maximumPrecision:f}),yearlyNetIncomes:o.data.attributes.yearly_net_incomes,dailyHigh:n({amount:o.data.attributes.daily_high,minimumPrecision:2,maximumPrecision:f}),dailyLow:n({amount:o.data.attributes.daily_low,minimumPrecision:2,maximumPrecision:f}),monthlyVolatility:a((100*o.data.attributes.monthly_volatility).toFixed(2),2)+"%",marketCap:i(o.data.attributes.market_cap,2),dividendYield:a(parseFloat(100*o.data.attributes.dividend_yield).toFixed(2),2)+"%",peRatio:a(parseFloat(o.data.attributes.pe_ratio).toFixed(2),2),dividendPerShare:n({amount:o.data.attributes.dividend_per_share,minimumPrecision:2,maximumPrecision:f}),earningsPerShare:n({amount:o.data.attributes.earnings_per_share,minimumPrecision:2,maximumPrecision:f}),revenue:i(o.data.attributes.revenue,2)};if("stocks"===s){var y={count:Math.floor(100*o.data.attributes.recommendation_count),buy:Math.floor(100*o.data.attributes.recommendation_buy_percentage),hold:Math.floor(100*o.data.attributes.recommendation_hold_percentage),sell:Math.floor(100*o.data.attributes.recommendation_sell_percentage)};switch((p=c(c({},p),{},{recommendation:y,buyHoldSell:Math.max(y.buy,y.hold,y.sell),recommendationCount:o.data.attributes.recommendation_count,lastUpdated:(m=o.data.attributes.last_updated.unix,h={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h24"},"de"===document.documentElement.lang?new Intl.DateTimeFormat("de-DE",h).format(1e3*m):new Intl.DateTimeFormat("en-GB",h).format(1e3*m)),netIncome:i(void 0!==o.data.attributes.yearly_net_incomes.find((function(e){return e.year===t}))?o.data.attributes.yearly_net_incomes.find((function(e){return e.year===t})).net_income:"0",2)})).buyHoldSell){case p.recommendation.buy:$(".asset-data__count__title--buy").removeClass("uk-hidden"),$(".bp-rdl-progress").addClass("asset-data-buy");break;case p.recommendation.hold:$(".asset-data__count__title--hold").removeClass("uk-hidden"),$(".bp-rdl-progress").addClass("asset-data-hold");break;case p.recommendation.sell:$(".asset-data__count__title--sell").removeClass("uk-hidden"),$(".bp-rdl-progress").addClass("asset-data-sell")}r={selector:".analyst-data .bp-rdl-progress",percent:p.buyHoldSell},u=r.selector,l=r.percent,d=0,d=l>97&&l<100?Math.floor(15.75):0===l?315:100===l?0:Math.floor(315*(100-l)/100),$("".concat(u," #asset-data__count__svg .progress-circle")).attr("stroke-dashoffset",d),$("[data-asset-field=recommendationCount]").html(p.recommendationCount),$("[data-asset-field=buyHoldSell]").html(p.buyHoldSell),$("[data-asset-label=recommendationBuy]").prepend("".concat(p.recommendation.buy,"%")),$("[data-asset-field=recommendationBuy]").find("span").css("width","".concat(p.recommendation.buy,"%")),$("[data-asset-label=recommendationHold]").prepend("".concat(p.recommendation.hold,"%")),$("[data-asset-field=recommendationHold]").find("span").css("width","".concat(p.recommendation.hold,"%")),$("[data-asset-label=recommendationSell]").prepend("".concat(p.recommendation.sell,"%")),$("[data-asset-field=recommendationSell]").find("span").css("width","".concat(p.recommendation.sell,"%")),$("[data-asset-field=marketCap]").html(p.marketCap),$("[data-asset-field=dividendYield]").html(p.dividendYield),$("[data-asset-field=peRatio]").html(p.peRatio),$("[data-asset-field=dividendPerShare]").html(p.dividendPerShare),$("[data-asset-field=earningsPerShare]").html(p.earningsPerShare),$("[data-asset-field=revenue]").html(p.revenue),$("[data-asset-field=netIncome]").html("€0"===p.netIncome?"-":p.netIncome),$("[data-asset-field=lastUpdated]").html(p.lastUpdated)}"etfs"!==s&&"etcs"!==s||(p=c(c({},p),{},{high52W:n({amount:o.data.attributes.high_52_w,minimumPrecision:2,maximumPrecision:f}),low52W:n({amount:o.data.attributes.low_52_w,minimumPrecision:2,maximumPrecision:f}),fundSize:i(o.data.attributes.fund_size,2),assetName:o.data.attributes.asset_name,provider:o.data.attributes.provider,totalExpenseRatio:(100*o.data.attributes.total_expense_ratio).toFixed(2)+"% p.a. ",distributionPolicy:o.data.attributes.distribution_policy,replicationMethod:o.data.attributes.replication_method}),$("[data-asset-field=high52W]").html(p.high52W),$("[data-asset-field=low52W]").html(p.low52W),$("[data-asset-field=fundSize]").html(p.fundSize),$("[data-asset-field=assetName]").html(p.assetName),$("[data-asset-field=provider]").html(p.provider),$("[data-asset-field=totalExpenseRatio]").html(p.totalExpenseRatio),$("[data-asset-field=distributionPolicy]").html(p.distributionPolicy),$("[data-asset-field=replicationMethod]").html(p.replicationMethod)),"cryptocoins"===s&&(p=c(c({},p),{},{high52W:n({amount:o.data.attributes.high_52_w,minimumPrecision:2,maximumPrecision:f}),low52W:n({amount:o.data.attributes.low_52_w,minimumPrecision:2,maximumPrecision:f})}),$("[data-asset-field=high52W]").html(p.high52W),$("[data-asset-field=low52W]").html(p.low52W),$("[data-asset-field=marketCap]").html(p.marketCap)),"index"===s&&(p=c(c({},p),{},{high52W:n({amount:o.data.attributes.high_52_w,minimumPrecision:2,maximumPrecision:f,index:!0}),low52W:n({amount:o.data.attributes.low_52_w,minimumPrecision:2,maximumPrecision:f,index:!0}),dailyHigh:n({amount:o.data.attributes.daily_high,minimumPrecision:2,maximumPrecision:f,index:!0}),dailyLow:n({amount:o.data.attributes.daily_low,minimumPrecision:2,maximumPrecision:f,index:!0})}),$("[data-asset-field=high52W]").html(p.high52W),$("[data-asset-field=low52W]").html(p.low52W)),$("[data-asset-field=dailyHigh]").html(p.dailyHigh),$("[data-asset-field=dailyLow]").html(p.dailyLow),$("[data-asset-field=monthlyVolatility]").html(p.monthlyVolatility);var b=window.location.hash;b&&setTimeout((function(){$("html, body").animate({scrollTop:$(b).offset().top-80},500)}),1e3)}))}))};if(document.body.hasAttribute("data-asset-id")&&""!==document.body.attributes["data-asset-id"].value)s(document.body.attributes["data-asset-id"].value);else{var u=document.body;new MutationObserver((function(t,e){var r,n=o(t);try{for(n.s();!(r=n.n()).done;){"attributes"===r.value.type&&document.body.hasAttribute("data-asset-id")&&""!==document.body.attributes["data-asset-id"].value&&(s(document.body.attributes["data-asset-id"].value),e.disconnect())}}catch(t){n.e(t)}finally{n.f()}})).observe(u,{attributes:!0,childList:!1,subtree:!1})}}))})()})();