(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[20321,78775],{140987:e=>{e.exports={"tv-spinner__container-rotate":"tv-spinner__container-rotate-aLqboHuu"}},129592:(e,t,n)=>{"use strict";n.d(t,{createGroup:()=>l,keyboardPressedKeysState:()=>a,pressedKeys:()=>s,registerWindow:()=>d});var o=n(163586),r=n(764250);n(591800);const i=new o.ActionManager,s=i.pressedKeys(),a=i.keyboardPressedKeysState();function l(e){return new r.ActionGroup(i,e)}function d(e){i.listen(e)}},591800:(e,t,n)=>{"use strict";n.d(t,{Modifiers:()=>i,hashFromEvent:()=>a,hotkeyHashToAriaKeyshortcuts:()=>m,humanReadableHash:()=>u,humanReadableModifiers:()=>l,isMacKeyboard:()=>r,modifiersFromEvent:()=>s});var o=n(23482);const r=o.isMac||o.isIOS;var i;function s(e){let t=0;return e.shiftKey&&(t+=1024),e.altKey&&(t+=512),e.ctrlKey&&(t+=256),e.metaKey&&(t+=2048),t}function a(e){return s(e)|e.keyCode}!function(e){e[e.None=0]="None",e[e.Alt=512]="Alt",e[e.Shift=1024]="Shift",e[e.Mod=r?2048:256]="Mod",e[e.Control=256]="Control",e[e.Meta=2048]="Meta"}(i||(i={}));function l(e,t=!r){let n="";return 256&e&&(n+=h(r?"^":"Ctrl",t)),512&e&&(n+=h(r?"⌥":"Alt",t)),1024&e&&(n+=h(r?"⇧":"Shift",t)),2048&e&&(n+=h(r?"⌘":"Win",t)),n}const d={9:"⇥",13:"↵",27:"Esc",8:r?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",188:",",191:"/"},c={9:"Tab",13:"Enter",27:"Esc",8:"Backspace",32:"Space",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Ins",46:"Del",188:",",191:"/"};for(let e=1;e<=16;e++)d[e+111]=`F${e}`,c[e+111]=`F${e}`;function u(e){let t=l(e);const n=255&e;return t+=n in d?d[n]:String.fromCharCode(n),t}function h(e,t){return`${e}${t?" + ":r?" ":""}`}function m(e){const t=[];256&e&&t.push("Ctrl"),512&e&&t.push("Alt"),1024&e&&t.push("Shift"),2048&e&&t.push("Meta");const n=255&e;return n in d?t.push(d[n]):t.push(String.fromCharCode(n)),t.join("+")}},607423:(e,t,n)=>{"use strict";n.d(t,{isNativeUIInteraction:()=>i,isTextEditingField:()=>r});var o=n(591800);function r(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 i(e,t){if(!t)return!1;const n=255&e;if(27===n||n>>>4==7)return!1;switch(e^n){case o.Modifiers.Alt:return(38===n||40===n)&&"SELECT"===t.tagName||r(t);case o.Modifiers.Alt+o.Modifiers.Shift:return r(t);case o.Modifiers.Mod:if(67===n||!o.isMacKeyboard&&45===n){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return r(t);case o.Modifiers.Mod+o.Modifiers.Shift:return n>=33&&n<=40&&r(t);case o.Modifiers.Shift:case 0:return 9===n?!(!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===n||32===n||9===n)&&("form"in t||t.isContentEditable)}return!1}},685023:(e,t,n)=>{"use strict";n.d(t,{ DEFAULT_SIZE:()=>o,spinnerSizeMap:()=>r});const o="large",r={mini:"xsmall",xxsmall:"xxsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"}},604286:(e,t,n)=>{"use strict";n.d(t,{hotKeyDeserialize:()=>i,hotKeySerialize:()=>r});var o=n(927301);function r(e){return(0,o.htmlEscape)(JSON.stringify(e))}function i(e){return JSON.parse((0,o.decodeHTMLEntities)(e))}},673747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{hide:()=>S,show:()=>v,showOnElement:()=>m,tempForceHide:()=>b,tooltipClickHandler:()=>p,updateTooltipText:()=>f});var o=n(778785),r=n(650151),i=n(799786),s=n(112539),a=n(630112),l=n(471802);let d=!1,c=null,u=null;o.mobiletouch||(document.addEventListener("mouseover",g,!0),document.addEventListener("focus",(function(e){const t=e.target;if(!(t instanceof HTMLElement&&t.closest('[data-tooltip-show-on-focus="true"]')&&t.matches(":focus-visible")))return;g(e,!0)}),{capture:!0}),document.addEventListener("active-descendant-focus",(function(e){e.target instanceof HTMLElement&&g(e,!0)}),{capture:!0}));const h=new MutationObserver((()=>{if(c&&c.options.target){let e;e="isConnected"in c.options.target?c.options.target.isConnected:document.body.contains(c.options.target),e||S()}})),m=(e,t={})=>{const{content:n,...o}=E(t),r=l.getDataFromTarget(e),i=Object.assign(r,o);return"none"!==n.type&&(i.content=n),!("none"===i.content.type&&!i.hotkey)&&(i.target=e,v(i),!0)},v=e=>{const t=E(e),n=l.getTooltip(t);if(c={options:t,element:n},(0,a.setTooltip)(n),(0,s.clearSchedule)(),!d)return l.hideTooltip(n),void(0,s.scheduleRender)((()=>w(n)),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:o}=e;"number"!=typeof o||isNaN(o)?w(n):(0,s.scheduleRender)((()=>w(n)),o)},f=e=>l.updateTooltipTextFromTarget(e);function g(e,t){if("sourceCapabilities"in e&&e.sourceCapabilities?.firesTouchEvents)return;const n=function(e,t,n){const o=[];for(;e&&e!==t;)e.classList&&e.classList.contains(n)&&o.push(e),e=e.parentElement||T(e.parentNode);return o}(e.target,e.currentTarget,"apply-common-tooltip");for(const o of n){if(e instanceof MouseEvent)if("buttons"in e){if(1&e.buttons)continue}else if(1===e.which)continue;const n=()=>m(o);if(n()){const e=e=>r(null,!0),r=(i,s=!1)=>{o.removeEventListener("common-tooltip-update",n),o.removeEventListener("mouseleave",r),o.removeEventListener("mousedown",r),document.removeEventListener("scroll",e,{capture:!0}),t&&(o.removeEventListener("blur",r),o.removeEventListener("active-descendant-blur",r)),u&&(u.destroy(),u=null),S(s)};o.addEventListener("common-tooltip-update",n),o.addEventListener("mouseleave",r),o.addEventListener("mousedown",r),document.addEventListener("scroll",e,{capture:!0}),t&&(o.addEventListener("blur",r),o.addEventListener("active-descendant-blur",r)),null===u&&(u=(0,i.createGroup)({desc:"Tooltip"}),u.add({desc:"Hide",hotkey:27,handler:r}));break}}}function p(e){o.mobiletouch&&(m(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",y),document.addEventListener("touchstart",y), window.addEventListener("orientationchange",y),window.screen.orientation?.addEventListener("change",y))}function y(){document.removeEventListener("scroll",y),document.removeEventListener("touchstart",y),window.removeEventListener("orientationchange",y),window.screen.orientation?.removeEventListener("change",y),S()}function _(){(0,a.empty)(),d=!1,c=null}const b=()=>{if((0,s.clearSchedule)(),(0,r.ensureNotNull)(h).disconnect(),!c||!d)return;const{element:e}=c;l.hideTooltip(e),_()},S=(e,t)=>{if((0,s.clearSchedule)(),(0,r.ensureNotNull)(h).disconnect(),!c)return;if(!e&&!d)return;const{element:n,options:o}=c,i=()=>{n.removeEventListener("mouseleave",i),l.hideTooltip(n),e?_():(0,s.scheduleRemove)((()=>{_()}),250),t?.()};o.tooltipHideDelay?(0,s.scheduleHide)((()=>{n.querySelector(":hover")?n.addEventListener("mouseleave",i):i()}),o.tooltipHideDelay):i()};function w(e){const{options:t}=(0,r.ensureNotNull)(c);if(l.setStyle(e,t),l.showTooltip(e),(0,r.ensureNotNull)(h).observe(document,{childList:!0,subtree:!0}),d=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",e),S()};document.addEventListener("mousemove",e),document.addEventListener("touchmove",e)}}function T(e){return e&&(e.nodeType===Node.ELEMENT_NODE?e:null)}function E(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:n,text:o,...r}=e;let i={type:"none"};return t&&(i={type:"element",data:t}),o&&(i={type:n?"html":"text",data:o}),{content:i,...r}}},941285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Spinner:()=>a,renderSpinnerTemplate:()=>i});n(140987);var o=n(760863),r=n(685023);function i(e=""){return`
`}const s=(0,o.parseHtmlElement)(i());class a{constructor(e){this._shown=!1,this._el=s.cloneNode(!0),this.setSize(r.spinnerSizeMap[e||r.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){return Object.keys(e).forEach((t=>{const n=e[t];void 0!==n&&this._el.style.setProperty(t,n)})),this}style(){return this._el.style}setSize(e){const t=void 0!==e?`tv-spinner--size_${e}`:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}},719240:(e,t,n)=>{"use strict";n.d(t,{DataModeIndicator:()=>l});var o=n(444372),r=(n(142492),n(429341),n(780792));const i={connecting:"tv-data-mode--connecting",delayed:"tv-data-mode--delayed",delayed_streaming:"tv-data-mode--delayed",endofday:"tv-data-mode--endofday",forbidden:"tv-data-mode--forbidden",realtime:"tv-data-mode--realtime",snapshot:"tv-data-mode--snapshot",loading:"tv-data-mode--loading",replay:"tv-data-mode--replay"};function s(){return{connecting:o.t(null,{context:"data_mode_connecting_letter" },n(167040)),delayed:o.t(null,{context:"data_mode_delayed_letter"},n(800919)),delayed_streaming:o.t(null,{context:"data_mode_delayed_streaming_letter"},n(933088)),endofday:o.t(null,{context:"data_mode_end_of_day_letter"},n(918400)),forbidden:o.t(null,{context:"data_mode_forbidden_letter"},n(514149)),realtime:o.t(null,{context:"data_mode_realtime_letter"},n(650940)),snapshot:o.t(null,{context:"data_mode_snapshot_letter"},n(756757)),loading:"",replay:o.t(null,{context:"data_mode_replay_letter"},n(745540))}}const a={streaming:"realtime"};class l extends r.AbstractIndicator{constructor(e){super(e),this._quoteSessionPrefix="data-mode-indicator",this._componentClass="tv-data-mode",this._init(e)}getLabel(){return!0===this._shortMode?this._shortLabelMap[this._value]||"":super.getLabel()}setMode(e,t){this.update({values:{update_mode:e,update_mode_seconds:t}})}hide(){this._el.classList.add("i-hidden")}show(){this._el.classList.remove("i-hidden")}getTooltipText(){let e="";const t=this.getValue();if(""===t)return e;switch(t){case"delayed":e=o.t(null,void 0,n(369539));break;case"delayed_streaming":e=o.t(null,void 0,n(167476));break;default:e=this._labelMap[t]||e}return["delayed","delayed_streaming"].includes(t)&&(e=e.format({number:String(Math.round(this._modeInterval/60))})),e}_init(e={}){const t=Object.assign({},{classMap:i,classSuffix:"",data:{values:{update_mode:"connecting"}},labelMap:{connecting:o.t(null,void 0,n(366891)),delayed:o.t(null,void 0,n(739688)),delayed_streaming:o.t(null,void 0,n(739688)),endofday:o.t(null,void 0,n(328304)),forbidden:o.t(null,void 0,n(909161)),realtime:o.t(null,void 0,n(303058)),snapshot:o.t(null,void 0,n(988408)),loading:"",replay:o.t(null,void 0,n(38822))},modeInterval:600,short:!1,shortLabelMap:s(),showTooltip:!0,tooltipType:"custom"},e);this._modeInterval=t.modeInterval||600,this._shortLabelMap=t.shortLabelMap||s(),super._init(t),this._render()}_getValueFromData(e){let t;return t=void 0!==e.values&&void 0!==e.values.update_mode?e.values.update_mode:this.getValue(),a[t]||t}_updateValue(e,t){void 0!==e.values&&void 0!==e.values.update_mode_seconds&&(this._modeInterval=e.values.update_mode_seconds),super._updateValue(e,t)}}},799786:(e,t,n)=>{"use strict";n.d(t,{Modifiers:()=>i.Modifiers,createGroup:()=>o.createGroup,keyboardPressedKeysState:()=>o.keyboardPressedKeysState,pressedKeys:()=>o.pressedKeys});var o=n(129592),r=n(764250),i=n(591800),s=n(345848);(0,o.registerWindow)(window),r.ActionGroup.setMatchedHotkeyHandler((e=>{(0,s.trackEvent)("Keyboard Shortcuts",(0,i.humanReadableHash)(e))}))},192784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{flushDelegate:()=>o});const o=new(n(547465).Delegate)},62802:(e,t,n)=>{"use strict";e=n.nmd(e),n(638456);var o=n(803912).fetch,r=n(482030).regExpEscape,i=n(226722).TVXWindowEvents,s=n(49437).TVLocalStorage,a=n(547465).Delegate,l=n(931924),d=n(125226).isFeatureEnabled,{flushDelegate:c}=n(192784),u=n(735566).getLogger("Lib.TVSettings"),h=["s.tradingview.com","betacdn.tradingview.com"],m=(l.enabled("use_localstorage_for_settings"),window.TVSettings=function(){ var e=!1,t=null,n=!1;function v(){return!(t||window.is_authenticated)}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(e){}if(e){var f={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},g=function(e,t,n){var o=f[e];return o??t},p=function(){};return{loaded:!1,loadedModel:!1,getValue:g,getJSON:g,getBool:g,getFloat:g,getInt:g,setValue:p,setJSON:p,remove:p,keys:function(){return Object.keys(f)},keysMask:function(){return[]},sync:p,onSync:{subscribe:function(){}}}}var y=12e4;"local"===window.environment&&(y=5e3);var _,b,S,w=TradingView.onWidget()?"tradingview-widget":"tradingview",T=w+".",E={},L=[],M=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^chart\.favoriteLibraryIndicators$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/,/^ChartDrawingToolbarWidget\.visible/];function N(e){return T+e}function $(e){return e.substring(T.length)}function A(e,t){var n=E[e];return n??t}function O(e,t,n){n=n||{};var o=""+t;return E[e]!==o&&(E[e]=o,D(e)),n.forceFlush&&!b&&(b=setTimeout((function(){b=void 0,C()}),10)),m}function k(e,t){return t=t||{},null!=E[e]&&(delete E[e],D(e)),t.forceFlush&&C(),m}function R(){_=void 0,L.length&&C()}function D(e){if(t)null==E[e]?t.removeValue(e):t.setValue(e,E[e]);else if(v())try{null==E[e]?s.removeItem(N(e)):s.setItem(N(e),E[e])}catch(e){}else L.push(e),_||(_=setTimeout(R,y));i.emit("settings",JSON.stringify({key:e,value:E[e]}))}function C(e){if(!n&&!S)if(d("disable_save_settings"))u.logWarn("Settings flashing has been skipped because of disable_save_settings featuretoggle");else if(!l.enabled("widget")&&!v()&&0!==L.length){var t=L;L=[];for(var r={},i=t.length;i--;){var s=t[i],a=E[s];void 0===a&&(a=null),r[s]=a}var c=new FormData;c.append("delta",JSON.stringify(r)),e&&navigator.sendBeacon?navigator.sendBeacon("/savesettings/",c):o("/savesettings/",{method:"POST",credentials:"include",body:c}).then((function(n){if(n.ok||(L=L.concat(t)),[429,503].includes(n.status)){var o=1e3*+n.headers.get("retry-after")||3e5;S=setTimeout((()=>{S=void 0,C(e)}),o)}})).catch((function(){L=L.concat(t)}))}}function F(){return Object.keys(E)}function I(e){for(var t=0;t{C()})),{loaded:!1,loadedModel:!1,getValue:A,getJSON:function(e,t){var n=A(e,void 0);if(null==n)return t;try{return JSON.parse(n)}catch(n){return k(e),t}},getBool:function(e,t){var n=A(e);return null==n?t:!(!n||"false"===n||0==+n)},getFloat:function(e,t,n){var o=A(e,void 0);if(null==o)return t;var r=parseFloat(o);if(!isFinite(r))throw new TypeError('"'+o+'" is not float (key: "'+e+'")');return r},getInt:function(e,t,n){var o=A(e,void 0);if(null==o)return t;var r=parseInt(o,10);if(!isFinite(r))throw new TypeError('"'+o+'" is not int (key: "'+e+'")');return r},setValue:O,setJSON:function(e,t,n){return O(e,JSON.stringify(t),n),m},remove:k,keys:F,keysMask:function(e,t){for(var n=F(),o=[],i=(e=new RegExp("^"+r(e).replace(/\\\*\\\*/gi,".+").replace(/\\\*/gi,"[^.]+")+"$","gi"),n.length-1);i>=0;i--)e.test(n[i])&&o.push(n[i]),e.lastIndex=0;return o},sync:function(e){null!==e?(t?P(t.initialSettings||{}):v()?(function(){if(TradingView.onWidget()&&h.includes(window.location.host))for(var e="tradingview.",t=s.length;t--;){var n=s.key(t);if(0===n.indexOf(e)){var o=n.replace(e,w+".");s.setItem(o,s.getItem(n)),s.removeItem(n)}}}(),function(){E={};for(var e=!l.enabled("save_chart_properties_to_local_storage"),t=s.length;t--;){var n=s.key(t);if(n&&V(n)){var o=n.substring(T.length);e&&!I(o)||(E[o]=s.getItem(n))}}}()):P(e||{}),x.fire()):n=!0},onSync:x,setSettingsAdapter:function(e){t=e}}}());setTimeout((function(){n.e(30362).then(n.bind(n,276141)).then((e=>{e.clearOldSettings()}))}),3e4),e&&e.exports&&(e.exports=m)},626333:(e,t,n)=>{"use strict";function o(e,t=window){const n="theme-"+e,o=t.document.documentElement.classList;for(const e of Array.from(o))e.startsWith("theme-")&&e!==n&&o.remove(e);o.add(n)}n.d(t,{applyTheme:()=>o})},331633:(e,t,n)=>{"use strict";n.d(t,{setTheme:()=>s,watchedTheme:()=>i});var o=n(820028),r=n(626333);const i=new o.WatchedValue;function s(e){i.setValue(e)}i.subscribe((e=>{(0,r.applyTheme)(e,window)}))},345848:(e,t,n)=>{"use strict";n.d(t,{trackEvent:()=>s});n(251954);var o=n(931924);const r=(0,n(735566).getLogger)("Common.TrackEvent");let i=!1;const s=(e,t,n)=>{if(i)return;let s=(e?e+":":"")+t;n&&(s+=" "+n),r.logNormal(s),o.enabled("widget")||!window._UNIT_TESTS&&window.gtag&&window.gtag("event",t,{event_category:e,event_label:n})};"undefined"!=typeof window&&(window.TradingView=window.TradingView||{},window.TradingView.trackEvent=s)},226722:(e,t,n)=>{"use strict";n.d(t,{TVXWindowEvents:()=>s});n(142492);var o=n(735566),r=n(49437);const i=(0,o.getLogger)("XWindowEvents");var s;!function(e){const t="tvxwevents.",n={};let o;window.BroadcastChannel?(o=new BroadcastChannel("tvxwevents"),o.addEventListener("message",(function(e){const{data:{event:t,value:o}}=e;n[t]&&n[t].forEach((e=>{e(o)}))})),function(){const e=[],n=performance.now();for(let n=0;n{t(e.newValue)}));r.TVLocalStorage.removeItem(i)})),e.on=function(e,t){n[e]||(n[e]=[]),n[e].push(t)},e.off=function(e,t){if(!n[e])return;const o=n[e].indexOf(t);-1!==o&&(1===n[e].length?delete n[e]:n[e].splice(o,1))},e.emit=function(e,n=Date.now()){try{o?o.postMessage({event:e,value:n}):r.TVLocalStorage.setItem(t+e,n.toString())}catch(e){i.logError(e.message)}}}(s||(s={}))},68777:(e,t,n)=>{"use strict";n.d(t,{accumulate:()=>a,combine:()=>s,combineWithFilteredUpdate:()=>i});var o=n(820028);function r(e,t,...n){let r=null;const i=(...t)=>e(...t.map((e=>e.value())),r?.value()),s=r=new o.WatchedValue(i(...n)),a=()=>{t(...n.map((e=>e.value())))&&s.setValue(i(...n))},l=n.map((e=>e.spawn()));for(const e of l)e.subscribe(a);return s.readonly().spawn((()=>{l.forEach((e=>e.destroy())),n.forEach((e=>e.release()))}))}function i(e,t,...n){return r(e,t,...n)}function s(e,...t){return r(e,(()=>!0),...t)}function a(e,t,n){const r=(t,n)=>{const o=t.map((e=>e.value()));return e(o,n)},i=new o.WatchedValue(r(t.value(),n?.value())),s=t.spawn();let a=[];const l=n?.spawn()??new o.WatchedValue(void 0),d=()=>{i.setValue(r(a,l.value()))},c=e=>{a.forEach((e=>e.destroy())),a=e.map((e=>e.spawn())),a.forEach((e=>{e.subscribe(d)})),d()};c(s.value()),s.subscribe(c),l.subscribe(d);return i.readonly().spawn((()=>{a.forEach((e=>e.destroy())),s.destroy(),l.destroy(),t.release()}))}},862150:(e,t,n)=>{"use strict";function o(e){const t=Object.create(e);return t.release=()=>{},t.ownership=()=>t,t}function r(e){const t=e;return t.release=()=>t.destroy(),t.ownership=()=>t,t}n.d(t,{ownership:()=>r,weakReference:()=>o})},608571:(e,t,n)=>{"use strict";n.d(t,{availableDateFormats:()=>_,dateFormatFunctions:()=>p,defaultDateFormat:()=>b,getDateFormatWithWeekday:()=>y});var o=n(444372),r=n(39654),i=n(909456);const s={1:()=>o.t(null,void 0,n(562310)),2:()=>o.t(null,void 0,n(302507)),3:()=>o.t(null,void 0,n(92767)),4:()=>o.t(null,void 0,n(227072)),5:()=>o.t(null,{context:"short"},n(13132)),6:()=>o.t(null,void 0,n(800429)),7:()=>o.t(null,void 0,n(853786)),8:()=>o.t(null,void 0,n(546450)),9:()=>o.t(null,void 0,n(806816)),10:()=>o.t(null,void 0,n(912179)),11:()=>o.t(null,void 0,n(526899)),12:()=>o.t(null,void 0,n(532084))},a={1:()=>o.t(null,void 0,n(914568)),2:()=>o.t(null,void 0,n(913534)),3:()=>o.t(null,void 0,n(914530)),4:()=>o.t(null,void 0,n(903762))},l=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,d=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),c=e=>e.toLocaleDateString(window.language?(0, r.getIsoLanguageCodeFromLanguage)(window.language):void 0,{weekday:"short",timeZone:"UTC"}),u=(e,t)=>a[((e,t)=>Math.floor((l(e,t)-1)/3)+1)(e,t)](),h=(e,t)=>(0,i.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),m=(e,t)=>s[l(e,t)](),v=(e,t)=>(0,i.numberToStringWithLeadingZero)(l(e,t),2),f=(e,t)=>(0,i.numberToStringWithLeadingZero)(d(e,t)%100,2),g=(e,t)=>(0,i.numberToStringWithLeadingZero)(d(e,t),4),p={"qq 'yy":(e,t)=>`${u(e,t)} '${f(e,t)}`,"qq yyyy":(e,t)=>`${u(e,t)} ${g(e,t)}`,"dd MMM 'yy":(e,t)=>`${h(e,t)} ${m(e,t)} '${f(e,t)}`,"MMM 'yy":(e,t)=>`${m(e,t)} '${f(e,t)}`,"MMM dd, yyyy":(e,t)=>`${m(e,t)} ${h(e,t)}, ${g(e,t)}`,"MMM yyyy":(e,t)=>`${m(e,t)} ${g(e,t)}`,"MMM dd":(e,t)=>`${m(e,t)} ${h(e,t)}`,"dd MMM":(e,t)=>`${h(e,t)} ${m(e,t)}`,"yyyy-MM-dd":(e,t)=>`${g(e,t)}-${v(e,t)}-${h(e,t)}`,"yy-MM-dd":(e,t)=>`${f(e,t)}-${v(e,t)}-${h(e,t)}`,"yy/MM/dd":(e,t)=>`${f(e,t)}/${v(e,t)}/${h(e,t)}`,"yyyy/MM/dd":(e,t)=>`${g(e,t)}/${v(e,t)}/${h(e,t)}`,"dd-MM-yyyy":(e,t)=>`${h(e,t)}-${v(e,t)}-${g(e,t)}`,"dd-MM-yy":(e,t)=>`${h(e,t)}-${v(e,t)}-${f(e,t)}`,"dd/MM/yy":(e,t)=>`${h(e,t)}/${v(e,t)}/${f(e,t)}`,"dd/MM/yyyy":(e,t)=>`${h(e,t)}/${v(e,t)}/${g(e,t)}`,"MM/dd/yy":(e,t)=>`${v(e,t)}/${h(e,t)}/${f(e,t)}`,"MM/dd/yyyy":(e,t)=>`${v(e,t)}/${h(e,t)}/${g(e,t)}`};function y(e){return"ja"===window.language?(t,n)=>`${p[e](t,n)} (${c(t)})`:(t,n)=>`${c(t)} ${p[e](t,n)}`}const _=Object.keys(p),b=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},51196:(e,t,n)=>{"use strict";n.d(t,{PLACE_HOLDER:()=>s,VolumeFormatter:()=>d});var o=n(444372),r=n(808708),i=n(461188);const s="---",a=[{value:3,letter:"K"},{value:6,letter:"M"},{value:9,letter:"B"},{value:12,letter:"T"}];function l(e,t){const n=e-t;return a.find((e=>e.value>=n))??a[a.length-1]}class d{constructor(e={}){this.type="volume";const{precision:t=0,minPrecision:n=0,dimensionPrecision:o=2,dimensionMinPrecision:i=0,significantDigits:s=3,ignoreLocaleNumberFormat:a,removeSpaceBeforeDimension:l}=e;this._precision=t,this._formatter=new r.NumericFormatter({ignoreLocaleNumberFormat:a,precision:this._precision,minPrecision:n}),this._dimensionPrecision=o,this._dimensionFormatter=new r.NumericFormatter({ignoreLocaleNumberFormat:a,precision:this._dimensionPrecision,minPrecision:i}),this._significantDigits=s,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,i.isNumber)(e))return s;if(Math.abs(e)>=1e100)return o.t(null,void 0,n(696935));let r="";Math.abs(e)<1&&(e=+e.toFixed(this._precision)),e<0?r="−":e>0&&t?.signPositive&&(r="+"),e=Math.abs(e);const a=!!(t?.ignoreLocaleNumberFormat??this._options.ignoreLocaleNumberFormat);let d,c,u=Math.floor(Math.log10(e))+1;if(u<=this._significantDigits&&(e=+e.toFixed(this._precision),u=Math.floor(Math.log10(e))+1),u<=this._significantDigits)d=this._formatNumber(e,a,this._formatter);else{let t=l(u,this._significantDigits);const n=Math.pow(10,t.value) ;e=+(e/n).toFixed(this._dimensionPrecision)*n,t=l(Math.floor(Math.log10(e))+1,this._significantDigits),d=this._formatNumber(e/Math.pow(10,t.value),a,this._dimensionFormatter),c=t.letter}return c?`${r}${d}${this._spaceBeforeDimension}${c}`:`${r}${d}`}parse(e,t){if("---"===e)return{error:"not a number",res:!1,value:NaN};const n={K:1e3,M:1e6,B:1e9,T:1e12},o=(e=e.replace("−","-")).slice(-1);if(n.hasOwnProperty(o)){const r=this._formatter.parse(e.slice(0,-1).trim(),t),s=r.res?r.value:NaN;return(0,i.isNumber)(s)?{res:!0,value:s*n[o]}:{error:"not a number",res:!1,value:NaN}}{const n=this._formatter.parse(e.trim(),t),o=n.res?n.value:NaN;return(0,i.isNumber)(o)?{res:!0,value:o}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new d(e)}_formatNumber(e,t,n){if(this._fractionalValues&&0!==e){const t=14-Math.ceil(Math.log10(e)),n=Math.pow(10,t);e=Math.round(e*n)/n}return n.format(e,{ignoreLocaleNumberFormat:t})}}},781567:(e,t,n)=>{"use strict";n.d(t,{createPrimitiveProperty:()=>r});var o=n(905520);function r(e){return new o.Property(e)}},421566:(e,t,n)=>{"use strict";n.d(t,{PropertyBase:()=>i});var o=n(650151),r=n(547465);class i{constructor(){this._listeners=new r.Delegate,this._muteChildChanges=!1,this._owner=null,this._name=""}nameInOwner(){return this._name}setNameInOwner(e){this._name=e}owner(){return this._owner}setOwner(e){this._owner=e}pathToRoot(){const e=this._owner?.pathToRoot();return e?`${e}.${this._name}`:this._name}pathToRootProperty(){if(!this._owner)return"";const e=this._owner.pathToRootProperty?.();return e?`${e}.${this._name}`:this._name}removeProperty(e){(0,o.assert)(!1,`Trying to call "removeProperty" on property ${this.pathToRoot()}`)}addChild(e,t){(0,o.assert)(!1,`Trying to call "addChild" on property ${this.pathToRoot()}`)}hasChild(e){return!1}childCount(){return 0}childNames(){return[]}childs(){(0,o.assert)(!1,`Trying to call "childs" on property ${this.pathToRoot()}`)}state(e,t){return this.value()}merge(e,t){(0,o.assert)(!1,`Trying to call "merge" on property ${this.pathToRoot()}`)}mergeAndFire(e){(0,o.assert)(!1,`Trying to call "mergeAndFire" on property ${this.pathToRoot()}`)}child(e){if(this.hasChild(e))return this.childs()[e]}muteChildChanges(e){this._muteChildChanges=e}fireChanged(){this._listeners.fire(this,this.pathToRootProperty())}listeners(){return this._listeners}subscribe(e,t){this.listeners().subscribe(e,t,!1)}unsubscribe(e,t){this.listeners().unsubscribe(e,t)}unsubscribeAll(e){this.listeners().unsubscribeAll(e)}}},690370:(e,t,n)=>{"use strict";n.d(t,{DataTypes:()=>o,createPropertySchema:()=>m,dataType:()=>c,extractStateWithSchema:()=>v,isArraySchema:()=>h,validateSchema:()=>u});var o,r=n(569708),i=n(283873),s=n(683350),a=n(456052),l=n(182433),d=n(936714);function c(e){return(0,r.default)(e)?o.NUMBER:(0,i.default)(e)?o.STRING:(0,s.default)(e)?o.BOOLEAN:(0,a.default)(e)?o.ARRAY:null===e?o.UNKNOWN:"object"==typeof e?o.OBJECT:o.UNKNOWN}function u(e,t){const n=c(e);switch(t.type){case o.ARRAY: return n===o.ARRAY&&e.every((e=>u(e,t.subschema)));case o.OBJECT:{if(n!==o.OBJECT)return!1;const r=Object.entries(t.subschema);for(const t of r)if(!u(e[t[0]],t[1]))return!1;return!0}default:return n===t.type||t.type===o.UNKNOWN}}function h(e){return e.type===o.ARRAY}function m(e,t){let n;const r=c(e);switch(r){case o.NUMBER:case o.STRING:case o.BOOLEAN:n={type:r,saveFlags:t};break;case o.ARRAY:n={type:o.ARRAY,saveFlags:t,subschema:m(e[0],t)};break;case o.OBJECT:{const r={};for(const[n,o]of Object.entries(e))r[n]=m(o,t);n={type:o.OBJECT,saveFlags:t,subschema:r};break}default:n={type:o.UNKNOWN,saveFlags:t}}return n}function v(e,t,n){if(!function(e){return e.type===o.OBJECT}(t)||!(0,l.default)(e))return e;const r=Object.keys(e);for(const o of r){const r=t.subschema[o];void 0===t.saveFlags||r||(0,d.default)(e,o);const i=r?.saveFlags;void 0===i||i&n||(0,d.default)(e,o),r&&v(e[o],r,n)}return e}!function(e){e.STRING="string",e.NUMBER="number",e.BOOLEAN="boolean",e.OBJECT="object",e.ARRAY="array",e.UNKNOWN="unknown"}(o||(o={}))},870855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SERIES_STATUS_TEXT:()=>b,STATUS_CALCULATION_ERROR:()=>g,STATUS_DELAYED:()=>u,STATUS_DELAYED_STREAMING:()=>h,STATUS_EOD:()=>d,STATUS_ERROR:()=>f,STATUS_INVALID_SYMBOL:()=>a,STATUS_LOADING:()=>i,STATUS_NO_BARS:()=>m,STATUS_OFFLINE:()=>o,STATUS_PULSE:()=>c,STATUS_READY:()=>s,STATUS_REPLAY:()=>v,STATUS_RESOLVING:()=>r,STATUS_SNAPSHOT:()=>l,STATUS_UNSUPPORTED_RESOLUTION:()=>p,STYLE_AREA:()=>E,STYLE_BARS:()=>S,STYLE_BASELINE:()=>k,STYLE_CANDLES:()=>w,STYLE_COLUMNS:()=>C,STYLE_HEIKEN_ASHI:()=>A,STYLE_HILO:()=>D,STYLE_HLC_AREA:()=>V,STYLE_HOLLOW_CANDLES:()=>O,STYLE_KAGI:()=>M,STYLE_LINE:()=>T,STYLE_LINE_WITH_MARKERS:()=>F,STYLE_PB:()=>$,STYLE_PNF:()=>N,STYLE_RANGE:()=>R,STYLE_RENKO:()=>L,STYLE_SHORT_NAMES:()=>P,STYLE_STEPLINE:()=>I,SYMBOL_STRING_DATA:()=>x,chartStylesWithAttachedStudies:()=>U,seriesLoadingStatuses:()=>_,seriesReadyStatuses:()=>y});const o=0,r=1,i=2,s=3,a=4,l=5,d=6,c=7,u=8,h=9,m=10,v=11,f=12,g=13,p=14,y=new Set([3,6,7,8,9,11]),_=new Set([1,2]),b={[o]:"connecting",[r]:"loading",[i]:"loading",[s]:"realtime",[a]:"invalid",[l]:"snapshot",[d]:"endofday",[c]:"endofday",[u]:"delayed",[h]:"delayed_streaming",[m]:"forbidden",[v]:"replay",[f]:"error",[g]:"calculation_error",[p]:"unsupported_resolution"},S=0,w=1,T=2,E=3,L=4,M=5,N=6,$=7,A=8,O=9,k=10,R=11,D=12,C=13,F=14,I=15,V=16,P={0:"bar",1:"candle",9:"hollowCandle",2:"line",14:"lineWithMarkers",15:"stepline",3:"area",16:"hlcArea",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo",13:"column",17:"volFootprint",18:"tpo",19:"volCandles",20:"svp"},x={4:{type:"BarSetRenko@tv-prostudies",basicStudyVersion:73},7:{type:"BarSetPriceBreak@tv-prostudies",basicStudyVersion:34},5:{type:"BarSetKagi@tv-prostudies",basicStudyVersion:73},6:{type:"BarSetPnF@tv-prostudies",basicStudyVersion:73},8:{type:"BarSetHeikenAshi@tv-basicstudies",basicStudyVersion:60},11:{type:"BarSetRange@tv-basicstudies",basicStudyVersion:72},17:{type:"Footprint@tv-volumebyprice",basicStudyVersion:104},18:{ type:"TPOPeriodic@tv-volumebyprice",basicStudyVersion:104},20:{type:"VbPSessions@tv-volumebyprice",basicStudyVersion:126}},U=[17,18,20]},482030:(e,t,n)=>{"use strict";function o(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}n.d(t,{regExpEscape:()=>o})}}]);