"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[26546],{49437:(t,e,i)=>{const{getLogger:n}=i(201089),o=n("TVLocalStorage");var r=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(t){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(t){}};r.prototype._report=function(){if(this.isAvailable){const t=10,e=[];for(let t=0;te.length-t.length));const i=e.slice(0,t);e.sort(((t,e)=>e.key.length-t.key.length));const n=e.slice(0,t);o.logNormal(`Total amount of keys in Local Storage: ${this.length}`),o.logNormal(`Top ${t} keys with longest values: ${JSON.stringify(i)}`),o.logNormal(`Top ${t} longest key names: ${JSON.stringify(n)}`);try{navigator.storage.estimate().then((t=>{o.logNormal(`Storage estimate: ${JSON.stringify(t)}`)}))}catch(t){}}},r.prototype.length=0,r.prototype.isAvailable=!1,r.prototype.localStorage={"tvlocalstorage.available":"false"},r.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var t,e=0;for(t in this.localStorage)this.localStorage.hasOwnProperty(t)&&e++;this.length=e}},r.prototype.key=function(t){return this.isAvailable?this.localStorage.key(t):Object.keys(this.localStorage)[t]},r.prototype.getItem=function(t){return this.isAvailable?this.localStorage.getItem(t):void 0===this.localStorage[t]?null:this.localStorage[t]},r.prototype.setItem=function(t,e){this.isAvailable?this.localStorage.setItem(t,e):this.localStorage[t]=e,this._updateLength()},r.prototype.removeItem=function(t){this.isAvailable?this.localStorage.removeItem(t):delete this.localStorage[t],this._updateLength()},r.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var a=function(t){this.storage=t};a.prototype.getItem=function(t){return Promise.resolve(this.storage.getItem(t))},a.prototype.setItem=function(t,e){return Promise.resolve(this.storage.setItem(t,e))},window.TVLocalStorage=new r,window.TVLocalStorageAsync=new a(window.TVLocalStorage),t.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},779923:(t,e,i)=>{async function n(t,e){const n=await Promise.all([i.e(32662),i.e(5987),i.e(98996),i.e(43387),i.e(4343),i.e(66458),i.e(44597),i.e(1413),i.e(19216),i.e(52078),i.e(16005),i.e(16165),i.e(56448),i.e(62526),i.e(38890)]).then(i.bind(i,872462));return n.showSimpleDialog(t,n.warningModule,e)}i.d(e,{showWarning:()=>n})},315347:(t,e,i)=>{var n,o;i.d(e,{TIMEFRAMETYPE:()=>o}),function(t){t.extractErrorReason=function(t){return t.params[1]}}(n||(n={})),function(t){t.PeriodBack="period-back",t.TimeRange="time-range"}(o||(o={}))},678515:(t,e,i)=>{function n(t,e,i){return Math.min(Math.max(t,e),i)}function o(t){return t>0?Math.floor(t):Math.ceil(t)}i.d(e,{clamp:()=>n,toInt:()=>o})},217504:(t,e,i)=>{i.d(e,{ getMinTickData:()=>c,makeVariableMinTickData:()=>u});var n=i(960521),o=i(150335),r=i(389137),a=i(667353);function l(t){return t?(0,n.Big)(t.minMove).div(t.priceScale).toNumber():NaN}function c(t){const{minTick:e,price:i,variableMinTickData:n,shouldCheckForEquality:r}=t,a=(0,o.isNumber)(e)?s(e):e;return void 0===n?a:function(t,e,i=!1){for(let n=0;n(0,r.isEven)(e)?function(t){const e=Number(t);if(Number.isFinite(e))return s(e);{const e=t.split("/");if(e.length<2||e.length>3)throw new Error(`Unexpected mintick: ${t}`);const i=Number(e[1]),n=Number(e[0]);if(!Number.isFinite(i)||!Number.isFinite(n))throw new Error(`Unexpected mintick: ${t}`);const o=3===e.length?Number(e[2]):void 0;if(void 0!==o&&!Number.isFinite(o))throw new Error(`Unexpected mintick: ${t}`);const r={priceScale:i,minMove:n};return void 0!==o&&(r.minMove2=o),r}}(t):function(t){const e=Number(t);if(Number.isNaN(e))throw new Error(`Unexpected price limit: ${t}`);return e}(t)));if((0,r.isEven)(t.length))throw new Error("Theme must not be event number of elements");const o=[];for(let e=0;e{i.d(e,{formatterOptions:()=>o,formatterOptionsNumberFormat:()=>r,numberToStringWithLeadingZero:()=>a});var n=i(389137);const o={decimalSign:".",decimalSignFractional:"'"};function r(){return{decimalSign:o.decimalSign,groupingSeparator:""}}function a(t,e){if(!(0,n.isNumber)(t))return"n/a";if(!(0,n.isInteger)(e))throw new TypeError("invalid length");if(e<0||e>24)throw new TypeError("invalid length");if(0===e)return t.toString();return("0000000000000000"+t.toString()).slice(-e)}},417759:(t,e,i)=>{i.d(e,{formatNumber:()=>r,parseNumber:()=>l});var n=i(960521),o=i(650151);function r(t,e,i,o,r){const a=-1===Math.sign(t)?"-":"";t=Math.abs(t);let l=void 0===i?t.toString():t.toFixed(i);if(l.includes("e")){if(!o)return`${a}${l.replace(".",e.decimalSign)}`;{const e=new n.Big(t);l=e.lt(1)?e.toFixed():e.toString()}}const c=l.split("."),s=c[0];let u=c[1];const g=function(t,e){let i=t.length;const n=[];for(;i>0;)n.unshift(t.slice(Math.max(i-3,0),i)),i-=3;return n.join(e)}(s,e.groupingSeparator);return void 0!==i&&(u=0===i?void 0:t.toFixed(i).slice(-i)),void 0!==r&&void 0!==u&&(u=function(t,e){let i=t.length-1;for(let n=i;n>=e&&"0"===t[n];n-=1)i-=1;return t.slice(0,i+1)}(u,r)),u?`${a}${g}${e.decimalSign}${u}`:`${a}${g}`}const a={ ".":/\./gm,",":/,/gm," ":/\u202F/gm,"":null};function l(t,e){const i=(0,o.ensureDefined)(a[e.groupingSeparator]);return i&&(t=t.replace(i,"")),t=t.replace(e.decimalSign,"."),/^(\+|-)?\d+(\.\d+|\.)?(e(\+|-)?\d+)?$/.test(t)?parseFloat(t):NaN}},84924:(t,e,i)=>{i.d(e,{numberFormat:()=>u});var n=i(912103);let o;const r={groupingSeparator:",",decimalSign:"."},a={groupingSeparator:".",decimalSign:","},l={groupingSeparator:" ",decimalSign:","},c={groupingSeparator:"",decimalSign:"."},s=new Map([["en",r],["th",r],["ja",r],["ko",r],["zh",r],["zh_TW",r],["ar",r],["he_IL",r],["ms_MY",r],["de",a],["es",a],["it",a],["tr",a],["pt",a],["id_ID",a],["vi",a],["fr",l],["pl",l],["ru",l]]);function u(t,e){var i;if(t)return;if((0,n.isProd)()&&!e)return;const r=o||window.language||"";return null!==(i=s.get(r))&&void 0!==i?i:c}},846540:(t,e,i)=>{i.r(e),i.d(e,{types:()=>n});const n={ECONOMIC:"economic",QUANDL:"quandl"}},397150:(t,e,i)=>{i.d(e,{showTooManyStudiesNotice:()=>r});var n=i(444372),o=i(779923);function r(t){(0,o.showWarning)({title:n.t(null,void 0,i(533603)),text:n.t(null,{replace:{number:`${t}`}},i(470213))})}},337779:(t,e,i)=>{function n(t){return t.reduce((function(t,e,i){return~t.indexOf(e)||t.push(e),t}),[])}i.r(e),i.d(e,{uniq:()=>n})}}]);