(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[12239],{833769:e=>{e.exports={wrapper:"wrapper-TJ9ObuLF",animated:"animated-TJ9ObuLF",pulsation:"pulsation-TJ9ObuLF"}},654233:(e,t,o)=>{"use strict";o.d(t,{WatchedValue:()=>r.WatchedValue});var r=o(336315);o(812579)},812579:(e,t,o)=>{"use strict";o(385955);var r=o(336315);r.WatchedValue},252938:(e,t,o)=>{"use strict";o.d(t,{isNativeUIInteraction:()=>s});var r=o(954231);function n(e){if("INPUT"===e.tagName){const t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function s(e,t){if(!t)return!1;const o=255&e;if(27===o||o>>>4==7)return!1;switch(e^o){case r.Modifiers.Alt:return(38===o||40===o)&&"SELECT"===t.tagName||n(t);case r.Modifiers.Alt+r.Modifiers.Shift:return n(t);case r.Modifiers.Mod:if(67===o||!r.isMacKeyboard&&45===o){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return n(t);case r.Modifiers.Mod+r.Modifiers.Shift:return o>=33&&o<=40&&n(t);case r.Modifiers.Shift:case 0:return 9===o?!(!t.ownerDocument||t===t.ownerDocument.body||t===t.ownerDocument.documentElement):(!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t)||13===o||32===o||9===o)&&("form"in t||t.isContentEditable)}return!1}},338390:(e,t,o)=>{"use strict";o.d(t,{getStyleClasses:()=>c,isCircleLogoWithUrlProps:()=>l});var r=o(914487),n=o.n(r),s=o(140095),i=o(130725),a=o.n(i);function c(e,t=2,o){return n()(a().logo,a()[e],o,0===t||1===t?n()(s.skeletonTheme.wrapper,a().skeleton):a().letter,1===t&&s.skeletonTheme.animated)}function l(e){return"logoUrl"in e&&null!==e.logoUrl&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},666957:(e,t,o)=>{"use strict";o.d(t,{colorsPalette:()=>m});var r=o(630614),n=o(133621),s=o(185842);const i={...r,...n},a={},c=Object.keys(i).length,l=/^#(([a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i;function u(e,t=[],o=i){const r=o[e];if(!r)return null;if(l.test(r))return r;const n=r;return t.push(e),-1!==t.indexOf(n)?(console.warn("Colors definitions cycled"),r):t.length>c?(console.warn("Too many variables-link in HEX-color search: "+t[0]),null):u(n,t,o)}Object.keys(i).forEach((e=>{const t=u(e);a[e]=(0,s.ensureNotNull)(t)}));const m=a},823291:(e,t,o)=>{"use strict";o.d(t,{colorsPalette:()=>r.colorsPalette});var r=o(666957)},627889:(e,t,o)=>{"use strict";o.d(t,{color:()=>r});const r={black70:"#4A4A4A",black80:"#535353"}},140095:(e,t,o)=>{"use strict";o.d(t,{skeletonTheme:()=>n});var r=o(833769);const n=o.n(r)()},168509:(e,t,o)=>{"use strict";o.d(t,{WatchedValue:()=>r.WatchedValue});var r=o(654233)},760823:(e,t,o)=>{"use strict";o.d(t,{PLACE_HOLDER:()=>i,VolumeFormatter:()=>l});var r=o(729193),n=o(148544),s=o(385955);const i="---",a=[{value:3,letter:"K"},{value:6,letter:"M"},{value:9,letter:"B"},{value:12,letter:"T"}];function c(e,t){const o=e-t;return a.find((e=>e.value>=o))??a[a.length-1]}class l{constructor(e={}){ this.type="volume";const{precision:t=0,minPrecision:o=0,dimensionPrecision:r=2,dimensionMinPrecision:s=0,significantDigits:i=3,ignoreLocaleNumberFormat:a,noExponentialForm:c,removeSpaceBeforeDimension:l}=e;this._precision=t,this._formatter=new n.NumericFormatter({ignoreLocaleNumberFormat:a,precision:this._precision,minPrecision:o,noExponentialForm:c}),this._dimensionPrecision=r,this._dimensionFormatter=new n.NumericFormatter({ignoreLocaleNumberFormat:a,precision:this._dimensionPrecision,minPrecision:s,noExponentialForm:c}),this._significantDigits=i,this._fractionalValues=void 0!==t&&t>0,this._spaceBeforeDimension=l?"":" ",this._options=e}state(){const{ignoreLocaleNumberFormat:e,...t}=this._options;return t}format(e,t){if(!(0,s.isNumber)(e))return i;if(Math.abs(e)>=1e100)return r.t(null,void 0,o(846741));let n="";Math.abs(e)<1&&(e=+e.toFixed(this._precision)),e<0?n="−":e>0&&t?.signPositive&&(n="+"),e=Math.abs(e);const a=!!(t?.ignoreLocaleNumberFormat??this._options.ignoreLocaleNumberFormat);let l,u,m=Math.floor(Math.log10(e))+1;if(m<=this._significantDigits&&(e=+e.toFixed(this._precision),m=Math.floor(Math.log10(e))+1),m<=this._significantDigits)l=this._formatNumber(e,a,this._formatter);else{let t=c(m,this._significantDigits);const o=Math.pow(10,t.value);e=+(e/o).toFixed(this._dimensionPrecision)*o,t=c(Math.floor(Math.log10(e))+1,this._significantDigits),l=this._formatNumber(e/Math.pow(10,t.value),a,this._dimensionFormatter),u=t.letter}return u?`${n}${l}${this._spaceBeforeDimension}${u}`:`${n}${l}`}parse(e,t){if("---"===e)return{error:"not a number",res:!1,value:NaN};const o={K:1e3,M:1e6,B:1e9,T:1e12},r=(e=e.replace("−","-")).slice(-1);if(o.hasOwnProperty(r)){const n=this._formatter.parse(e.slice(0,-1).trim(),t),i=n.res?n.value:NaN;return(0,s.isNumber)(i)?{res:!0,value:i*o[r]}:{error:"not a number",res:!1,value:NaN}}{const o=this._formatter.parse(e.trim(),t);let r=o.res?o.value:NaN;return-0===r&&(r=0),(0,s.isNumber)(r)?{res:!0,value:r}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new l(e)}_formatNumber(e,t,o){if(this._fractionalValues&&0!==e){const t=14-Math.ceil(Math.log10(e)),o=Math.pow(10,t);e=Math.round(e*o)/o}return o.format(e,{ignoreLocaleNumberFormat:t})}}},131890:(e,t,o)=>{"use strict";o.d(t,{fetch:()=>s});var r=o(77357);o(574908);const n=(0,r.getLogger)("Fetch");function s(e,t,o={}){{const{logOnErrorStatus:r=!0,logBodyOnError:s=!1}=o;t=t||{},function(e){return new URL(e,document.baseURI).origin===location.origin}(e)&&(t.headers?t.headers instanceof Headers||(t.headers=new Headers(t.headers)):t.headers=new Headers,window.locale&&t.headers.set("X-Language",window.locale),t.headers.set("X-Requested-With","XMLHttpRequest")),void 0===t.credentials&&(t.credentials="same-origin");const i=window.fetch(e,t);return i.then((o=>{if(!o.ok&&r){let r="";t.method&&(r+=`${t.method.toUpperCase()} `),r+=e,r+=`. Status ${o.status}`,o.statusText&&(r+=`. ${o.statusText}`),o.headers.via&&(r+=`. Via: ${o.headers.via}`), s&&"string"==typeof t.body&&(r+=`. Body: ${t.body.slice(0,1024)}`),n.logError(r)}return o}),(o=>{if(o&&"AbortError"===o.name)return;let r="";t.method&&(r+=`${t.method.toUpperCase()} `),r+=e,navigator.onLine?r+=`. ${String(o)}`:r+=". User is offline.",n.logError(r)})),i}}},947110:(e,t,o)=>{"use strict";o.d(t,{color:()=>r.color});var r=o(627889)},126927:(e,t,o)=>{"use strict";o.d(t,{makeSymbolPageUrl:()=>p,makeTemplateSymbolUrl:()=>h});var r=o(655612),n=o(451041),s=o(890533),i=o(511228),a=o(298147);function c(e){const t={...e};if("spread"===t.type||"expression"===t.type){const e=t.shortName&&l(t.shortName),o=t.proName&&l(t.proName);t.type=void 0,t.shortName=e,t.proName=o}return t}function l(e){return(0,i.tokenize)(e).find((e=>"symbol"===e.type))?.value}function u(e){const t={shortName:e.shortName,exchange:e.exchange,proName:e.proName,type:e.type,typespecs:e.typespecs,root:e.root};return t.proName&&t.proName.includes(":")&&([t.exchange,t.shortName]=t.proName.split(":")),t}function m(e,t){const o=encodeURIComponent(t.shortName||""),r=encodeURIComponent(t.exchange||""),n=encodeURIComponent(t.proName||""),s=encodeURIComponent(t.root||"");return e.replace("{tvexchange}",r).replace("{tvsymbol}",o).replace("{tvprosymbol}",n).replace("{tvroot}",s)}function d(e,t=""){const o=u(e),{type:r,typespecs:n,shortName:s,proName:i,exchange:c,root:l}=o;return void 0===s&&void 0===i?(console.warn("Params missed"),"/"):r||n?"commodity"===r&&n&&n.includes("cfd")?"/symbols/{tvsymbol}/?exchange={tvexchange}":!l||!n||"futures"!==r||n.includes("continuous")&&s?.endsWith("1!")||n.includes("exchange-continuous")?c&&("forex"===r||n&&(0,a.hasCryptoTypespec)(n))?"/symbols/{tvsymbol}/?exchange={tvexchange}":c?`/symbols/{tvexchange}-{tvsymbol}/${t}`:`/symbols/{tvsymbol}/${t}`:`/symbols/{tvexchange}-{tvroot}1!/${t}?contract={tvsymbol}`:c?`/symbols/{tvexchange}-{tvsymbol}/${t}`:`/symbols/{tvsymbol}/${t}`}function h(e,t){let o=e;if(!/{tvsymbol}|{tvexchange}|{tvprosymbol}/.test(e)){let r="tvprosymbol";void 0===t.proName&&(r="tvsymbol"),o=`${e}?tvwidgetsymbol={${r}}`}const r=m(o,u(c(t)));if(!(0,s.isSafeUrl)(r))throw new Error(`The symbol URL ${r} is not allowed.`);return r}function f(e,t,o,s){const i=(window.locale_domains?(0,n.determineBaseUrl)(window.locale_domains,s):window.location.origin)+m(e,u(c(t)));return o?(0,r.addUtmToUrl)(i,o):i}function p(e,t,o,r){const n=c(e);return f(d(n,r),n,t,o)}},359221:(e,t,o)=>{"use strict";o.d(t,{parseHtmlElement:()=>n});const r=new WeakMap;function n(e,t){const o=function(e,t){let o,n;return o=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,r&&(n=r.get(o)),n||(n=o.ownerDocument.createRange(),n.selectNodeContents(o),r&&r.set(o,n)),n.createContextualFragment(e)}(e,t),n=o.firstElementChild;return null!==n&&o.removeChild(n),n}},655612:(e,t,o)=>{"use strict";o.d(t,{addUtmToUrl:()=>n});var r=o(323939);function n(e,t){if(!/([a-zA-Z0-9.-]*tradingview.com)|localhost/.test(e))return e;const o=(0,r.buildUtmQueryString)(t);if(""===o)return e;const n=e.indexOf("?"),s=e.indexOf("#"),i=-1!==s;if(-1!==n&&(!i||n{"use strict";o.d(t,{buildUtmQueryString:()=>a,filterUtmInfo:()=>i});var r=o(484280),n=o(609851);const s=["utm_source","utm_medium","utm_campaign"];function i(e){const t={};return s.forEach((o=>{const r=e[o];"string"==typeof r&&""!==r&&(t[o]=(0,n.htmlEscape)(r))})),t}function a(e,t=!1){const o=(0,r.createUrlParams)(e);return o&&t?"?"+o:o}}}]);