"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8107],{64531:(e,t)=>{var i,n=!("undefined"==typeof window||!window.document||!window.document.createElement);function s(){if(i)return i;if(!n||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),i="reverse",e.scrollLeft>0?i="default":(e.scrollLeft=1,0===e.scrollLeft&&(i="negative")),document.body.removeChild(e),i}t.detectScrollType=s,t.getNormalizedScrollLeft=function(e,t){var i=e.scrollLeft;if("rtl"!==t)return i;var n=s();if("indeterminate"===n)return Number.NaN;switch(n){case"negative":return e.scrollWidth-e.clientWidth+i;case"reverse":return e.scrollWidth-e.clientWidth-i}return i}},229534:(e,t,i)=>{async function n(e){return(await Promise.all([i.e(69749),i.e(5657),i.e(14260),i.e(8954),i.e(88430),i.e(85686),i.e(60678),i.e(45340),i.e(75704),i.e(25977),i.e(5091),i.e(47484),i.e(74823),i.e(37757)]).then(i.bind(i,173403))).createDialog(e)}function s(e){n(e).then((e=>e.open()))}i.d(t,{createErrorDialog:()=>n,showErrorDialog:()=>s})},251954:(e,t,i)=>{i.r(t),i.d(t,{emit:()=>h,emitOnce:()=>p,on:()=>u,subscribe:()=>c,subscribeToAll:()=>d,unsubscribe:()=>a,unsubscribeAll:()=>l});var n=i(707957);const s={},o=[],r={};function a(e,t,i){s[e].unsubscribe(i,t)}function l(e,t){s[e].unsubscribeAll(t)}function u(e,t,i){c(e,t,i)}function c(e,t,i,o){s.hasOwnProperty(e)||(s[e]=new n.Delegate),r[e]?t.call(i):s[e].subscribe(i,t,o)}function d(e){o.push(e)}function h(e,...t){const i=[e].concat(t);o.forEach((e=>{e.apply(null,i)})),s.hasOwnProperty(e)&&s[e].fire.apply(s[e],t)}function p(e){r[e]&&console.warn(`Something went wrong: emitOnce called multiple times with same event (${e})`),r[e]=!0,h.apply(null,arguments)}},588948:(e,t,i)=>{i.d(t,{deleteField:()=>u,getFreshInitData:()=>l,getInitData:()=>a,updateInitData:()=>r});var n=i(650151);const s=(0,i(201089).getLogger)("Common.InitData"),o=window.initData||{};function r(){window.initData&&window.initData!==o&&(Object.assign(o,window.initData),window.initData=o);const e=document.querySelectorAll('script[type="application/prs.init-data+json"]');for(let t=0;t{i.r(t),i.d(t,{CheckMobile:()=>h,appVersion:()=>d,checkPageType:()=>v,desktopAppVersion:()=>c,isChrome:()=>g,isDesktopApp:()=>l,isEdge:()=>_,isFF:()=>f,isLinux:()=>a,isMac:()=>o,isSafari:()=>y,isSymphonyEmbed:()=>u,isWindows:()=>r,onGoPro:()=>b,onMainPage:()=>S,onWidget:()=>p,supportTouch:()=>m});var n=i(167175);const s=window.TradingView=window.TradingView||{};function o(){ return n.isMac}function r(){return n.isWindows}function a(){return n.isLinux}function l(){return/TVDesktop/i.test(navigator.userAgent)}function u(){return s.isSymphony||!1}function c(){const e=navigator.userAgent.match(/TVDesktop\/([^\s]+)/);return e&&e[1]}function d(){const e=navigator.userAgent.match(/TradingView\/([^\s]+)/);return e&&e[1]}const h={Android:()=>n.isAndroid,BlackBerry:()=>n.isBlackBerry,iOS:()=>n.isIOS,Opera:()=>n.isOperaMini,isIPad:()=>n.isIPad,any:()=>n.isAnyMobile};function p(){const e=["^widgetembed/?$","^cmewidgetembed/?$","^([0-9a-zA-Z-]+)/widgetembed/?$","^([0-9a-zA-Z-]+)/widgetstatic/?$","^([0-9a-zA-Z-]+)?/?mediumwidgetembed/?$","^twitter-chart/?$","^embed/([0-9a-zA-Z]{8})/?$","^widgetpopup/?$","^extension/?$","^idea-popup/?$","^hotlistswidgetembed/?$","^([0-9a-zA-Z-]+)/hotlistswidgetembed/?$","^marketoverviewwidgetembed/?$","^([0-9a-zA-Z-]+)/marketoverviewwidgetembed/?$","^eventswidgetembed/?$","^tickerswidgetembed/?$","^forexcrossrateswidgetembed/?$","^forexheatmapwidgetembed/?$","^marketquoteswidgetembed/?$","^screenerwidget/?$","^cryptomktscreenerwidget/?$","^([0-9a-zA-Z-]+)/cryptomktscreenerwidget/?$","^([0-9a-zA-Z-]+)/marketquoteswidgetembed/?$","^technical-analysis-widget-embed/$","^singlequotewidgetembed/?$","^([0-9a-zA-Z-]+)/singlequotewidgetembed/?$","^embed-widget/([0-9a-zA-Z-]+)/(([0-9a-zA-Z-]+)/)?$"],t=window.location.pathname.replace(/^\//,"");let i;for(let n=e.length-1;n>=0;n--)if(i=new RegExp(e[n]),i.test(t))return!0;return!1}function m(){return n.mobiletouch||n.touch||n.isAnyMobile}function v(e){return new URLSearchParams(window.location.search).get("page_type")===e}s.isMobile=h,s.onWidget=p;const g=n.isChrome,f=n.isFF,_=n.isEdge,y=n.isSafari;function b(){return"/pricing/"===window.location.pathname}function S(){return"/"===window.location.pathname}},971417:(e,t,i)=>{function n(e){return e===s(e)}function s(e){const t=e.indexOf("$"),i=e.indexOf("@");return t<0&&i>=0?null:e.substring(Math.max(t+1,0),i>=0?i:e.length)}function o(e){return e.startsWith("PUB;")}function r(e){return e.startsWith("USER;")}function a(e){return e.startsWith("STD;")}function l(e){return e.includes("Candlestick%1Pattern%1")}function u(e){return e.startsWith("EDGR_")}i.d(t,{extractPineId:()=>s,isCandleStickId:()=>l,isCustomPineId:()=>r,isEdgrPineId:()=>u,isPineIdString:()=>n,isPublishedPineId:()=>o,isStandardPineId:()=>a})},754105:(e,t,i)=>{function n(e){return"scriptTitle"in e&&"modified"in e}function s(e){return"userId"in e&&"scriptAccess"in e}function o(e){return"strategy"===e.kind}function r(e){return"library"===e.kind}i.d(t,{isPubPineInfo:()=>s,isSavedPineInfo:()=>n,isScriptLibrary:()=>r,isScriptStrategy:()=>o})},520533:(e,t,i)=>{i.d(t,{deletePine:()=>b,getPineFacadeUrl:()=>r.getPineFacadeUrl,getPineSourceCode:()=>f,isAuthToGetPineSourceCode:()=>g,isPubPineInfo:()=>c.isPubPineInfo,isSavedPineInfo:()=>c.isSavedPineInfo,isScriptLibrary:()=>c.isScriptLibrary,isScriptStrategy:()=>c.isScriptStrategy,requestBuiltinScripts:()=>y,requestUserScripts:()=>_,translateScriptAsync2:()=>v}) ;var n=i(345848),s=i(194582),o=i(427233),r=i(881992),a=i(971417),l=(i(791488),i(197677)),u=i(603774),c=i(754105);i(129586);const d=(0,s.getLogger)("Chart.Study.Versioning"),h=new o.RequestCache,p=new o.RequestCache,m=new o.SingleRequestCache;async function v(e,t){(0,n.trackEvent)("Pine","ScriptLib.translateScript");const i={};(0,a.isCustomPineId)(e)||(i.user_name=(0,r.getUserName)());try{const n=await(0,l.pineFacadeFetch)({urlPath:`translate/${e}/${t}`,urlParams:i}),s=(0,r.handleTranslateResult)(n);(0,u.logPineMetaInfoIssues)("Pine.translateScriptAsync2",s.metaInfo);return+t<0&&(h.delete(e),p.delete(e),m.clear(),(0,r.onLegacyScriptProceed)(s.metaInfo)),s}catch(e){throw e}}function g(e,t){const i=h.get(e);if(i)return i;(0,n.trackEvent)("Pine","ScriptLib.isAuthToGetPineSourceCode");const s=(0,l.pineFacadeFetch)({urlPath:`is_auth_to_get/${e}/${t}`});return h.set(e,s),s}function f(e,t,i){return(0,n.trackEvent)("Pine","ScriptLib.getPineSourceCode"),(0,l.pineFacadeFetch)({urlPath:`get/${e}/${t}`,urlParams:{no_4xx:i}})}function _(){if((0,n.trackEvent)("Pine","ScriptLib.requestUserScripts"),!window.is_authenticated)return Promise.resolve([]);const e=m.get();if(e)return e;const t=(0,l.pineFacadeFetch)({urlPath:"list",urlParams:{filter:"saved"}});return m.reset(t),t}async function y(){(0,n.trackEvent)("Pine","ScriptLib.requestBuiltinScripts");try{d.logNormal("Request built-in scripts");const e=await(0,l.pineFacadeFetch)({urlPath:"list",urlParams:{filter:"standard"},withoutCredentials:!0});return d.logNormal("Request built-in scripts finished"),e}catch(e){throw d.logWarn("Request built-in scripts finished with fail"),e}}function b(e){return(0,n.trackEvent)("Pine","ScriptLib.deletePine"),(0,l.pineFacadeFetch)({method:"POST",urlPath:`delete/${e}`,urlParams:{user_name:(0,r.getUserName)()}}).then((t=>(h.delete(e),p.delete(e),m.clear(),(0,r.onDeleteScript)(e),t)))}(0,r.applyGlobalScriptListeners)(h,p,m)},881992:(e,t,i)=>{i.d(t,{applyGlobalScriptListeners:()=>p,getPineFacadeUrl:()=>l,getUserName:()=>a,handleTranslateResult:()=>c,onDeleteScript:()=>d,onLegacyScriptProceed:()=>h});var n=i(251954),s=i(226722),o=i(791488),r=i(129586);function a(){return window.user&&window.user.username}function l(){const e=new URL(window.PINE_URL,location.origin);return e.pathname.endsWith("/")||(e.pathname+="/"),e.href}function u(e){if("object"==typeof e.reason)return e.reason;if(e.reason2)return e.reason2;const t={errors:[],warnings:[]};if((0,r.hasMetaInfo)(e.result)){const i=e.result&&e.result.metaInfo;i&&void 0!==i.warnings&&i.warnings.forEach((e=>t.warnings.push({message:e})))}if(e.reason){(Array.isArray(e.reason)?e.reason:e.reason.split("\n")).forEach((e=>{const i=e.match(o.RE_MESSAGE_LINE_WITH_DIGITS),n=i&&i.length&&Number(i[1]),s={message:e};if("number"==typeof n){s.start={line:n,column:0};const e=s.message.split(": ");e.shift(),s.message=e.join(": ")}t.errors.push(s)}))}return t}function c(e){if(e.success)return{success:e.success,metaInfo:e.result.metaInfo,compileErrors:u(e)};if(e.error)throw e.error;throw u(e)}function d(e){const t={ scriptIdPart:e};s.TVXWindowEvents.emit(o.TV_SCRIPT_DELETED,JSON.stringify(t)),n.emit(o.TV_SCRIPT_DELETED,t),setTimeout((()=>{var e;null===(e=window.scriptUpdater)||void 0===e||e.onTVScriptDeleted({...t,isSelfCall:!0})}))}function h(e){const t={scriptMetaInfo:e};s.TVXWindowEvents.emit(o.TV_SCRIPT_LEGACY_PINE_PROCESSED,JSON.stringify(t)),n.emit(o.TV_SCRIPT_LEGACY_PINE_PROCESSED,t),setTimeout((()=>{var e;null===(e=window.scriptUpdater)||void 0===e||e.onTVScriptLegacyPineProcessed(t)}))}function p(e,t,i){s.TVXWindowEvents.on(o.TV_SCRIPT_MODIFICATION_ACTIVE,(e=>{var t;null===(t=window.scriptUpdater)||void 0===t||t.onModifyScriptActiveChanged(JSON.parse(e))})),s.TVXWindowEvents.on(o.TV_SCRIPT_MODIFIED,(e=>{var t;i.clear(),null===(t=window.scriptUpdater)||void 0===t||t.onTVScriptModified(JSON.parse(e))})),s.TVXWindowEvents.on(o.TV_SCRIPT_DELETED,(n=>{var s;e.clear(),t.clear(),i.clear(),null===(s=window.scriptUpdater)||void 0===s||s.onTVScriptDeleted(JSON.parse(n))})),s.TVXWindowEvents.on(o.TV_SCRIPT_RENAMED,(e=>{var t;i.clear(),null===(t=window.scriptUpdater)||void 0===t||t.onTVScriptRenamed(JSON.parse(e))})),s.TVXWindowEvents.on(o.TV_SCRIPT_LEGACY_PINE_PROCESSED,(e=>{var t;i.clear(),null===(t=window.scriptUpdater)||void 0===t||t.onTVScriptLegacyPineProcessed(JSON.parse(e))}))}},564894:(e,t,i)=>{i.d(t,{hasService:()=>l,registerService:()=>r,service:()=>u,unregisterService:()=>a,waitServiceRegistered:()=>c});var n=i(268222);const s={},o=new Map;function r(e,t){if(l(e))throw new Error("Service already registered");s[e.id]=t;const i=o.get(e.id);void 0!==i&&(o.delete(e.id),i.resolve(t))}function a(e){if(!l(e))throw new Error("Service not found");s[e.id]=void 0}function l(e){return void 0!==s[e.id]}function u(e){const t=s[e.id];if(void 0===t)throw new Error("ServiceLocator: Service "+e.id+" not found");return t}function c(e){if(l(e))return Promise.resolve(u(e));let t=o.get(e.id);return void 0===t&&(t=(0,n.createDeferredPromise)(),o.set(e.id,t)),t.promise}},331633:(e,t,i)=>{i.d(t,{setTheme:()=>r,watchedTheme:()=>o});var n=i(401580),s=i(626333);const o=new n.WatchedValue;function r(e){o.setValue(e)}o.subscribe((e=>{(0,s.applyTheme)(e,window)}))},768261:(e,t,i)=>{var n;i.d(t,{CompareOption:()=>n}),function(e){e[e.SamePctScale=0]="SamePctScale",e[e.NewPriceScale=1]="NewPriceScale",e[e.NewPane=2]="NewPane",e[e.SameScale=3]="SameScale"}(n||(n={}))},261309:(e,t,i)=>{i.d(t,{SYMBOL_LIST_REPOSITORY_BACKEND_SERVICE:()=>n});const n={id:"SymbolListRepositoryBackend"}},440498:(e,t,i)=>{i.d(t,{DELETED_SYMBOLS_LIST_ID:()=>n,isDeletedSymbolsList:()=>s});i(49437),i(738600);const n="deleted_symbols_list_id",s=e=>e===n},738600:(e,t,i)=>{i.d(t,{logger:()=>n});const n=(0,i(201089).getLogger)("Platform.Model.Watchlist")},50959:(e,t,i)=>{e.exports=i(695257)},876332:(e,t,i)=>{i.r(t),i.d(t,{destroyQuoteSessions:()=>u,getQuoteSessionInstance:()=>r,getQuoteSessionNoEnsure:()=>l,setQuoteSessionInstance:()=>a});var n=i(11228),s=i.n(n);const o={};function r(e="full"){return o[e]||a(e,new(s())(e)),o[e]}function a(e="full",t){o[e]=t}function l(e="full"){ return o[e]}function u(){for(const e in o)if(o.hasOwnProperty(e)){const t=o[e];void 0!==t&&t.destroy(),delete o[e]}}},66732:(e,t,i)=>{i.d(t,{combine:()=>r,combineWithFilteredUpdate:()=>o});var n=i(401580);function s(e,t,...i){let s=null;const o=(...t)=>e(...t.map((e=>e.value())),null==s?void 0:s.value()),r=s=new n.WatchedValue(o(...i)),a=()=>{t(...i.map((e=>e.value())))&&r.setValue(o(...i))},l=i.map((e=>e.spawn()));for(const e of l)e.subscribe(a);return r.readonly().spawn((()=>{l.forEach((e=>e.destroy())),i.forEach((e=>e.release()))}))}function o(e,t,...i){return s(e,t,...i)}function r(e,...t){return s(e,(()=>!0),...t)}},244842:(e,t,i)=>{var n;i.r(t),i.d(t,{disable:()=>d,enable:()=>c,enabled:()=>l,getAllFeatures:()=>h,setEnabled:()=>u});var s=i(978331);const o=new Map,r=new Map,a=new Set;function l(e){const t=o.get(e);if(void 0!==t)return t;const i=r.get(e);return!!i&&i.some(l)}function u(e,t){o.set(String(e),Boolean(t))}function c(e){u(e,!0)}function d(e){u(e,!1)}function h(){const e=Object.create(null);for(const t of a)e[t]=l(t);return e}!function(){for(const[e,t]of Object.entries(n||(n=i.t(s,2))))if(a.add(e),"subsets"in t)for(const i of t.subsets){a.add(i);let t=r.get(i);void 0===t&&(t=[],r.set(i,t)),t.push(e)}"object"==typeof __initialDisabledFeaturesets&&Array.isArray(__initialDisabledFeaturesets)&&__initialDisabledFeaturesets.forEach(d),"object"==typeof __initialEnabledFeaturesets&&Array.isArray(__initialEnabledFeaturesets)&&__initialEnabledFeaturesets.forEach(c)}()},678515:(e,t,i)=>{function n(e,t){return e<=t}function s(e,t){return e>=t}function o(e,t,i){return Math.min(Math.max(e,t),i)}function r(e){return e<0?-1:e>0?1:0}function a(e){if(e<0)return!1;if(e>1e18)return!0;for(let t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}function l(e,t,i){return t-e<=i}function u(e,t,i){return Math.abs(e-t)t?1:0}function h(e,t=d){if(e.length<1)throw Error("array is empty");let i=e[0];for(let n=0;n0&&(i=e[n]);return i}function m(e){const t=Math.ceil(e);return t%2!=0?t-1:t}function v(e){return e>0?Math.floor(e):Math.ceil(e)}i.r(t),i.d(t,{ceiledEven:()=>m,clamp:()=>o,defComparator:()=>d,equal:()=>u,greaterOrEqual:()=>l,greaterThan:()=>s,isBaseDecimal:()=>a,lessThan:()=>n,log10:()=>c,max:()=>p,min:()=>h,sign:()=>r,toInt:()=>v})},618820:(e,t,i)=>{i.d(t,{isDrawingToolbarVisible:()=>l});var n=i(62802),s=i(244842),o=i(401580);const r=!s.enabled("hide_left_toolbar_by_default"),a=n.getBool("ChartDrawingToolbarWidget.visible",r),l=new o.WatchedValue(a)},572230:(e,t,i)=>{i.d(t,{InvalidationLevel:()=>n,InvalidationMask:()=>a,defaultInvalidationLevel:()=>r});var n,s=i(650151);class o{constructor(e=r){this._paneInvalidationLevel=r,this._leftPriceScalesInvalidationMap=new Map,this._rightPriceScalesInvalidationMap=new Map,this._legendWidgetInvalidated=!1,this._invalidationLevel=e}fullInvalidation(){ return this._invalidationLevel}invalidateAll(e){this._invalidationLevel=Math.max(this._invalidationLevel,e)}invalidatePane(e){this._paneInvalidationLevel=Math.max(this._invalidationLevel,e)}invalidateLegendWidgetLayout(){this._legendWidgetInvalidated=!0}invalidatePriceScale(e,t,i){const n="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap,s=n.get(t)||r;n.set(t,Math.max(s,i))}invalidationLevelForPane(){return Math.max(this._paneInvalidationLevel,this._invalidationLevel)}legendWidgetLayoutInvalidated(){return this._legendWidgetInvalidated||this._invalidationLevel===n.Full}getterForPriceScaleInvalidationLevelBySide(e){const t="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap;return e=>Math.max(t.get(e)||r,this._invalidationLevel)}priceScaleSideMaxLevel(e){const t="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap;let i=this._invalidationLevel;return t.size>0&&t.forEach((e=>{e>i&&(i=e)})),i}merge(e){this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._paneInvalidationLevel=Math.max(this._paneInvalidationLevel,e._paneInvalidationLevel),e._leftPriceScalesInvalidationMap.forEach(((e,t)=>{const i=this._leftPriceScalesInvalidationMap.get(t)||r;this._leftPriceScalesInvalidationMap.set(t,Math.max(i,e))})),e._rightPriceScalesInvalidationMap.forEach(((e,t)=>{const i=this._rightPriceScalesInvalidationMap.get(t)||r;this._rightPriceScalesInvalidationMap.set(t,Math.max(i,e))})),this._legendWidgetInvalidated=this._legendWidgetInvalidated||e._legendWidgetInvalidated}}!function(e){e[e.None=0]="None",e[e.Cursor=1]="Cursor",e[e.Light=2]="Light",e[e.Full=3]="Full"}(n||(n={}));const r=n.None;class a{constructor(e=r){this._panesOrderChanged=!1,this._keepVisibleTimeRangeOnResize=!1,this._timeAxisInvalidationLevel=r,this._invalidatedPanes=new Map,this._additionalActions=[],this._timeScaleInvalidations=[],this._invalidationLevel=e}invalidateAll(e){this._invalidationLevel!==e&&(this._invalidationLevel=Math.max(this._invalidationLevel,e),this._invalidatedPanes.forEach((e=>{e.invalidateAll(this._invalidationLevel)})))}invalidateAllPane(e,t){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new o(this._invalidationLevel)),(0,s.ensureDefined)(this._invalidatedPanes.get(e)).invalidateAll(t)}invalidatePriceScale(e,t,i,n){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new o(this._invalidationLevel)),(0,s.ensureDefined)(this._invalidatedPanes.get(e)).invalidatePriceScale(t,i,n)}invalidateTimeScale(e){this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e)}invalidatePanesOrder(){this._panesOrderChanged=!0}lockVisibleTimeRangeOnResize(){this._keepVisibleTimeRangeOnResize=!0}fullInvalidation(){return this._invalidationLevel}maxPaneInvalidation(){const e=[];return this._invalidatedPanes.forEach((t=>{e.push(t.fullInvalidation())})),Math.max(...e,this._invalidationLevel)}invalidateForPane(e){return this._invalidatedPanes.get(e)||new o(this._invalidationLevel)} invalidateForTimeScale(){return Math.max(this._timeAxisInvalidationLevel,this._invalidationLevel)}validationActions(){return this._additionalActions}addValidationAction(e){this._additionalActions.push(e)}merge(e){this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._panesOrderChanged=this._panesOrderChanged||e._panesOrderChanged,this._keepVisibleTimeRangeOnResize=this._keepVisibleTimeRangeOnResize||e._keepVisibleTimeRangeOnResize,this._invalidatedPanes.forEach((e=>{e.invalidateAll(this._invalidationLevel)})),e._invalidatedPanes.forEach(((e,t)=>{this._invalidatedPanes.has(t)||this._invalidatedPanes.set(t,new o(this._invalidationLevel)),(0,s.ensureDefined)(this._invalidatedPanes.get(t)).merge(e)})),this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e._timeAxisInvalidationLevel);for(let t=0;t0===e.type));if(-1!==i){const[n]=this._timeScaleInvalidations.splice(i,1);null===(t=(e=n.value).onFinish)||void 0===t||t.call(e,!1)}}}},342395:(e,t,i)=>{i.d(t,{makeSnapshotRequest:()=>u,takeChartSnapshot:()=>l,takeChartSnapshotPromise:()=>a});i(586463);var n=i(444372),s=i(244842),o=i(229534),r=i(120780);function a(e,t={}){return new Promise(((i,n)=>{l(e,i,n,t)}))}async function l(e,t,i,n={}){var s;const o=new FormData;if(void 0!==n.previews)for(const e of n.previews)o.append("previews[]",e);void 0!==n.cme&&o.append("cme",String(n.cme)),void 0!==n.wl&&o.append("wl",String(n.wl)),void 0!==n.onWidget&&o.append("onWidget",String(n.onWidget)),n.isReport&&o.append("isReport",String(n.isReport)),n.asyncSave&&o.append("asyncSave",String(n.asyncSave));const r=window.urlParams;r&&r.locale&&o.append("language",r.locale);const a=e.activeChartWidget.value(),l=a.widgetCustomer();void 0!==l&&o.append("customer",l) ;const c=null!==(s=a.model().model().timezoneExceptExchange().value())&&void 0!==s?s:"exchange";o.append("timezone",c),o.append("symbol",a.model().mainSeries().symbol());const d=await e.clientSnapshot({showHeaderMainSymbol:n.showHeaderMainSymbol}),h=await new Promise((e=>d.toBlob(e)));null!==h&&o.append("preparedImage",h),u(o,t,i,n)}async function u(e,t,a,l={}){const u=s.enabled("charting_library_base")?l.snapshotUrl||"https://www.tradingview.com/snapshot/":"/snapshot/";try{const s=await(0,r.fetch)(u,{body:e,method:"POST",credentials:"same-origin"}),c=await s.text();if(s.ok)t(c);else{if("suspicious_chart_snapshots_error"===c){const e=n.t(null,void 0,i(347362)).format({start_link:'',end_link:""});l.onInvalidSnapshotImage&&l.onInvalidSnapshotImage();return(0,o.createErrorDialog)({title:n.t(null,void 0,i(567137)),content:e,btnType:"danger"}).then((e=>{e.on("afterOpen",(()=>{i.e(1484).then(i.bind(i,601042)).then((({bugDialogCreationHandler:t})=>{t(),e.$el.find(".js-send-report-link").click((()=>{e.close()}))}))})),e.open()}))}a()}}catch(e){a()}}},242558:(e,t,i)=>{i.d(t,{createDwmAligner:()=>u,createTimeToBarTimeAligner:()=>d});var n=i(988124),s=i(244842),o=i(223699),r=i(995310),a=i(547944);const l=new r.SessionInfo("Etc/UTC","0000-0000:1234567");function u(e,t){if(!c()||!o.Interval.isDWM(e))return null;const i=new r.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),s=(0,a.newBarBuilder)(e,i,l);return{timeToSessionStart:e=>s.tradingDayToSessionStart(e),timeToExchangeTradingDay:e=>{const t=n.utc_to_cal(i.timezone,e),s=i.spec.correctTradingDay(t);return n.set_hms(s,0,0,0,0,n.get_timezone("Etc/UTC")),s.getTime()}}}function c(){return!s.enabled("disable_resolution_rebuild")}function d(e,t){if(!c())return e=>e;const i=new r.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),n=(0,a.newBarBuilder)(e,i,i,!1);return e=>n.alignTimeIfPossible(e)}},987571:(e,t,i)=>{var n;i.d(t,{SessionStage:()=>n}),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(n||(n={}))},919892:(e,t,i)=>{i.d(t,{DEFAULT_ADJUSTMENT:()=>s,DEFAULT_SESSION:()=>n,DEFAULT_SETTLEMENT_AS_CLOSE:()=>o,compareSymbols:()=>v,decodeExtendedSymbol:()=>h,encodeExtendedSymbolOrGetSimpleSymbolString:()=>c,isEncodedExtendedSymbol:()=>d,isReplaySymbol:()=>u,isStudySymbol:()=>l,unwrapSimpleSymbol:()=>p});const n="regular",s="splits",o=!0;function r(e){return"="+JSON.stringify(a(e))}function a(e){return Object.keys(e).sort().reduce(((t,i)=>("[object Object]"===Object.prototype.toString.call(e[i])?t[i]=a(e[i]):t[i]=e[i],t)),{})}function l(e){return Boolean(e.inputs)}function u(e){return Boolean(e.replay)}function c(e){return l(e)||u(e)||e.session||e.adjustment||e["currency-id"]||e["unit-id"]?r(e):e.symbol}function d(e){return"="===e[0]}function h(e){if(!d(e))return{symbol:e};try{return JSON.parse(e.slice(1))}catch(t){return{symbol:e}}}function p(e){return"string"==typeof e?e:p(e.symbol)} const m=["symbol","session","unit-id","currency-id","adjustment","backadjustment","settlement-as-close"];function v(e,t){return m.every((i=>e[i]===t[i]))}},182436:(e,t,i)=>{i.d(t,{NumericFormatter:()=>o});var n=i(417759),s=i(84924);class o{constructor(e,t,i){this._precision=e,this._minPrecision=i,this._ignoreNumberFormat=t}format(e,t){if(!Number.isFinite(e))return String(e);const i=(0,s.getNumberFormat)(t||this._ignoreNumberFormat);return void 0===this._precision?o._formatNoEImpl(e,i,this._precision,this._minPrecision):(0,n.formatNumber)(e,i,this._precision,void 0,this._minPrecision)}parse(e,t){const i=(0,s.getNumberFormat)(t||this._ignoreNumberFormat);let o=(0,n.parseNumber)(e,i);return Number.isFinite(o)&&this._precision&&(o=+o.toFixed(this._precision)),o}static formatNoE(e,t){return this._formatNoEImpl(e,t)}static _formatNoEImpl(e,t,i,s){return Number.isFinite(e)?(t=null!=t?t:{groupingSeparator:"",decimalSign:"."},(0,n.formatNumber)(e,t,i,!0,s)):String(e)}}},982217:(e,t,i)=>{var n;i.d(t,{TitleDisplayTarget:()=>n}),function(e){e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine"}(n||(n={}))},223699:(e,t,i)=>{i.d(t,{Interval:()=>c,ResolutionKind:()=>o,SpecialResolutionKind:()=>r,isHour:()=>h});const n=/^(\d*)([TSHDWMR])$/,s=/^(\d+)$/;var o,r;!function(e){e.Ticks="ticks",e.Seconds="seconds",e.Minutes="minutes",e.Days="days",e.Weeks="weeks",e.Months="months",e.Range="range",e.Invalid="invalid"}(o||(o={})),function(e){e.Hours="hours"}(r||(r={}));const a={};a[o.Ticks]=1e3,a[o.Seconds]=1e3,a[o.Minutes]=60*a[o.Seconds],a[o.Days]=1440*a[o.Minutes],a[o.Weeks]=7*a[o.Days];const l={T:o.Ticks,S:o.Seconds,D:o.Days,W:o.Weeks,M:o.Months,R:o.Range},u=new Set([o.Ticks,o.Seconds,o.Minutes]);class c{constructor(e,t){this._kind=o.Invalid,this._multiplier=0,e!==o.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}multiplier(){return this._multiplier}isValid(){return this.kind()!==o.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=u.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===o.Seconds}isMinutes(){return this.kind()===o.Minutes}isMinuteHours(){return this.kind()===o.Minutes&&h(this.multiplier())}isDays(){return this.kind()===o.Days}isWeeks(){return this.kind()===o.Weeks}isMonths(){return this.kind()===o.Months}isRange(){return this.kind()===o.Range}isTicks(){return this.kind()===o.Ticks}is1Tick(){return this.isTicks()&&1===this.multiplier()}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==o.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===o.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof c))throw new Error("Argument is not an Interval");return!(!this.isValid()||!e.isValid())&&(this.kind()===e.kind()&&this.multiplier()===e.multiplier())}inMilliseconds(e=Date.now()){if(!this.isValid()||this.isRange())return NaN;if(this.isMonths()){const t=new Date(e) ;t.setUTCMonth(t.getUTCMonth()+(this.multiplier()||1));return+t-e}const t=this.multiplier();return a[this.kind()]*t}static isEqual(e,t){return e===t||c.parse(e).isEqualTo(c.parse(t))}static parseExt(e){e=(e+"").toUpperCase().split(",")[0];let t=n.exec(e);return null!==t?"H"===t[2]?{interval:new c(o.Minutes,60*d(t[1])),guiResolutionKind:r.Hours}:{interval:new c(l[t[2]],d(t[1])),guiResolutionKind:l[t[2]]}:(t=s.exec(e),null!==t?{interval:new c(o.Minutes,d(t[1])),guiResolutionKind:o.Minutes}:{interval:new c(o.Invalid,0),guiResolutionKind:o.Invalid})}static parse(e){return c.parseExt(e).interval}static kind(e){return c.parse(e).kind()}static isValid(e){return c.parse(e).isValid()}static isDWM(e){return c.parse(e).isDWM()}static isIntraday(e){return c.parse(e).isIntraday()}static isSeconds(e){return c.parse(e).isSeconds()}static isMinutes(e){return c.parse(e).isMinutes()}static isMinuteHours(e){return c.parse(e).isMinuteHours()}static isDays(e){return c.parse(e).isDays()}static isWeeks(e){return c.parse(e).isWeeks()}static isMonths(e){return c.parse(e).isMonths()}static isRange(e){return c.parse(e).isRange()}static isTicks(e){return c.parse(e).isTicks()}static isTimeBased(e){return c.parse(e).isTimeBased()}static normalize(e){const t=c.parse(e);return t.isValid()?t.value():null}}function d(e){return 0===e.length?1:parseInt(e,10)}function h(e){return e>=60&&!(e%60)}},31712:(e,t,i)=>{i.r(t),i.d(t,{LineToolCollectedProperty:()=>u,LineToolColorsProperty:()=>d,LineToolMultiplePropertyBaseImpl:()=>l,LineToolWidthsProperty:()=>c,MultipleLineColorsProperty:()=>m,MultipleLineWidthsProperty:()=>p});var n=i(201089),s=i(707957),o=i(428123);const r=(0,n.getLogger)("Chart.LineToolCollectedProperty");class a{applyValue(e,t){e.setValue(t)}}class l{constructor(e,t){this._onChange=new s.Delegate,this._properties=e,e.forEach(((e,t)=>e.subscribe(this,((e,i)=>{this._onChange.fire(this,`${t}.${i}`)})))),this._showIfProperty=t}visible(){var e;return!this._showIfProperty||(null===(e=this._showIfProperty)||void 0===e?void 0:e.value())}value(){if(0===this._properties.length)return r.logError("Incorrect call, should not request value of 0 properties"),"mixed";const e=this._properties[0].value();return 1===this._properties.length||this._properties.every((t=>t.value()===e))?e:"mixed"}state(){}merge(){}destroy(){this._properties.forEach((e=>e.unsubscribeAll(this))),this._onChange.destroy()}subscribe(e,t){this._onChange.subscribe(e,t)}unsubscribe(e,t){this._onChange.unsubscribe(e,t)}unsubscribeAll(e){this._onChange.unsubscribeAll(e)}storeStateIfUndefined(){return!0}weakReference(){return(0,o.weakReference)(this)}ownership(){return(0,o.ownership)(this)}}class u extends l{setValue(e,t,i){if("mixed"===e)return;const n=null!=i?i:new a;this._properties.forEach((t=>n.applyValue(t,e)))}}class c extends u{}class d extends u{firstColor(){return this._properties[0].value()}}class h extends l{setValue(e,t,i){if("mixed"===e)return;const n=null!=i?i:new a;this._properties.forEach((t=>t.setValue(e,void 0,n)))}}class p extends h{}class m extends h{}},918208:(e,t,i)=>{ i.d(t,{lineToolsLocalizedNames:()=>s});var n=i(444372);const s={LineTool5PointsPattern:n.t(null,void 0,i(566527)),LineToolABCD:n.t(null,void 0,i(532852)),LineToolArc:n.t(null,void 0,i(745104)),LineToolArrow:n.t(null,void 0,i(696237)),LineToolArrowMarkDown:n.t(null,void 0,i(908738)),LineToolArrowMarkLeft:n.t(null,void 0,i(835062)),LineToolArrowMarkRight:n.t(null,void 0,i(192163)),LineToolArrowMarkUp:n.t(null,void 0,i(633196)),LineToolBalloon:n.t(null,void 0,i(40664)),LineToolComment:n.t(null,void 0,i(119372)),LineToolBarsPattern:n.t(null,void 0,i(98838)),LineToolBezierCubic:n.t(null,void 0,i(59368)),LineToolBezierQuadro:n.t(null,void 0,i(517206)),LineToolBrush:n.t(null,void 0,i(530251)),LineToolCallout:n.t(null,void 0,i(764149)),LineToolCircleLines:n.t(null,void 0,i(587761)),LineToolCypherPattern:n.t(null,void 0,i(927891)),LineToolDateAndPriceRange:n.t(null,void 0,i(379859)),LineToolDateRange:n.t(null,void 0,i(660222)),LineToolDisjointAngle:n.t(null,void 0,i(603556)),LineToolElliottCorrection:n.t(null,void 0,i(291215)),LineToolElliottDoubleCombo:n.t(null,void 0,i(180983)),LineToolElliottImpulse:n.t(null,void 0,i(674118)),LineToolElliottTriangle:n.t(null,void 0,i(95840)),LineToolElliottTripleCombo:n.t(null,void 0,i(866637)),LineToolEllipse:n.t(null,void 0,i(469418)),LineToolExtended:n.t(null,void 0,i(302578)),LineToolFibChannel:n.t(null,void 0,i(482719)),LineToolFibCircles:n.t(null,void 0,i(464192)),LineToolFibRetracement:n.t(null,void 0,i(463835)),LineToolFibSpeedResistanceArcs:n.t(null,void 0,i(418072)),LineToolFibSpeedResistanceFan:n.t(null,void 0,i(220877)),LineToolFibSpiral:n.t(null,void 0,i(476783)),LineToolFibTimeZone:n.t(null,void 0,i(489037)),LineToolFibWedge:n.t(null,void 0,i(472489)),LineToolFlagMark:n.t(null,void 0,i(155678)),LineToolImage:n.t(null,void 0,i(223450)),LineToolFlatBottom:n.t(null,void 0,i(829230)),LineToolAnchoredVWAP:n.t(null,void 0,i(961704)),LineToolGannComplex:n.t(null,void 0,i(366321)),LineToolGannFixed:n.t(null,void 0,i(887107)),LineToolGannFan:n.t(null,void 0,i(168102)),LineToolGannSquare:n.t(null,void 0,i(981180)),LineToolHeadAndShoulders:n.t(null,void 0,i(742616)),LineToolHorzLine:n.t(null,void 0,i(160049)),LineToolHorzRay:n.t(null,void 0,i(76604)),LineToolIcon:n.t(null,void 0,i(326579)),LineToolEmoji:n.t(null,void 0,i(285223)),LineToolSticker:n.t(null,void 0,i(184573)),LineToolInsidePitchfork:n.t(null,void 0,i(312354)),LineToolNote:n.t(null,void 0,i(275549)),LineToolNoteAbsolute:n.t(null,void 0,i(366828)),LineToolSignpost:n.t(null,void 0,i(368161)),LineToolParallelChannel:n.t(null,void 0,i(670394)),LineToolPitchfan:n.t(null,void 0,i(422293)),LineToolPitchfork:n.t(null,void 0,i(143852)),LineToolPolyline:n.t(null,void 0,i(953047)),LineToolPath:n.t(null,void 0,i(234402)),LineToolPrediction:n.t(null,void 0,i(436972)),LineToolPriceLabel:n.t(null,void 0,i(495921)),LineToolArrowMarker:n.t(null,void 0,i(982473)),LineToolPriceRange:n.t(null,void 0,i(102032)),LineToolProjection:n.t(null,void 0,i(187086)),LineToolRay:n.t(null,void 0,i(50470)),LineToolRectangle:n.t(null,void 0,i(200328)), LineToolCircle:n.t(null,void 0,i(490068)),LineToolRegressionTrend:n.t(null,void 0,i(435001)),LineToolRiskRewardLong:n.t(null,void 0,i(844604)),LineToolRiskRewardShort:n.t(null,void 0,i(937819)),LineToolFixedRangeVolumeProfile:n.t(null,{context:"study"},i(40434)),LineToolAnchoredVolumeProfile:n.t(null,{context:"study"},i(59791)),LineToolRotatedRectangle:n.t(null,void 0,i(409998)),LineToolSchiffPitchfork:n.t(null,void 0,i(518559)),LineToolSchiffPitchfork2:n.t(null,void 0,i(298114)),LineToolSineLine:n.t(null,void 0,i(369502)),LineToolText:n.t(null,{context:"tool"},i(20936)),LineToolTextAbsolute:n.t(null,void 0,i(694782)),LineToolThreeDrivers:n.t(null,void 0,i(298538)),LineToolTimeCycles:n.t(null,void 0,i(395005)),LineToolTrendAngle:n.t(null,void 0,i(294770)),LineToolTrendBasedFibExtension:n.t(null,void 0,i(715501)),LineToolTrendBasedFibTime:n.t(null,void 0,i(931196)),LineToolTrendLine:n.t(null,void 0,i(423104)),LineToolInfoLine:n.t(null,void 0,i(627677)),LineToolTriangle:n.t(null,void 0,i(729245)),LineToolTrianglePattern:n.t(null,void 0,i(112390)),LineToolVertLine:n.t(null,void 0,i(156211)),LineToolCrossLine:n.t(null,void 0,i(260997)),LineToolHighlighter:n.t(null,void 0,i(831895)),LineToolPriceNote:n.t(null,void 0,i(328625)),LineToolVbPFixed:n.t(null,void 0,i(518426)),LineToolGhostFeed:n.t(null,void 0,i(807914))};s.LineToolTweet=n.t(null,void 0,i(100970)),s.LineToolIdea=n.t(null,void 0,i(241246))},713473:(e,t,i)=>{var n;i.r(t),i.d(t,{cloneLineTool:()=>z,createLineTool:()=>R,createLineToolProperties:()=>x,createStudyLineToolProperties:()=>I,getNewToolProperties:()=>w,initAllLineToolsFromContent:()=>E,initLineTool:()=>P,isEditableTextLineTool:()=>O,isLineTool:()=>k,isStudyLineTool:()=>D,isTrading:()=>F,lineToolByLinkKey:()=>B,prepareLineToolPropertiesByOwnerSource:()=>C,setNewToolProperties:()=>b,supportsPhantomMode:()=>A,tryFindStudyLineToolNameByStudyId:()=>V,unsetNewToolProperties:()=>S});var s=i(598279),o=i(650151),r=i(86441),a=i(395098),l=i(817724),u=i(821979),c=i(968361),d=i(477227),h=i(444331),p=i(616117),m=i(347710),v=i(832733);const g={},f={};Object.assign(g,n||(n=i.t(c,2)));const _=["LineToolRegressionTrend","LineToolAnchoredVWAP","LineToolFixedRangeVolumeProfile","LineToolVbPFixed"];_.push("LineToolAnchoredVolumeProfile");let y=null;function b(e,t,i){return null!==y&&y.tool===e&&y.toolData===t||(y={properties:x(e,void 0,i),tool:e,toolData:t}),y.properties}function S(){y=null}function w(e){return null!==y&&y.tool===e?y.properties:null} const T=new Map([["LineToolPriceNote",async()=>(await Promise.all([i.e(36914),i.e(35698),i.e(30154),i.e(82375),i.e(39848),i.e(380)]).then(i.bind(i,82618))).LineToolPriceNote],["LineToolNote",async()=>(await Promise.all([i.e(36914),i.e(35698),i.e(30154),i.e(82375),i.e(23248)]).then(i.bind(i,572571))).LineToolNote],["LineToolNoteAbsolute",async()=>(await Promise.all([i.e(36914),i.e(35698),i.e(30154),i.e(82375),i.e(23248)]).then(i.bind(i,572571))).LineToolNoteAbsolute],["LineToolFibSpiral",async()=>(await Promise.all([i.e(36914),i.e(35698),i.e(30154),i.e(82375),i.e(39848),i.e(78090)]).then(i.bind(i,154628))).LineToolFibSpiral],["LineToolCircleLines",async()=>(await Promise.all([i.e(36914),i.e(35698),i.e(30154),i.e(82375),i.e(59445)]).then(i.bind(i,869523))).LineToolCyclicLines]]);let L=new Map;async function P(e){if((0,p.isStudyLineToolName)(e)){if(await(0,m.studyMetaInfoRepository)().findAllJavaStudies(),f[e])return;const t=(0,o.ensureDefined)(L.get(e));return void(f[e]=await t())}if(g[e])return;if(!g.hasOwnProperty(e))return;const t=(0,o.ensureDefined)(T.get(e));g[e]=await t()}async function E(e){if(!e)return;const t=new Set;("charts"in e?e.charts:[e]).forEach((e=>{e.panes.forEach((e=>{e.sources.forEach((e=>{(0,p.isLineToolName)(e.type)&&t.add(e.type)}))}))})),await Promise.all(Array.from(t).map((e=>P(e))))}function R(e,t,i,n,s,r){let a;if((0,o.assert)((0,p.isLineToolName)(e),"Unknown line tool: "+e),s||i||(i=w(e)||void 0),_.includes(e)){a=new((0,o.ensureDefined)(f[e]))(t,i,(0,o.ensureDefined)(n),s,r)}else{a=new((0,o.ensureDefined)(g[e]))(t,i,s,r)}return a.toolname=e,S(),a}function C(e,t){const i=(0,o.ensureNotNull)(t.symbolSource()),n=i.symbolInfo(),s=n?(0,h.extractLineToolSymbolFromSymbolInfo)(n,i.symbol()):i.symbol();e.childs().symbol.setValue(s),i.model().currencyConversionEnabled()&&i.isConvertedToOtherCurrency()&&e.childs().currencyId.setValue(i.currency()),i.model().unitConversionEnabled()&&i.isConvertedToOtherUnit()&&e.childs().unitId.setValue(i.unit()),e.childs().symbolStateVersion.setValue(2),e.childs().zOrderVersion.setValue(2)}function x(e,t,i,n){if((0,o.assert)((0,p.isLineToolName)(e),`${e} should be name of the line tool`),_.includes(e)){return(0,o.ensureDefined)(f[e]).createProperties(t)}return(0,o.ensureDefined)(g[e]).createProperties(t,n)}function I(e,t,i,n,s){if((0,o.assert)((0,p.isStudyLineToolName)(e),`${e} should be name of the study line tool`),_.includes(e)){return(0,o.ensureDefined)(f[e]).createPropertiesFromStudyMetaInfoAndState(t,i,n,s)}throw new Error(`Property creation is not implemented for study line tool ${e}`)}function A(e){(0,o.assert)((0,p.isLineToolName)(e),`${e} should be name of the line tool`);const t=(n||(n=i.t(c,2)))[e];return void 0!==t&&Boolean(t.supportPhantomMode)}function k(e){return e instanceof u.LineDataSource}function D(e){return e instanceof l.StudyLineDataSource}function F(e){return e instanceof d.LineToolTrading} L=new Map([["LineToolAnchoredVWAP",async()=>(await i.e(55500).then(i.bind(i,975630))).LineToolAnchoredVWAP],["LineToolRegressionTrend",async()=>(await i.e(99748).then(i.bind(i,44004))).LineToolRegressionTrend],["LineToolVbPFixed",async()=>(await i.e(95695).then(i.bind(i,994207))).LineToolVbPFixed],["LineToolFixedRangeVolumeProfile",async()=>(await i.e(95695).then(i.bind(i,928890))).LineToolFixedRangeVolumeProfile],["LineToolAnchoredVolumeProfile",async()=>(await i.e(95695).then(i.bind(i,364615))).LineToolAnchoredVolumeProfile]]);const M=["editableTextStyle","editableText","editableTextProperties"];function O(e){return(0,s.default)(e)&&M.every((t=>t in e))}function V(e){let t=null;return e===v.lineToolsStudyIds.LineToolRegressionTrend?t="LineToolRegressionTrend":e===v.lineToolsStudyIds.LineToolVbPFixed?t="LineToolVbPFixed":e===v.lineToolsStudyIds.LineToolFixedRangeVolumeProfile&&(t="LineToolFixedRangeVolumeProfile"),t}function z(e,t,i,n){const s=t.toolname,l=t.properties().state();l.intervalsVisibilities=(0,a.mergeIntervalVisibilitiesDefaults)(null==l?void 0:l.intervalsVisibilities);const u=x(t.toolname,l);u.childs().visible.setValue(!0);const c=(0,o.ensureNotNull)(t.ownerSource()),d=R(s,e,u);void 0!==n&&d.setId(n),d.setOwnerSource(c),d.toolname=s;const h=d.clonePositionOffset();if(t.isFixed()){const e=(0,o.ensureDefined)(t.fixedPoint()),n=i?e.add(new r.Point(h.xCoordOffset,h.yCoordOffset)):e;d.addFixedPoint(n)}const p=t.normalizedPoints(),m=i?function(e,t,i){const n=(0,o.ensureNotNull)(t.priceScale()),s=(0,o.ensureNotNull)(t.firstValue());return e.map((e=>{const t=e.price,o=n.priceToCoordinate(t,s)+i.yCoordOffset,r=n.coordinateToPrice(o,s);return{time_t:e.time_t,price:r,offset:e.offset+i.barOffset}}))}(p,c,h):p,v=t.points();return d.restorePoints(m,v),d.cloneData&&d.cloneData(t),d.recalculateStateByData&&d.recalculateStateByData(),d}function B(e,t){var i;return null!==(i=e.dataSources().find((e=>k(e)&&e.linkKey().value()===t)))&&void 0!==i?i:null}},147354:(e,t,i)=>{var n;i.d(t,{PaneCursorType:()=>n}),function(e){e[e.Default=0]="Default",e[e.Pointer=1]="Pointer",e[e.Eraser=2]="Eraser",e[e.Dot=3]="Dot",e[e.Grabbing=4]="Grabbing",e[e.ZoomIn=5]="ZoomIn",e[e.VerticalResize=6]="VerticalResize",e[e.HorizontalResize=7]="HorizontalResize",e[e.DiagonalNeSwResize=8]="DiagonalNeSwResize",e[e.DiagonalNwSeResize=9]="DiagonalNwSeResize",e[e.Text=10]="Text"}(n||(n={}))},369689:(e,t,i)=>{i.d(t,{combineProperty:()=>s});var n=i(152633);function s(e,...t){const i=()=>e(...t.map((e=>e.value()))),s=(0,n.createPrimitiveProperty)(i()),o=()=>s.setValue(i()),r={};for(const e of t)e.subscribe(r,o);return s.destroy=()=>{t.forEach((e=>e.unsubscribeAll(r))),t.forEach((e=>e.release()))},s}},824837:(e,t,i)=>{i.d(t,{createWVFromGetterAndSubscription:()=>s});var n=i(401580);function s(e,t){const i=new n.WatchedValue(e()),s={};t.subscribe(s,(()=>{i.setValue(e())}));return i.readonly().spawn((()=>t.unsubscribeAll(s)))}},784547:(e,t,i)=>{i.d(t,{createWVFromGetterAndSubscriptions:()=>s});var n=i(401580);function s(e,t){ const i=new n.WatchedValue(e()),s={};t.forEach((t=>t.subscribe(s,(()=>{i.setValue(e())}))));return i.readonly().spawn((()=>t.forEach((e=>e.unsubscribeAll(s)))))}},936515:(e,t,i)=>{i.d(t,{createWVFromProperty:()=>s});var n=i(824837);function s(e){return(0,n.createWVFromGetterAndSubscription)((()=>e.value()),e)}},510147:(e,t,i)=>{i.d(t,{dpr1PixelRatioInfo:()=>s,equalPixelRatios:()=>r,equalRenderingInfos:()=>o});var n=i(743068);const s={horizontalPixelRatio:1,verticalPixelRatio:1};function o(e,t){return(0,n.equalSizes)(e.mediaSize,t.mediaSize)&&(0,n.equalSizes)(e.bitmapSize,t.bitmapSize)&&r(e,t)}function r(e,t){return e.horizontalPixelRatio===t.horizontalPixelRatio&&e.verticalPixelRatio===t.verticalPixelRatio}},276871:(e,t,i)=>{i.d(t,{compareResolutions:()=>g,convertResolutionsFromSettings:()=>I,getApplicableIntervalForFrequency:()=>f,getDefaultResolution:()=>L,getMaxResolutionValue:()=>x,getResolutionByChartStyle:()=>P,getServerInterval:()=>E,getTranslatedResolution:()=>D,getTranslatedResolutionModel:()=>F,intervalIsSupported:()=>N,isAvailable:()=>w,isIntervalEnabled:()=>B,isResolutionMultiplierValid:()=>R,isSecondsEnabled:()=>O,isTicksEnabled:()=>V,mergeResolutions:()=>A,normalizeIntervalString:()=>S,setLastUsedResolution:()=>T,sortResolutions:()=>k});var n=i(444372),s=i(223699),o=i(444331),r=i(62802),a=i(583912),l=i(337779),u=i(638456),c=i(125226),d=i(389137),h=i(244842);const p={[s.ResolutionKind.Ticks]:1,[s.ResolutionKind.Seconds]:60,[s.ResolutionKind.Minutes]:1440,[s.SpecialResolutionKind.Hours]:24,[s.ResolutionKind.Days]:365,[s.ResolutionKind.Weeks]:52,[s.ResolutionKind.Months]:12,[s.ResolutionKind.Range]:1e6,[s.ResolutionKind.Invalid]:NaN},m={[s.ResolutionKind.Ticks]:0,[s.ResolutionKind.Seconds]:1,[s.ResolutionKind.Minutes]:2,[s.SpecialResolutionKind.Hours]:3,[s.ResolutionKind.Days]:4,[s.ResolutionKind.Weeks]:5,[s.ResolutionKind.Months]:6,[s.ResolutionKind.Range]:7,[s.ResolutionKind.Invalid]:8};function v(e){const t=s.Interval.parse(e),i=t.multiplier()||1;return t.isMinuteHours()?[s.SpecialResolutionKind.Hours,i/60]:[t.kind(),i]}function g(e,t){if(e===t)return 0;const[i,n]=v(e),[s,o]=v(t);return i!==s?m[i]-m[s]:n-o}function f(e,t){return g(t,e)>=0?t:e}const _=(0,c.isFeatureEnabled)("45_seconds_interval")?[1,5,10,15,30,45]:[1,5,10,15,30],y=[1,10,100,1e3],b=(0,c.isFeatureEnabled)("tick_intervals")&&!(0,u.onWidget)();function S(e){return s.Interval.parse(e).value()}function w(e){const t=s.Interval.parse(e);if(t.isRange())return a.linking.range.value();if(!V()&&t.isTicks())return!1;const i=t.value(),n=a.linking.dataFrequencyResolution.value();if(void 0!==n&&g(i,n)<0)return!1;const o=a.linking.supportedResolutions.value();return void 0!==o?void 0!==o.find((e=>S(e)===i)):t.isTicks()?Boolean(a.linking.ticks.value()):t.isIntraday()?Boolean(a.linking.intraday.value()):t.isDWM()}function T(e){s.Interval.isValid(e)&&(s.Interval.isRange(e)?r.setValue("chart.lastUsedRangeResolution",e):r.setValue("chart.lastUsedTimeBasedResolution",e))}function L(e){return e?"100R":"1D"}function P(e,t,i){ const n=o.isRangeStyle(e),a=s.Interval.isRange(t);return!n&&a?function(e){const t=r.getValue("chart.lastUsedTimeBasedResolution");if(void 0!==t&&s.Interval.isTimeBased(t))return t;let i="1D";for(const t of e){const e=s.Interval.parse(t);if(e.isTimeBased()){const t=e.value();if("1D"===t)return t;i=t}}return i}(i):n&&!a?function(e){const t=r.getValue("chart.lastUsedRangeResolution");if(void 0!==t&&s.Interval.isRange(t))return t;let i="100R";for(const t of e){const e=s.Interval.parse(t);if(e.isRange()){const t=e.value();if("100R"===t)return t;i=t}}return i}(i):t}function E(e){return s.Interval.isRange(e)?"1":e}function R(e){const{interval:t,guiResolutionKind:i}=s.Interval.parseExt(e);if(!t.isValid())return!1;const n=t.multiplier();if(i===s.ResolutionKind.Seconds)return _.includes(n);if(b&&i===s.ResolutionKind.Ticks)return y.includes(n);return(i===s.SpecialResolutionKind.Hours?n/60:n)<=C(i)}function C(e){const t=p[e];return Number.isNaN(t)?1:t}function x(e){return C(s.Interval.parseExt(e).guiResolutionKind)}function I(e){return Array.isArray(e)?e:Object.keys(e).map(s.Interval.normalize).filter(d.notNull)}function A(...e){let t=[].concat(...e);return t=(0,l.uniq)(t.filter(R).map(S)),k(t)}function k(e){return e.sort(g)}function D(e){const{multiplier:t,shortKind:i}=F(e);return`${t}${i}`}function F(e,t){const i=s.Interval.parse(e);let n=i.multiplier(),o=i.kind();if(!i.isValid()){if(t)return null;throw new TypeError("Can't translate invalid interval")}return i.isMinuteHours()&&(n=Math.floor(n/60),o=s.SpecialResolutionKind.Hours),{multiplier:n.toString(),shortKind:M(o),hint:`${n} ${M(o,n)}`,mayOmitMultiplier:i.isDWM()&&1===n,mayOmitShortKind:i.isMinutes()&&!i.isMinuteHours()}}function M(e,t){if(!t)return{[s.ResolutionKind.Invalid]:"",[s.ResolutionKind.Ticks]:n.t(null,{context:"interval_short"},i(959231)),[s.ResolutionKind.Seconds]:n.t(null,{context:"interval_short"},i(2949)),[s.ResolutionKind.Minutes]:n.t(null,{context:"interval_short"},i(806791)),[s.SpecialResolutionKind.Hours]:n.t(null,{context:"interval_short"},i(113994)),[s.ResolutionKind.Days]:n.t(null,{context:"interval_short"},i(713395)),[s.ResolutionKind.Weeks]:n.t(null,{context:"interval_short"},i(185521)),[s.ResolutionKind.Months]:n.t(null,{context:"interval_short"},i(137720)),[s.ResolutionKind.Range]:n.t(null,{context:"interval_short"},i(269838))}[e];switch(e){case s.ResolutionKind.Ticks:return n.t(null,{plural:"ticks",count:t},i(699136));case s.ResolutionKind.Days:return n.t(null,{plural:"days",count:t},i(730572));case s.ResolutionKind.Weeks:return n.t(null,{plural:"weeks",count:t},i(947966));case s.ResolutionKind.Months:return n.t(null,{plural:"months",count:t},i(99062));case s.ResolutionKind.Seconds:return n.t(null,{plural:"seconds",count:t},i(671787));case s.ResolutionKind.Minutes:return n.t(null,{plural:"minutes",count:t},i(569143));case s.SpecialResolutionKind.Hours:return n.t(null,{plural:"hours",count:t},i(52254));case s.ResolutionKind.Range:return n.t(null,{plural:"ranges",count:t},i(682797));default:return e}}function O(){return!0}function V(){return b} function z(e){return!(!V()&&e.isTicks())}function B(e){return z(s.Interval.parse(e))}function N(e){if(h.enabled("allow_supported_resolutions_set_only")){const t=s.Interval.normalize(e);return null!==t&&w(t)}{const t=s.Interval.parse(e);if(!t.isValid()||!z(t))return!1;if(!h.enabled("custom_resolutions")){const t=s.Interval.normalize(e),i=window.ChartApiInstance.defaultResolutions().filter(B);if(!t||-1===i.indexOf(t))return!1}const i=a.linking.dataFrequencyResolution.value();if(void 0!==i&&f(i,t.value())!==t.value())return!1;if(t.isRange())return a.linking.range.value();if(t.isTicks())return a.linking.ticks.value();if(t.isIntraday())return a.linking.intraday.value();{const e=a.linking.supportedResolutions.value();return!e||e.includes(t.value())}}}},444331:(e,t,i)=>{i.r(t),i.d(t,{actualSymbol:()=>_e,chartStyleStudyId:()=>U,createSeriesFormatter:()=>J,displayedSymbolExchange:()=>fe,displayedSymbolName:()=>ge,extractLineToolSymbolFromSymbolInfo:()=>de,extractSymbolNameFromSymbolInfo:()=>ce,getChartStyleByResolution:()=>$,getDefaultStyle:()=>W,getLastUsedRawDataStyle:()=>N,getLastUsedSingleValueBasedStyle:()=>B,getLastUsedStyle:()=>z,getSeriesDisplayErrorWV:()=>xe,getSeriesPriceFormattingState:()=>G,getSourceForEconomySymbol:()=>me,getSymbolDelaySeconds:()=>Ie,getSymbolExchange:()=>Ee,getTranslatedChartStyleName:()=>E,hasProjection:()=>K,hasVolume:()=>Le,isCloseBasedSymbol:()=>Se,isConvertedToOtherCurrency:()=>ee,isConvertedToOtherUnit:()=>se,isEconomicSymbol:()=>Pe,isFutureContinuousSymbolWithBackajustment:()=>Re,isFuturesContractSymbol:()=>Ce,isMeasureUnitSymbol:()=>we,isPriceSourceStyle:()=>q,isRangeBasedStyle:()=>C,isRangeStyle:()=>I,isRawDataStyle:()=>M,isRegularSessionId:()=>be,isRequiringRestartSeriesStyles:()=>R,isSingleValueBasedStyle:()=>F,isStyleSupportedForReplay:()=>k,isTimeBasedStyle:()=>A,isValidStyle:()=>D,measureUnitId:()=>Te,preparePriceAxisProperties:()=>j,proSymbol:()=>ye,setLastUsedRawDataStyle:()=>V,setLastUsedStyle:()=>O,styleChangeRequiresRestart:()=>x,symbolBaseCurrency:()=>Q,symbolCurrency:()=>X,symbolCurrencyConvertible:()=>Z,symbolCurrentContract:()=>re,symbolHasEconomicEvents:()=>ue,symbolHasPreOrPostMarket:()=>ae,symbolHasSeveralSessions:()=>le,symbolOriginalCurrency:()=>Y,symbolOriginalUnit:()=>ne,symbolTitle:()=>ve,symbolTitleSeparator:()=>pe,symbolToSaveInState:()=>he,symbolUnit:()=>ie,symbolUnitConvertible:()=>te,symbolUnitConvertibleGroupsIfExist:()=>oe});var n=i(444372),s=i(62802),o=i(638456),r=i(519073),a=i(339315),l=i(223699),u=i(624444),c=i(244842),d=i(943994),h=i(541346),p=i(181728),m=i(66732),v=i(197050),g=i(529426);const f=c.enabled("pay_attention_to_ticker_not_symbol"),_=c.enabled("uppercase_instrument_names"),y=c.enabled("charting_library_single_symbol_request"),b=c.enabled("use_ticker_on_symbol_info_update"),S=c.enabled("hide_object_tree_and_price_scale_exchange_label"),w=[4,5,6,7,8],T=[4,5,6,7,11],L=[0,1,9,19,2,14,15,3,16,10,8,12,13,18,17,20],P=[2,14,15,10,3,13,18];function E(e){return{0:n.t(null,void 0,i(16812)),1:n.t(null,void 0,i(463528)),2:n.t(null,void 0,i(301277)), 14:n.t(null,void 0,i(938397)),15:n.t(null,void 0,i(79511)),3:n.t(null,void 0,i(542097)),16:n.t(null,void 0,i(134911)),9:n.t(null,void 0,i(661582)),10:n.t(null,void 0,i(117712)),12:n.t(null,void 0,i(631994)),13:n.t(null,void 0,i(636018)),4:n.t(null,void 0,i(20801)),7:n.t(null,void 0,i(563492)),5:n.t(null,void 0,i(292901)),6:n.t(null,void 0,i(99969)),11:n.t(null,void 0,i(490357)),8:n.t(null,void 0,i(240530)),17:n.t(null,void 0,i(178560)),18:n.t(null,void 0,i(132975)),19:n.t(null,void 0,i(712894)),20:n.t(null,void 0,i(723047))}[e]}function R(e){return-1!==w.indexOf(e)}function C(e){return-1!==T.indexOf(e)}function x(e,t){return!I(e)&&!I(t)&&!(e===t||!R(e)&&!R(t))}function I(e){return 11===e}function A(e){return-1!==L.indexOf(e)}function k(e){return 8!==e&&17!==e&&18!==e&&20!==e&&A(e)}function D(e){return C(e)||A(e)}function F(e){switch(e){case 3:case 10:case 2:case 14:case 15:case 13:case 18:return!0;default:return!1}}function M(e){return!a.SYMBOL_STRING_DATA[e]}function O(e,t){D(e)&&(11!==e&&s.setValue("chart.lastUsedStyle",e),M(e)&&V(e),Se(t)&&F(e)&&s.setValue("chart.lastUsedSingleValueBasedStyle",e))}function V(e){s.setValue("chart.rawDataStyle",e)}function z(){const e=s.getInt("chart.lastUsedStyle");return void 0===e?1:e}function B(){const e=s.getInt("chart.lastUsedSingleValueBasedStyle");return void 0===e?14:e}function N(){return s.getInt("chart.rawDataStyle",1)}function W(e){return e?11:1}function $(e,t){const i=I(t),n=l.Interval.isRange(e);return!i&&n?W(!0):i&&!n?W(!1):t}function U(e,t){const i=a.SYMBOL_STRING_DATA[e];return void 0===i?null:t?`${i.type}-${i.basicStudyVersion}`:i.type}function j(e){const t=e.priceAxisProperties,i=t.lockScale.value(),n=6===e.style.value();(n||i)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!n&&!i)),t.percentageDisabled.setValue(!(!n&&!i))}const H=[4,7,5,6];function K(e){return-1!==H.indexOf(e)}function q(e){return P.includes(e)}function G(e,t="default",i=!1){let n,s,o,r=100,a=1;if("default"===t)null!=e&&(({pricescale:r,minmov:a,minmove2:s,fractional:n}=e),o=e.variable_tick_size||void 0);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),r=parseInt(e[0]),a=parseInt(e[1]),n="true"===e[2]}return i&&(a=1),{priceScale:r,minMove:a,fractional:n,minMove2:s,variableMinTick:o,ignoreMinMove:i}}function J(e,t,i=!1){const{priceScale:n,minMove:s,fractional:o,minMove2:r,variableMinTick:a}=G(e,t,i);if(null!=e){const l=e.format;if("default"===t&&"volume"===l)return new d.VolumeFormatter({precision:2});if("percent"===l)return new h.PercentageFormatter({priceScale:n,minMove:s,fractional:o,minMove2:r,variableMinTick:a,ignoreMinMove:i})}return new u.PriceFormatter({priceScale:n,minMove:s,fractional:o,minMove2:r,variableMinTick:a,ignoreMinMove:i})}function Z(e){return null!==e&&"spread"!==e.type}function X(e,t,i){if(null===e)return null;const n=!t||i?e.currency_id:e.currency_code;return void 0===n||""===n||"pct"===n?null:n}function Y(e,t){const i=t?e.original_currency_code:e.original_currency_id;return"pct"===i?null:null!=i?i:X(e,t)}function Q(e){ return e.base_currency_id||null}function ee(e){if(null===e||!Z(e))return!1;const t=Y(e);return null!==t&&t!==X(e)}function te(e,t){return t&&null!==e&&"spread"!==e.type}function ie(e,t){if(null===e||!t)return null;const i=e.unit_id;return void 0===i||""===i?null:i}function ne(e,t){return t?e.original_unit_id||ie(e,t):null}function se(e,t){return!(null===e||!te(e,t))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function oe(e,t){return null!==e&&te(e,t)?e.unit_conversion_types||null:[]}function re(e){return"futures"===e.type&&e.front_contract||null}function ae(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.some((e=>"premarket"===e.id||"postmarket"===e.id))}function le(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.filter((e=>!e.private)).length>1}function ue(e){return null!==e&&("forex"===e.type||(0,p.isCFDSymbol)(e.type,e.typespecs)||(0,r.hasCryptoTypespec)(e.typespecs||[]))}function ce(e,t,i,n){let s=e&&(i&&e.pro_name||e.full_name||e.name);return y&&t?s=t:(b||!n&&f)&&e&&e.ticker&&(s=e.ticker),_&&s&&(s=s.toUpperCase()),s}function de(e,t){return ce(e,null,!0,!0)||t}function he(e,t){var i,n;return e&&null!==(n=null!==(i=e.ticker)&&void 0!==i?i:e.pro_name)&&void 0!==n?n:t}const pe="ยท";function me(e,t){var i,n;return Pe(e)&&null!==(n=null===(i=e.source2)||void 0===i?void 0:i.description)&&void 0!==n?n:null}function ve(e,t,i="exchange"){var n;const s=null!==(n=me(e))&&void 0!==n?n:e[i];return t||S?e.name:`${e.name} ${pe} ${s}`}function ge(e){let t=e&&(re(e)||e.name)||"";return t.length>40&&(t=t.substring(0,37)+"..."),t.trim()}function fe(e){const t=e?e.exchange:"";return _?t.toUpperCase():t}function _e(e,t){return null!==e?e.full_name:t}function ye(e,t){var i;return null!==(i=null==e?void 0:e.pro_name)&&void 0!==i?i:t}function be(e){return"regular"===e||"us_regular"===e}function Se(e){return"c"===(null==e?void 0:e.visible_plots_set)}function we(e){return null!==e&&("unit"===e.measure&&null!==Te(e))}function Te(e){var t;return null!==(t=null==e?void 0:e.value_unit_id)&&void 0!==t?t:null}function Le(e){return"ohlcv"===e.visible_plots_set}function Pe(e){return null!==e&&"economic"===e.type}function Ee(e){const t=me(e);if(null!==t)return t;return(0,o.onWidget)()||"forex"===e.type?e.exchange:(0,g.redefineExchangeName)(e.listed_exchange)}function Re(e){var t;return null!==e&&"futures"===e.type&&Boolean(e.has_backadjustment&&(null===(t=e.typespecs)||void 0===t?void 0:t.includes("continuous")))}function Ce(e){var t;return null!==e&&"futures"===e.type&&!Boolean(null===(t=e.typespecs)||void 0===t?void 0:t.includes("continuous"))}function xe(e){return(0,m.combine)(((t,i)=>{switch(t){case 4:{const t=e.seriesErrorMessage();return null!==t&&("resolution_not_entitled"===t||"custom_resolution"===t||"seconds_not_entitled"===t||"ticks_not_entitled"===t||t.startsWith("study_not_auth:"))?null:{type:"invalid_symbol"}}case 13:{const t=e.seriesErrorMessage();return null===t?null:{type:"calculations_error",errorMessage:t}}case 14:{const t=e.unsupportedResolutionState().value();return null===t?null:{ type:"unsupported_resolution",reason:t.reason}}case 1:case 2:return null;default:if(i)return{type:"no_data"}}return null}),e.statusWV().weakReference(),(0,v.createWVFromGetterAndSubscription)((()=>!e.bars().size()&&!e.isInReplay().value()),e.dataEvents().dataUpdated()).ownership(),(0,v.createWVFromGetterAndSubscription)((()=>({})),e.model().onChartThemeLoaded()).ownership())}function Ie(e){var t;return Math.max(0,null!==(t=null==e?void 0:e.delay)&&void 0!==t?t:0)}},440617:(e,t,i)=>{TradingView.TIME_PLOT=0,TradingView.OPEN_PLOT=1,TradingView.HIGH_PLOT=2,TradingView.LOW_PLOT=3,TradingView.CLOSE_PLOT=4,TradingView.ADT_PLOT=6;var n=i(746118).SeriesBase,s=i(339315);class o extends n{}Object.assign(o,s),TradingView.Series=o,t.Series=o,t.isSeries=function(e){return e instanceof o}},29469:(e,t,i)=>{i.d(t,{generateSplitTitleForGui:()=>d,generateTitleForGui:()=>h});var n=i(448874),s=i(650151),o=i(444372),r=i(168883),a=i(138839);function l(e,t){return(Math.round(e*Math.pow(10,t))/Math.pow(10,t)).toString()||""}function u(e){var t;switch(e.style){case"ATR":return o.t(null,{context:"input",replace:{atrValue:String(e.atrLength)}},i(916701));case"PercentageLTP":return o.t(null,{context:"input",replace:{percentageLTPValue:String(e.percentageLTP)}},i(744955));case"Traditional":return o.t(null,{context:"input"},i(572792));default:return null!==(t=e.style)&&void 0!==t?t:""}}const c=(0,n.default)((e=>{const[,t="",i="",n="",s=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return`${t}:${i}โˆ’${n}:${s}`}));function d(e){const t="QUANDL"===(e=e||{}).exchange,n={title:"",description:"",interval:"",exchange:"",provider:"",chartStyle:"",sessionDescription:"",priceSource:""};let d="";if(e.description&&t)if(2===e.description.split("/").length)d=e.description.split("/")[1];else{e.description.split("'").filter((e=>e.length)).forEach((e=>{let t=[];t=e&&("/"===e[0]||/\d+\/\(?/.test(e))?[e]:e.split("/").filter((e=>e.length)),d+=t[2===t.length?1:0]}))}else d=e.description?e.description:e.symbol;if(e.ticker?(n.title=e.ticker,n.description=p(d)):n.title=p(d),e.interval&&(n.interval=(0,r.translatedIntervalString)(e.interval)),t&&e.description){const t=/[\w_]+\/[\w_]+/.exec(e.description);t&&t[0]?n.provider=p(t[0].split("/")[0]):n.provider=p(e.description.split("/")[0])}return e.exchange&&(n.exchange=p(e.exchange)),n.chartStyle=p(function(e){const t=e.inputs;switch(e.style){case 4:const n=u(t),r=(0,s.ensureDefined)(e.boxSize||t.boxSize);return`${o.t(null,void 0,i(20801))} [${n}, ${l(r,4)}]`;case 7:return`${o.t(null,void 0,i(717558))} [${t.lb}]`;case 5:const d=u(t),h=e.reversalAmount||t.reversalAmount,p=void 0!==h?`, ${l(h,8)}`:"";return`${o.t(null,void 0,i(292901))} [${d}${p}]`;case 6:const m=u(t),v=e.boxSize||t.boxSize;return`${o.t(null,void 0,i(145113))} [${m}, ${l((0,s.ensureDefined)(v),8)}, ${t.reversalAmount}]`;case 18:return`${o.t(null,void 0,i(494690))} [${t.periodsNum}, ${t.period}, ${t.blockSize}, ${t.ticksPerRow}]`;case 17:{const e="Auto"===t.rowSize?`ATR ${t.atrLength}`:`Manual ${t.ticksPerRow}`;let n;switch((0, s.ensureDefined)(t.type)){case a.VolumeFootprintTypeValues.BuyAndSell:n=o.t(null,void 0,i(609941));break;case a.VolumeFootprintTypeValues.Delta:n=o.t(null,void 0,i(527223));break;case a.VolumeFootprintTypeValues.Total:n=o.t(null,void 0,i(613937))}return`${o.t(null,void 0,i(178560))} [${e}, ${n}]`}case 20:{const e=o.t((0,s.ensureDefined)(t.profilesSessions),{context:"input"},i(788601)),n=o.t((0,s.ensureDefined)(t.volume),{context:"input"},i(788601)),r=o.t((0,s.ensureDefined)(t.rowsLayout),{context:"input"},i(788601));let a="";return"All"!==t.profilesSessions&&(a=`${c((0,s.ensureDefined)(t.customSession))}, ${t.customSessionTZ}, `),`${o.t(null,void 0,i(138569))} [${e}, ${a}${n}, ${t.vaVolume}, ${r}, ${t.rows}]`}}return 11===e.style?o.t(null,void 0,i(490357)):8===e.style?o.t(null,void 0,i(240530)):""}(e)),e.sessionDescription&&(n.sessionDescription=p(e.sessionDescription)),void 0!==e.priceSource&&(n.priceSource=p(e.priceSource)),n}function h(e){const t=d(e);return(e.ticker?t.description:t.title)+(t.interval?", "+t.interval:"")+function(e,t=", "){return(e.provider?`${t}${e.provider}`:"")+(e.exchange?`${t}${e.exchange}`:"")+(e.chartStyle?`${t}${e.chartStyle}`:"")+(e.branding?`${t}${e.branding}`:"")+(e.sessionDescription?`${t}${e.sessionDescription}`:"")+(e.priceSource?`${t}${e.priceSource}`:"")}(t)}function p(e){return e.replace(/'/g,"")}},379048:(e,t,i)=>{var n,s,o,r;i.r(t),i.d(t,{HAlign:()=>s,LineStyle:()=>r,MarkLocation:()=>n,VAlign:()=>o}),function(e){e.AboveBar="AboveBar",e.BelowBar="BelowBar",e.Top="Top",e.Bottom="Bottom",e.Right="Right",e.Left="Left",e.Absolute="Absolute",e.AbsoluteUp="AbsoluteUp",e.AbsoluteDown="AbsoluteDown"}(n||(n={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(s||(s={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(o||(o={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(r||(r={}))},405721:(e,t,i)=>{i.r(t),i.d(t,{StudyDataSource:()=>p});var n=i(650151),s=i(707957),o=i(195447),r=i(917180),a=i(173220),l=i(989709),u=i(529968),c=i(799567);const d=(0,i(201089).getLogger)("Chart.StudyDataSource");var h;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingParent=2]="AwaitingParent",e[e.AwaitingFirstDataUpdate=3]="AwaitingFirstDataUpdate",e[e.Active=4]="Active"}(h||(h={}));class p{constructor(e,t,i,n){this._inputs=null,this._status=h.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:c.StudyStatusType.Undefined},this._studyStatusChanged=new s.Delegate,this._dataCleared=new s.Delegate,this._dataUpdated=new s.Delegate,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=n,this._seriesSource=t,this._turnaroundPrefix=i,this._plots=new o.PlotList((0,l.studyPlotFunctionMap)(n),l.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged),this._graphics=new u.LiveStudyGraphics(n.graphics)}destroy(){this.stop(), this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._seriesSource.dataEvents().created().unsubscribeAll(this)}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:c.StudyStatusType.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===h.Active&&this._changeStatusTo(h.AwaitingFirstDataUpdate))}isStarted(){return this._status!==h.Idle}isActive(){return this._status===h.Active}start(){this.isStarted()?d.logNormal("start: data source is already started, nothing to do"):((0,n.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(h.AwaitingConnection))}stop(){this.isStarted()?(null!==this._studyId&&(this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:c.StudyStatusType.Undefined})),this._changeStatusTo(h.Idle)):d.logNormal("stop: data source is already stopped, nothing to do")}studyId(){return this._studyId}studyStatus(){return this._studyStatus}studyStatusChanged(){return this._studyStatusChanged}plots(){return this._plots}graphics(){return this._graphics}clearData(){this._plots.clear(),this._graphics.clear(),this._dataCleared.fire()}stopAndStealData(){(0,n.assert)(this._status===h.Active,"Couldn't steal data from non-active data source"),this.stop();const e=this._plots,t=this._graphics.extract();return this._plots=new o.PlotList((0,l.studyPlotFunctionMap)(this._metaInfo),l.studyEmptyPlotValuePredicate),{plots:e,graphics:t}}dataCleared(){return this._dataCleared}dataUpdated(){return this._dataUpdated}moveData(e){this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>{this._plots.move(e)}))}pendingUpdatesReady(){return this._ongoingDataUpdate}_createStudyError(e){return{type:c.StudyStatusType.Error,errorDescription:this._getStudyErrorDescription(e)}}_getStudyErrorDescription(e){return"string"==typeof e?{error:e.split(":",2)[0]}:e}_changeStatusTo(e){(0,n.assert)(this._status!==e,"Source and destination status should be distinct"),d.logNormal(`Status changed from ${h[this._status]} to ${h[e]}`),this._status=e}_createStudy(){const e=this._seriesSource.instanceId();null!==e?this._createStudyUsingParentId(e):(this._changeStatusTo(h.AwaitingParent),this._seriesSource.dataEvents().created().subscribe(this,this._onSeriesCreated,!0))}_createStudyUsingParentId(e){(0,n.assert)(this._status!==h.Active,'Status should not be "Active" when creating a study'),(0,n.assert)(this._studyStatus.type===c.StudyStatusType.Undefined,'Study status should be "Undefined" when creating a study'),(0,n.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=(0,a.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,this._metaInfo.fullId+("tv-basicstudies"===this._metaInfo.packageId?"":"!"),(0, n.ensureNotNull)(this._inputs),this._onMessage.bind(this),{id:this._metaInfo.id}),this._changeStatusTo(h.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===h.AwaitingConnection&&this._createStudy()}_onGatewayDisconnected(){this._status!==h.Idle&&this._status!==h.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(h.AwaitingConnection),this._studyStatus.type!==c.StudyStatusType.Undefined&&this._onStudyStatusChangedTo({type:c.StudyStatusType.Undefined})),this._turnaroundCounter=1}_onSeriesCreated(){this._status===h.AwaitingParent&&this._createStudyUsingParentId((0,n.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,d.logNormal(`Study status type changed from ${c.StudyStatusType[t.type]} to ${c.StudyStatusType[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){const{customId:t,turnaround:i,plots:s,nonseries:o}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(s,(0,n.ensureDefined)(o))}else if("study_loading"===e.method){const[t,i,n]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(n)}else if("study_completed"===e.method){const[t,i,n]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(n)}else if("study_error"===e.method){const[t,i,n,s,o]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(n,s,o)}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=(0,r.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>i),(()=>i)).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){this._status!==h.Idle&&(this._status===h.AwaitingFirstDataUpdate&&(this._changeStatusTo(h.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?((0,n.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:c.StudyStatusType.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData(),this._onStudyStatusChangedTo(this._createStudyError(e))}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:c.StudyStatusType.Completed})}_mergePlots(e){this._plots.merge(e)}_turnaround(){return`${this._turnaroundPrefix}${this._turnaroundCounter}`}_checkTurnaround(e){const t=this._turnaround();return e===t||e===this._seriesSource.turnaround()||e===`${this._seriesSource.turnaround()}_${t}`}}},309858:(e,t,i)=>{window.TradingView=window.TradingView||{},i(922651),i(778785).setClasses(),i(30285),i(128327).install(),i(638456),i(389137),i(586463),i(730128),i(944801),i(934440),i(529366),i(125226),i(49437),i(461794),i(151874),i(62802)},377993:(e,t,i)=>{i(309858) ;var n=i(650151),s=i(62802),o=i.n(s),r=i(244842);r.enabled("use_localstorage_for_settings")&&o().sync(void 0);var a=i(444372),l=i(42292),u=i(325050),c=i.n(u),d=i(342395),h=i(318172),p=i(199639),m=i(583912),v=i(59171),g=i.n(v),f=i(934440),_=i.n(f),y=i(876332),b=i(444331),S=i(223699),w=i(276871);function T(){return Promise.all([i.e(31424),i.e(45702)]).then(i.bind(i,577602))}var L=i(401580);class P{constructor(e,t){this._visibility=new L.WatchedValue(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t,i){var n,s,o;const r=Array.isArray(e)?e:[],a=Array.isArray(e)?void 0:e;null===this._dialog&&this._requestDialog(null!=r?r:[],t,i,a),null===(n=this._dialog)||void 0===n||n.open(null!=r?r:[],null===(o=null===(s=this._options)||void 0===s?void 0:s.indicatorsPreloader)||void 0===o?void 0:o.getIndicatorPromises(),t,i,a)}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}getDialog(){return this._dialog}resetAllPages(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()}_requestDialog(e,t,n,s){var o;if(null===this._dialogPromise){let r;r=(null===(o=this._options)||void 0===o?void 0:o.onWidget)?Promise.all([i.e(38244),i.e(32662),i.e(5987),i.e(98996),i.e(43387),i.e(66458),i.e(5761),i.e(4343),i.e(28430),i.e(70428),i.e(70621),i.e(89508),i.e(62033),i.e(13633),i.e(36827),i.e(85258),i.e(63751),i.e(87473),i.e(10637),i.e(7879),i.e(5824),i.e(57254),i.e(31500),i.e(40297),i.e(96356),i.e(37578),i.e(56676),i.e(62025),i.e(65916),i.e(34848),i.e(90385),i.e(92833),i.e(36853),i.e(4571),i.e(20394),i.e(6456)]).then(i.bind(i,4748)).then((e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options))):Promise.all([i.e(38244),i.e(32662),i.e(5987),i.e(98996),i.e(43387),i.e(66458),i.e(5761),i.e(4343),i.e(28430),i.e(70428),i.e(70621),i.e(89508),i.e(62033),i.e(13633),i.e(36827),i.e(85258),i.e(63751),i.e(87473),i.e(10637),i.e(7879),i.e(5824),i.e(57254),i.e(31500),i.e(40297),i.e(96356),i.e(37578),i.e(56676),i.e(62025),i.e(65916),i.e(34848),i.e(90385),i.e(92833),i.e(36853),i.e(4571),i.e(20394),i.e(6456)]).then(i.bind(i,518828)).then((e=>new e.IndicatorsContainer(this._chartWidgetCollection))),this._dialogPromise=r.then((i=>{var o,r;this._dialog=i,this._dialog.visible().subscribe((e=>{this._visibility.setValue(e)})),this._dialog.open(e,null===(r=null===(o=this._options)||void 0===o?void 0:o.indicatorsPreloader)||void 0===r?void 0:r.getIndicatorPromises(),t,n,s)}))}return this._dialogPromise}}var E=i(618820),R=i(429874),C=i(331633),x=i(778785),I=i(606311),A=i(628544);const k={8:[I.timeFrames.ytd,I.timeFrames["12m"],I.timeFrames["60m"],I.timeFrames.all],3:[I.timeFrames["1d"],I.timeFrames["5d"],I.timeFrames["1m"],I.timeFrames["3m"],I.timeFrames["6m"],I.timeFrames.ytd,I.timeFrames["12m"],I.timeFrames["60m"],I.timeFrames.all]};function D(e,t){return null!==e?(k[3]||[]).filter((t=>null===(0,A.getResolutionUnsupportedReason)(e,t.targetResolution))):(9===t&&(t=3),6===t&&(t=8),k[t]||[])}function F(e,t,i){const n={name:e,frameElementId:t, data:i};window.parent.postMessage(n,"*")}function M(e,t){function i(i){i.data&&i.data.name&&i.data.name===e&&t(i.data.data)}return window.addEventListener("message",i,!1),()=>{window.removeEventListener("message",i,!1)}}var O,V;function z(e){return"seekingalpha"===e||"smartlab-custom"===e?Promise.all([i.e(2941),i.e(5987),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(36827),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(82452),i.e(91986),i.e(71093),i.e(5400),i.e(5824),i.e(67154),i.e(88484),i.e(42616),i.e(40297),i.e(85573),i.e(51484),i.e(58700),i.e(77849),i.e(94958),i.e(67346),i.e(90385),i.e(56694),i.e(38637),i.e(94870),i.e(61309)]).then(i.bind(i,461309)):"cme"===e?Promise.all([i.e(2941),i.e(5987),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(36827),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(82452),i.e(91986),i.e(71093),i.e(5400),i.e(5824),i.e(67154),i.e(88484),i.e(42616),i.e(40297),i.e(85573),i.e(51484),i.e(58700),i.e(77849),i.e(94958),i.e(90385),i.e(56694),i.e(38637),i.e(94870),i.e(66660)]).then(i.bind(i,666660)):Promise.all([i.e(2941),i.e(5987),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(36827),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(82452),i.e(91986),i.e(71093),i.e(5400),i.e(5824),i.e(67154),i.e(88484),i.e(42616),i.e(40297),i.e(85573),i.e(51484),i.e(58700),i.e(77849),i.e(94958),i.e(90385),i.e(56694),i.e(38637),i.e(94870),i.e(99304)]).then(i.bind(i,399304))}!function(e){let t;!function(e){e.SetSymbol="set-symbol",e.SetInterval="set-interval"}(t=e.Names||(e.Names={}))}(O||(O={})),function(e){let t;!function(e){e.SymbolClick="tv-widget-symbol-click",e.WidgetLoad="tv-widget-load",e.WidgetReady="tv-widget-ready",e.ResizeIframe="tv-widget-resize-iframe",e.NoData="tv-widget-no-data"}(t=e.Names||(e.Names={}))}(V||(V={}));var B=i(885482),N=i(616117),W=i(638456),$=i(470316);const U=["LineToolTrendLine","LineToolRay","LineToolInfoLine","LineToolExtended","LineToolRegressionTrend","LineToolRotatedRectangle","LineToolParallelChannel","LineToolFlatBottom","LineToolDisjointAngle","LineToolPitchfork","LineToolSchiffPitchfork","LineToolSchiffPitchfork2","LineToolInsidePitchfork","LineToolVertLine","LineToolCrossLine","LineToolHorzLine","LineToolHorzRay","LineToolTrendAngle"];function j(e,t=!1,o=!1){if(!r.enabled("popup_hints"))return;const l=e.getContainer();let u=null,c=null,d=null;function h(e,t){if(c)c.show(e,m.bind(null,t));else{const n=B.tool.value();Promise.all([i.e(66458),i.e(51439),i.e(90385),i.e(26166)]).then(i.bind(i,410837)).then((i=>{c=new i.ChartEventHintRenderer(l),n===B.tool.value()&&c.show(e,m.bind(null,t))}))}}function p(e){return!Boolean(s.getBool(e))}function m(e){s.setValue(e,!0,{forceFlush:!0}),(0,n.ensureNotNull)(c).destroy(),null!==d&&d(),c=null}B.tool.subscribe((function(){const t=B.tool.value(),n=W.CheckMobile.any();if(null==u||u.hide(),o&&n&&function(e){return U.includes(e)}(t))return void async function(t){{const n=()=>(0,B.resetToCursor)(!0);if(u)u.show(t,n);else{ const{DrawingHintsRenderer:s}=await Promise.all([i.e(36827),i.e(3880),i.e(90385),i.e(35858)]).then(i.bind(i,953745));u=new s(e),t===B.tool.value()&&u.show(t,n)}}}(t);if(!p("hint.touchPainting"))return;const s=(0,N.isLineToolDrawWithoutPoints)(t);!(0,N.isStudyLineToolName)(t)||"LineToolRegressionTrend"===t||s||n?(0,N.isLineToolName)(t)&&!(0,N.isLineDrawnWithPressedButton)(t)&&!s&&n?h(a.t(null,void 0,i(967861)),"hint.touchPainting"):c&&c.hide():h(a.t(null,void 0,i(632234)),"hint.touchPainting")})),B.createdLineTool.subscribe(null,(function(){const e=B.tool.value();"LineToolPath"===e&&p("hint.finishBuildPathByDblClick")?h(a.t(null,void 0,i(605828)),"hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&p("hint.finishBuildPolylineByDblClick")&&h(a.t(null,void 0,i(763898)),"hint.finishBuildPolylineByDblClick")})),B.finishedLineTool.subscribe(null,(function(){if(c){const e=B.tool.value();"LineToolPath"===e?m("hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&m("hint.finishBuildPolylineByDblClick")}})),e.layoutSizesChanged().subscribe((function(){if(!p("hint.startResizingChartInLayout"))return;h(a.t(null,void 0,i(135273)),"hint.startResizingChartInLayout")})),t||W.CheckMobile.any()||!p("hint.startFocusedZoom")||(d=function(e,t){let i=!1;const n=s=>{s?(i&&t(s),e.onZoom().unsubscribe(null,n)):i||(t(s),i=!0)};return e.onZoom().subscribe(null,n),()=>e.onZoom().unsubscribe(null,n)}(e,(function(e){if(!p("hint.startFocusedZoom"))return;if(e)c&&(d=null,m("hint.startFocusedZoom"));else{const e=$.isMacKeyboard?"โŒ˜":"Ctrl";h(a.t(null,void 0,i(35963)).format({key:e}),"hint.startFocusedZoom")}})))}var H=i(251954);function K(e,t){const s=a.t(null,void 0,i(678104)).format({emoji:"๐Ÿ‘"}),o=a.t(null,void 0,i(812011)).format({emoji:"๐Ÿ‘"}),r=a.t(null,void 0,i(979393)).format({emoji:"๐Ÿ‘"});H.on("onServerScreenshotCopiedToClipboard",(()=>c(s)),null),H.on("onClientScreenshotCopiedToClipboard",(()=>c(o)),null),H.on("onServerScreenshotEmbedCodeCopiedToClipboard",(()=>c(r)),null);let l=null;const u=e.getContainer();function c(e){l?l.show(e):Promise.all([i.e(4343),i.e(13031),i.e(76773),i.e(90385),i.e(30092)]).then(i.bind(i,360126)).then((i=>{l||(l=new i.ChartScreenshotHintRenderer((0,n.ensureNotNull)(u),{bottomPadding:t.seriesControlBarEnabled}),l.show(e))}))}}var q=i(261309),G=i(564894);class J{constructor(e=[]){this._list={id:"DEFAULT_SINGLE_WATCHLIST",type:"custom",name:a.t(null,void 0,i(213402)),description:null,symbols:[...e],shared:!1,persistedState:null}}getCustomWatchLists(){return Promise.resolve([this._list])}getSymbols(e){return Promise.resolve(this._list.symbols)}createWatchList(e){throw new Error("not implemented")}putWatchList(e){throw new Error("not implemented")}removeWatchList(e){throw new Error("not implemented")}renameWatchList(e,t){return Promise.resolve(null)}replaceSymbols(e,t){return this._list.symbols=[...t],Promise.resolve(this._list.symbols)}addSymbols(e,t){return this._list.symbols.push(...t),Promise.resolve(this._list.symbols)}removeSymbols(e,t){ return this._list.symbols=this._list.symbols.filter((e=>!t.includes(e))),Promise.resolve(this._list.symbols)}setActive(e){return Promise.resolve(this._list)}getActive(){return Promise.resolve(this._list)}changeDescription(e,t){throw new Error("not implemented")}getCustomWatchlist(e){throw new Error("not implemented")}renameSeparator(e,t,i){return Promise.resolve(null)}}var Z=i(541558),X=i(707957);const Y=new X.Delegate,Q=new X.Delegate,ee=new X.Delegate,te=new X.Delegate,ie=new X.Delegate;class ne{constructor(e=[],t=s){if(this._lists={},this._activeListSettingsKey="widgetbar.widget.watchlist",r.enabled("trading_terminal")&&(this._activeListSettingsKey+="terminal"),this._settings=t,this._settings.onSync.subscribe(this,this._updateLists),this._updateLists(),0===Object.keys(this._lists).length){const t=this._createList({title:this._pickTitle(),symbols:[...e]});this.setActive(t.id)}}destroy(){this._settings.onSync.unsubscribeAll(this)}getCustomWatchLists(){this._updateLists();const e=[];return Object.keys(this._lists).forEach((t=>{const i=this._getList(t);i&&e.push(this._toSymbolList(i))})),Promise.resolve(e)}createWatchList(e){const t=this._createList({id:e.id,title:e.name||this._pickTitle(),symbols:e.symbols||[]});return ee.fire(t.id,[...t.symbols]),Promise.resolve(this._toSymbolList(t))}putWatchList(e){this._updateLists();const t=this._getList(e.id),i=null==t?void 0:t.title,n=e.name;return this.saveList({id:e.id,symbols:e.symbols,title:e.name}),void 0!==i&&i!==n&&ie.fire(e.id,i,n),null!==t?Y.fire(e.id):ee.fire(e.id,e.symbols),Promise.resolve(e)}removeWatchList(e){const{id:t}=e;return this._settings.remove(`savedwatch.${t}`,{forceFlush:!0}),delete this._lists[t],te.fire(t),Promise.resolve()}renameWatchList(e,t){this._updateLists();const{name:i}=e;return e.name=t,this.saveList({id:e.id,symbols:e.symbols,title:t}),ie.fire(e.id,i,t),Promise.resolve(null)}replaceSymbols(e,t){const i=this._getList(e.id);return null===i||(i.symbols=[...t],this.saveList(i),Y.fire(e.id)),Promise.resolve(null)}addSymbols(e,t){const i=this._getList(e.id);return null===i?Promise.resolve([]):(i.symbols.push(...t),this.saveList(i),Y.fire(e.id),Promise.resolve([...i.symbols]))}removeSymbols(e,t){const i=this._getList(e.id);return null===i?Promise.resolve([]):(i.symbols=i.symbols.filter((e=>!t.includes(e))),this.saveList(i),Y.fire(e.id),Promise.resolve([...i.symbols]))}setActive(e){return this._settings.setValue(this._activeListSettingsKey,e),Q.fire(),Promise.resolve(null)}getActive(){const e=this._getActive();return Promise.resolve(this._toSymbolList(e))}changeDescription(e,t){throw new Error("not implemented")}renameSeparator(e,t,i){this._updateLists();const n=this._getList(e);if(null===n)return Promise.resolve(null);const s=n.symbols.findIndex((e=>e===t));return n.symbols[s]=i,this.saveList(n),Y.fire(e),Promise.resolve(null)}saveList(e){const t={symbols:e.symbols,title:String(e.title)};this._settings.setJSON(`savedwatch.${e.id}`,t,{forceFlush:!0}),this._lists[e.id]=t}getCustomWatchlist(e){throw new Error("not implemented")}_createList(e){var t ;const i={id:null!==(t=e.id)&&void 0!==t?t:(0,Z.randomHash)(),symbols:e.symbols,title:e.title};return this.saveList(i),i}_getList(e){if(this._updateLists(),this._lists.hasOwnProperty(e)){const t=this._lists[e];return{id:e,symbols:t.symbols.slice(),title:t.title}}return null}_toSymbolList(e){return{type:"custom",id:e.id,name:e.title,description:null,symbols:e.symbols,shared:!1,persistedState:null}}_updateLists(){this._lists={};this._settings.keys().forEach((e=>{const t=/^savedwatch\.(.*)$/.exec(e);if(!t)return;const i=t[1],n=this._settings.getJSON(e,null);n&&(n.symbols||(n.symbols=[]),this._lists[i]=n)}))}_getActive(){const e=this._settings.getValue(this._activeListSettingsKey),[t,i]=Object.entries(this._lists)[0],n={id:t,...i};return void 0!==e&&this._getList(e)||n}_pickTitle(){this._updateLists();const e=Object.keys(this._lists).map((e=>this._lists[e].title));for(let t=1;;t++){const n=a.t(null,void 0,i(213402))+(t>1?` (${t})`:"");if(-1===e.indexOf(n))return n}}}var se=i(581996);class oe{constructor(e){this._document=e,this.isFullscreen=new L.WatchedValue;const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{27!==(0,$.hashFromEvent)(e)||e.defaultPrevented||(e.preventDefault(),this.exit())},this._element=e}enter(){this.isFullscreen.setValue(!0),H.emit("onInternalFullscreenShow"),this._element.addEventListener("keydown",this._handleExit)}exit(){this.isFullscreen.setValue(!1),H.emit("onInternalFullscreenHide"),this._element.removeEventListener("keydown",this._handleExit)}}var ae=i(554433),le=i(314802);function ue(e,t){let i=0;for(const{min:n,max:s}of t){if(e0&&t.push({min:e,max:n})}return t.sort(((e,t)=>e.min-t.min||e.max-t.max)),t}function de(e,t){if(e.length!==t.length)return!1;for(let i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}const he=r.enabled("no_min_chart_width"),pe=r.enabled("bypass_chart_height_check");function me(e){ const t=r.enabled("side_toolbar_in_fullscreen_mode"),i=r.enabled("header_in_fullscreen_mode");return"center"===e||"left"===e&&t||"top"===e&&i}const ve=[...D(null,3)];ve.splice(7,0,I.timeFrames["24m"]);var ge=i(971417),fe=i(792795),_e=i(466931);const ye={whitelabel:!0,permissionOverrides:!0};var be,Se,we,Te,Le,Pe=i(125226),Ee=i(768261);const Re=(0,Pe.isFeatureEnabled)("disable-calendar-advanced-chart-widget"),Ce=window.initData,xe=window.initData.widgetDefaults,Ie=function(e,t=[],i){return function(e,t,i,n=[],s){const o=i.slice(1),r=decodeURIComponent(o);let a={};try{""!==r&&(a=JSON.parse(r),void 0!==s&&s(e,a),Object.keys(a).forEach((e=>{(ye[e]||n.includes(e))&&delete a[e]})))}catch(e){a={},console.warn("Hash params parsing error! Hash params ignored.")}const l=t.slice(1),u=t.includes("%")?decodeURIComponent(l):t,c=new URLSearchParams(u);let d={};try{c.forEach(((e,t)=>{n.includes(t)||(d[t]=e)})),void 0!==s&&s(e,d)}catch(e){d={},console.warn("Search query params parsing error! Search query params ignored.")}return Object.assign({},e,a,d)}(e,location.search,location.hash,t,i)}(xe);Re&&(Ie.calendar=!1);const Ae=void 0!==Ie.extended_hours?at(Ie.extended_hours)?"extended":"regular":void 0!==xe.def_extended_hours?at(xe.def_extended_hours)?"extended":"regular":xe.def_session_id;const ke=xe.customer,De=xe.customerReadableName,Fe=Ie.range||xe.def_range,Me=at(null!==(be=Ie.withdateranges)&&void 0!==be?be:xe.def_withdateranges),Oe=at(null!==(Se=Ie.save_image)&&void 0!==Se?Se:Ce.def_save_image,!0);let Ve;(void 0===Ie.allow_symbol_change?at(xe.def_hide_symbol_edit):!at(Ie.allow_symbol_change))&&(r.setEnabled("header_symbol_search",!1),r.setEnabled("disable_legend_inplace_symbol_change",!0)),r.setEnabled("header_screenshot",Boolean(Oe)),"bovespa"===ke&&(r.disable("header_settings"),Ve=[{symbol:"IBOV",title:"Bovespa Index"},{symbol:"IBXX",title:"Brazil 100 Index"},{symbol:"IBXL",title:"Brazil 50 Index"},{symbol:"IBRA",title:"Brazil Broad-Based Index"},{symbol:"IGCX",title:"Special Corporate Governance Stock Index"},{symbol:"ITAG",title:"Special Tag-Along Stock Index"},{symbol:"IGNM",title:"Novo Mercado Corporate Governance Equity Index"}]),window.pro=new h.Pro(window.shopConf);let ze=Ie.symbol||xe.def_symbol||window.DEFAULT_SYMBOL;"cme"===Ie.symbology&&(ze=(e=>{var t;const i=new(g().SymbolToken)(e);if(!i.root())return e;const n=p.CMEToTVSymbologyAdapter.convertSymbolDataToTV(i.root(),i.exchange(),null!==(t=Ie.venue)&&void 0!==t?t:"");return"ok"!==n.status?e:(n.data.symbol&&i.root(n.data.symbol),n.data.exchange&&i.exchange(n.data.exchange),i.toString())})(ze));const Be=_()(parent),Ne=[];let We,$e=[];if(Ie.watchlist&&($e=(Array.isArray(Ie.watchlist)?Ie.watchlist:Ie.watchlist.split(/\x1f/)).map((e=>e.trim())).filter(Boolean)),$e.length||Ie.editablewatchlist){const e={type:"watchlist",properties:{list:$e}};Ie.editablewatchlist?(e.readonly=!1,e.data={hideTitleButton:!0},e.settingsKey="onwidget.watchlist",e.unAuthEditable=!0,function(e){const t=new ne(e);(0,G.registerService)(q.SYMBOL_LIST_REPOSITORY_BACKEND_SERVICE,t)}($e)):function(e){ const t=new J(e);(0,G.registerService)(q.SYMBOL_LIST_REPOSITORY_BACKEND_SERVICE,t)}($e),Ne.push(e)}at(Ie.details)&&Ne.push({type:"detail"}),void 0!==Ie.widgetbar_width&&(We=+Ie.widgetbar_width),(!We||!isFinite(We)||We<200)&&(We=200);const Ue=Ne.length?[{name:"base",title:a.t(null,void 0,i(744843)),icon:"base",widgets:Ne.map((e=>e))}]:[];Ie.hotlist&&Ue.push({name:"hotlist",title:a.t(null,void 0,i(225669)),icon:"hotlists",widgets:[{type:"hotlist",properties:{exchangeByLocale:{default:window.COUNTRY_CODE_TO_DEFAULT_EXCHANGE.en},groupByLocale:{default:"volume_gainers"}}},{type:"hotlist",properties:{exchangeByLocale:{default:window.COUNTRY_CODE_TO_DEFAULT_EXCHANGE.en},groupByLocale:{default:"percent_change_gainers"}}},{type:"hotlist",properties:{exchangeByLocale:{default:window.COUNTRY_CODE_TO_DEFAULT_EXCHANGE.en},groupByLocale:{default:"percent_change_loosers"}}}]}),Ie.calendar&&Ue.push({name:"calendar",title:a.t(null,void 0,i(825034)),icon:"calendar",widgets:[{type:"reuters_calendar",properties:{}},{type:"earnings_calendar",properties:{}}]});const je=new class{constructor(e,t){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",`${e}px`,"important")},this._window=e,this._fullscreenApi=t?new re(e.document.body):new oe(e.document),this._viewportType=W.CheckMobile.iOS()&&!(0,le.isOnMobileAppPage)("any")&&this._window.visualViewport?"visual":"quirks","visual"===this._viewportType?this._viewport=(0,n.ensure)(this._window.visualViewport):this._viewport=this._window;const i=this._layoutSizeSensor=this._window.document.createElement("div");i.id="layout-size-sensor",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.right="0",i.style.bottom="0",i.style.pointerEvents="none",i.style.visibility="hidden",this._initFullscreen()}allocate(){this.free();const e=this._window.document,t=e.createElement("div");t.classList.add("js-rootresizer__contents"),t.style.position="relative",t.style.width="100%",t.style.height="100%",e.body.insertAdjacentElement("afterbegin",t),e.body.insertAdjacentElement("afterbegin",this._layoutSizeSensor),this._visibilityApi=new ae.VisibilityApi(this._window.document);const i={alive:new L.WatchedValue(!0),fullscreenable:new L.WatchedValue(!0),container:new L.WatchedValue(t),width:new L.WatchedValue,height:new L.WatchedValue,availWidth:new L.WatchedValue,availHeight:new L.WatchedValue,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:()=>{i.alive.setValue(!1)},attach:()=>{i.alive.setValue(!1),this._window.close()},requestFullscreen:()=>{this._requestFullscreen()},exitFullscreen:()=>{this._exitFullscreen()}};return i.alive.subscribe((e=>{e||i!==this._area||this.free()})),this._area=i,this._resizeHandler=()=>{const e=this._width(i)||800,t=this._height(i)||600;i.availHeight.setValue(t),i.availWidth.setValue(e),i.height.setValue(t),i.width.setValue(e)},this._area.height.subscribe(this._updateDocumentHeight,{callWithLast:!0}),this._resizeHandler(), this._viewport.addEventListener("resize",this._resizeHandler),new se.ResizerDetacherState(i).bridge()}free(){if(this._resizeHandler&&(this._viewport.removeEventListener("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){const e=this._area;this._area=void 0,e.height.unsubscribe(this._updateDocumentHeight),e.alive.setValue(!1);const t=e.container.value(),i=null==t?void 0:t.parentElement;i&&(i.removeChild(t),i.removeChild(this._layoutSizeSensor))}}_height(e){if("visual"===this._viewportType)return this._layoutSizeSensor.clientHeight;return e.container.value().clientHeight}_width(e){return e.container.value().clientWidth}_requestFullscreen(){this._fullscreenApi.enter()}_exitFullscreen(){this._fullscreenApi.exit()}_initFullscreen(){this._fullscreenApi.isFullscreen.subscribe((e=>{this._resizeHandler&&this._resizeHandler()}))}}(window),He=new class{constructor(e){this._processVisibility=e=>{const t=e.container.value();return this.affectsLayout(e.name)?(t&&t.classList.toggle("js-hidden",!1),!0):(t&&t.classList.toggle("js-hidden",!0),!1)},this._setWidth=(e,t,i)=>{let n=i;this._fullscreenArea!==e.name&&(e.availWidth.setValue(i),e.canNegotiate.width&&(n=ue(i,e.negotiations.width))),t||(n=0);const s=e.container.value();return s&&t&&(s.style.width=n+"px"),e.width.setValue(n),n},this._setHeight=(e,t,i)=>{let n=i;this._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(n=ue(i,e.negotiations.height))),t||(n=0);const s=e.container.value();return s&&t&&(s.style.height=n+"px"),e.height.setValue(n),n};const t=e.container.value();if(!t)throw new Error("bridge.container.value() must be an element");this._container=t,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe((()=>this.recalculate())),this._height.subscribe((()=>this.recalculate())),this._bridge.visible.subscribe((()=>this._updateVisibility())),this._bridge.fullscreen.subscribe((()=>this._onParentFullscreenChange())),this.recalculate()}allocate(e){const t=e&&e.areaName;if(-1===this._availableAreas.indexOf(t))throw new Error("unknown options.areaName");this.free(t);const i=this._createDOM(t),n={name:t,canNegotiate:{width:"left"===t||"right"===t||"tradingpanel"===t||"topleft"===t,height:"top"===t||"bottom"===t||"topleft"===t||"extratop"===t},negotiations:{width:[],height:[]},remove:()=>{for(const e in this._areas)this._areas[e]===n&&this.free(e)},negotiateWidth:e=>{if(!n.canNegotiate.width)return;const t=ce(e);de(n.negotiations.width,t)||(n.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!n.canNegotiate.height)return;const t=ce(e);de(n.negotiations.height,t)||(n.negotiations.height=t,this.recalculate())},requestFullscreen:()=>{this._fullscreenArea||("right"!==t&&"center"!==t||(this._fullscreenArea=t),"center"===t&&this._bridge.requestFullscreen(),this._updateFullscreen())},exitFullscreen:()=>{ t===this._fullscreenArea&&(this._fullscreenArea=void 0,"center"===t&&this._bridge.exitFullscreen(),this._updateFullscreen())},width:new L.WatchedValue,height:new L.WatchedValue,availWidth:new L.WatchedValue,availHeight:new L.WatchedValue,alive:new L.WatchedValue(!0),container:new L.WatchedValue(i),visible:new L.WatchedValue(!0),fullscreen:new L.WatchedValue(!1),fullscreenable:new L.WatchedValue("right"===t||"center"===t),rdState:new se.ResizerDetacherState};return n.rdState.pushOwner(n),this._areas[t]=n,n.rdState.owner.subscribe((e=>{const i=n.container.value();if(e!==n)i&&(i.innerHTML="",i.parentElement&&i.parentElement.removeChild(i));else{let e=null;for(let i=this._availableAreas.indexOf(t);i--;){const t=this._availableAreas[i];if(this.affectsLayout(t)){e=this._areas[t].container.value();break}}i&&(e&&i.parentElement?i.insertAdjacentElement("afterend",e):this._container.appendChild(i))}this.recalculate()}),{callWithLast:!0}),n.rdState.bridge()}free(e){const t=this._areas[e];if(!t)return;this._areas[e]=void 0;const i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}recalculate(){const e={};this._recalcSingleRunToken=e;const t=this._areas.topleft,i=this._areas.left,n=this._areas.tradingpanel,s=this._areas.right,o=this._areas.top,r=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,u=this._width.value(),c=this._height.value();let d=0,h=0,p=0,m=0,v=0,g=0,f=0,_=0;if(e===this._recalcSingleRunToken&&l){const e=this._processVisibility(l);_=this._setHeight(l,e,c),this._setWidth(l,e,u)}if(e===this._recalcSingleRunToken&&t){const e=this._processVisibility(t);f=this._setHeight(t,e,c),g=this._setWidth(t,e,u);const i=t.container.value();e&&i&&(i.style.top=_+"px")}let y=0;if(e===this._recalcSingleRunToken&&o){const e=this._processVisibility(o),t=o.container.value();e&&t&&(t.style.left=g+"px",t.style.top=_+"px");const i=u-g;this._setWidth(o,e,i),d=this._setHeight(o,e,c),d&&(y=1)}if(e===this._recalcSingleRunToken&&i){const e=this._processVisibility(i),t=Math.max(f,d);p=this._setWidth(i,e,u),p&&(p+=4),p&&1===y&&(y=4);const n=i.container.value();e&&n&&(n.style.top=t+_+y+"px"),this._setHeight(i,e,c-t-_)}if(e===this._recalcSingleRunToken&&n){const e=this._processVisibility(n);let t=u-p;he||(t-=300),v=this._setWidth(n,e,t),v&&1===y&&(y=4),this._setHeight(n,e,c-_-d-y)}if(e===this._recalcSingleRunToken&&s){const e=this._processVisibility(s);let t=u-p-v;he||(t-=300),m=this._setWidth(s,e,t),m&&1===y&&(y=4),this._setHeight(s,e,c-_-d-y);const i=s.container.value();e&&i&&(i.style.top=d+_+y+"px")}const b=v+m;let S=0,w=u-p-v-m-(b?4:0);const T=Boolean(v||!b);if(!m&&v&&(w+=4),e===this._recalcSingleRunToken&&r){const e=this._processVisibility(r),t=r.container.value();e&&t&&(t.style.left=p+"px",t.classList.toggle("no-border-top-left-radius",!p),t.classList.toggle("no-border-top-right-radius",T)),this._setWidth(r,e,w);const i=c-_;S=Math.min(300,i-0),h=this._setHeight(r,e,i)+4}const L=Boolean(d&&(p||b));if(this._container.classList.toggle("layout-with-border-radius",L), e===this._recalcSingleRunToken&&a){const e=this._processVisibility(a),t=a.container.value();e&&t&&(t.style.left=p+"px",t.style.top=d+_+y+"px",t.classList.toggle("no-border-bottom-left-radius",!h||!p),t.classList.toggle("no-border-bottom-right-radius",T||!h),t.classList.toggle("no-border-top-left-radius",Boolean(!p&&b)),t.classList.toggle("no-border-top-right-radius",T)),this._setWidth(a,e,w);const i=c-d-h-_-y;this._setHeight(a,e,Math.max(i,S))}if(e===this._recalcSingleRunToken&&n&&this.affectsLayout("tradingpanel")){const e=n.container.value();e&&(e.style.right=v&&m?`${m+4}px`:`${m}px`,e.style.top=_+d+y+"px",e.style.borderTopRightRadius=L&&m?"4px":"0px")}e===this._recalcSingleRunToken&&this._updateVisibility()}affectsLayout(e){const t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return me(e);if(this._width.value()<=567||this._height.value()<=445&&!pe){if(!["center","top","left","topleft","extratop"].includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;te.value.value===Ze)));e&&(Ie.range=Fe,Ie.interval=e.targetResolution)}var Ze;let Xe,Ye;Xe=void 0===Ie.interval?void 0===Ie.style?null!==(Te=xe.def_interval)&&void 0!==Te?Te:"1":(0,w.getDefaultResolution)((0,b.isRangeStyle)(parseInt(Ie.style))):Ie.interval,Ye=void 0===Ie.style?void 0===Ie.interval?null!==(Le=xe.def_style)&&void 0!==Le?Le:1:(0,b.getDefaultStyle)(S.Interval.isRange(Ie.interval)):parseInt(Ie.style);const Qe=window.chartWidgetCollection=new(c())({resizerBridge:Ge,padding:5,edge:Number(Ie.padding)||0,publishedChartsEnabled:!1,saveChartEnabled:!1,widgetOptions:{onWidget:!0,useUserChartPreferences:!at(Ie.doNotStoreSettings,!1), addToWatchlistEnabled:!1,propertyPagesEnabled:!1,chartEventsEnabled:!Re,newsNotificationsEnabled:!1,esdEnabled:r.enabled("esdonwidget"),sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:!0,chartWarningWidget:{subscriptionFullInfo:!1},widgetCustomer:ke,customerReadableName:De,hideIdeas:!0,controlBarEnabled:!0,addVolume:!at(Ie.hide_volume),muteSessionErrors:!r.enabled("referral_program_for_widget_owners"),defSymbol:ze,defInterval:Xe,defStyle:Ye,defSessionId:Ae,timezone:Ie.timezone||xe.def_timezone,defTimeframe:Fe,isDrawingToolbarVisible:E.isDrawingToolbarVisible,watermarkEnabled:!0,paneContextMenuEnabled:!1,compareSymbols:Ve,timeScaleWidget:{contextMenuEnabled:!1,timezoneMenuEnabled:!1},timeScale:{preserveBarSpacing:!0,lockVisibleTimeRangeOnResize:!1},legendWidgetEnabled:!at(Ie.hide_legend),legendWidget:{contextMenu:{settings:!1,fundamentals:!1,showOpenMarketStatus:!0}},goToDateEnabled:!1,handleScroll:{vertTouchDrag:at(Ie.verttouchdrag),horzTouchDrag:at(Ie.horztouchdrag,!0)},handleScale:{mouseWheel:"investopedia"!==ke&&"eurex"!==ke},currencyConversionEnabled:!0,unitConversionEnabled:!0},seriesControlBarEnabled:!!Me,seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:!1,availableTimeFrames:D},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:!1},adjustForDividendsButtonEnabled:!0,sessionIdButtonEnabled:Boolean(Ae),backAdjustmentButtonEnabled:!1,settlementAsCloseButtonEnabled:!1,percentageScaleButtonEnabled:!1,logScaleButtonEnabled:!1,autoScaleButtonEnabled:!1,fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},mobileForceChartMaximizeEnabled:!1});let et=!1;Qe.onAboutToBeDestroyed.subscribe(null,(()=>{et=!0}),!0),Ie.studies_overrides&&Qe.applyStudiesOverrides(JSON.parse(Ie.studies_overrides)),Promise.all([i.e(80499),i.e(30187)]).then(i.bind(i,532989)).then((e=>{e.addBrandingSource(Qe)}));const tt=Qe.activeChartWidget.value();let it;if(window.chartWidget=tt,Qe.readOnly()||(window.studyMarket=new P(Qe,{onWidget:!0})),m.linking.bindToChartWidgetCollection(Qe),F(V.Names.WidgetLoad,Ie.frameElementId||null,void 0),Ie.theme){const e=Ie.theme.toLowerCase(),t=R.themes[e];if(t&&((0,C.setTheme)(e),!t.noChartTheme)){const e=Ie.theme&&Ie.theme.toLowerCase(),t=R.getStdTheme(e);t&&t.content&&(it=t.content,Ie.style&&(it.mainSourceProperties.style=parseInt(Ie.style)),(0,l.applyDefaultsOverrides)(it,{mainSeriesProperties:"mainSourceProperties"},!0))}}let nt=!1,st=!1;function ot(e){return(0,ge.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}function rt(){document.querySelectorAll(".loading-indicator").forEach((e=>{e instanceof HTMLElement&&(e.style.display="none")}))}function at(e,t=!1){return!1===e||!0===e?e:"1"===e||1===e||"true"===e||"0"!==e&&0!==e&&"false"!==e&&t}tt.withModel(null,(function(){const e=tt.model().mainSeries();tt.applyOverrides({"mainSeriesProperties.showCountdown":!1}),it&&tt.model().model().restoreTheme(it,!1),Ie.backgroundColor&&tt.applyOverrides({"paneProperties.background":Ie.backgroundColor,"paneProperties.backgroundType":fe.ColorType.Solid}), Ie.gridColor&&tt.applyOverrides({"paneProperties.vertGridProperties.color":Ie.gridColor,"paneProperties.horzGridProperties.color":Ie.gridColor}),async function(e){if(!e)return;try{const t="string"==typeof e?JSON.parse(decodeURIComponent(e)):e;if(!Array.isArray(t)||0===t.length)return;const i=tt.model().model().mainSeries();for(let e=0;e{!function(e,t){if(!t)return;const i=e.model().model();try{JSON.parse(decodeURIComponent(t)).forEach((e=>{const t=i.createStudyInserter(ot(e.id));t.setForceOverlay(e.overlay),t.insert((()=>Promise.resolve({inputs:e.inputs,parentSources:[]})))}))}catch(e){((Array.isArray(t)?t:t.split(/\x1f/))||[]).forEach((e=>{i.createStudyInserter(ot(e)).insert()}))}}(window.chartWidget,Ie.studies)}),!0),e.dataEvents().completed().subscribe(this,(()=>{it&&rt(),j&&!nt&&(j(Qe,!0),nt=!0),K&&!st&&(K(Qe,{seriesControlBarEnabled:!!Me}),st=!0)})),e.dataEvents().symbolError().subscribe(null,(()=>{F(V.Names.NoData,Ie.frameElementId||null,void 0)}))})),qe&&(async()=>{ const[e,t,{DrawingToolbar:n},{default:s}]=await Promise.all([Promise.all([i.e(80761),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(61204),i.e(66323),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(85131),i.e(94712),i.e(91986),i.e(71093),i.e(85686),i.e(5400),i.e(5824),i.e(21975),i.e(98133),i.e(6143),i.e(51484),i.e(28288),i.e(87142),i.e(58700),i.e(89461),i.e(57216),i.e(91916),i.e(47463),i.e(90385),i.e(92833),i.e(5483),i.e(51226),i.e(38637),i.e(94025),i.e(91890),i.e(76448),i.e(73558)]).then(i.t.bind(i,50959,19)),Promise.all([i.e(80761),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(61204),i.e(66323),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(85131),i.e(94712),i.e(91986),i.e(71093),i.e(85686),i.e(5400),i.e(5824),i.e(21975),i.e(98133),i.e(6143),i.e(51484),i.e(28288),i.e(87142),i.e(58700),i.e(89461),i.e(57216),i.e(91916),i.e(47463),i.e(90385),i.e(92833),i.e(5483),i.e(51226),i.e(38637),i.e(94025),i.e(91890),i.e(76448),i.e(73558)]).then(i.t.bind(i,631129,19)),Promise.all([i.e(80761),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(61204),i.e(66323),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(85131),i.e(94712),i.e(91986),i.e(71093),i.e(85686),i.e(5400),i.e(5824),i.e(21975),i.e(98133),i.e(6143),i.e(51484),i.e(28288),i.e(87142),i.e(58700),i.e(89461),i.e(57216),i.e(91916),i.e(47463),i.e(90385),i.e(92833),i.e(5483),i.e(51226),i.e(38637),i.e(94025),i.e(91890),i.e(76448),i.e(73558)]).then(i.bind(i,672521)),Promise.all([i.e(80761),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(28430),i.e(70428),i.e(1413),i.e(52078),i.e(89508),i.e(61204),i.e(66323),i.e(84331),i.e(85258),i.e(87940),i.e(61576),i.e(85131),i.e(94712),i.e(91986),i.e(71093),i.e(85686),i.e(5400),i.e(5824),i.e(21975),i.e(98133),i.e(6143),i.e(51484),i.e(28288),i.e(87142),i.e(58700),i.e(89461),i.e(57216),i.e(91916),i.e(47463),i.e(90385),i.e(92833),i.e(5483),i.e(51226),i.e(38637),i.e(94025),i.e(91890),i.e(76448),i.e(73558)]).then(i.t.bind(i,49649,23))]);et||(t.render(e.createElement(n,{chartWidgetCollection:Qe,resizerBridge:qe,screenshotButton:"cme"===ke}),qe.container.value()),window.lineToolPropertiesToolbar=new s(Qe))})(),Ke&&(async()=>{const[e,t,n,{HeaderToolbar:s}]=await Promise.all([z(ke),Promise.all([i.e(27799),i.e(91916),i.e(80401),i.e(90385),i.e(59255),i.e(79022)]).then(i.t.bind(i,50959,19)),Promise.all([i.e(27799),i.e(91916),i.e(80401),i.e(90385),i.e(59255),i.e(79022)]).then(i.t.bind(i,631129,19)),Promise.all([i.e(27799),i.e(91916),i.e(80401),i.e(90385),i.e(59255),i.e(79022)]).then(i.bind(i,158539))]),o=await e.getToolSet(),r=x.mobiletouch?["full"]:void 0;n.render(t.createElement(s,{tools:o,chartApiInstance:window.ChartApiInstance,availableTimeFrames:D,chartWidgetCollection:Qe,ideas:!1,resizerBridge:Ke,popupButton:at(Ie.show_popup_button),studyMarket:window.studyMarket,windowMessageService:Be,isFundamental:!1,allowedModes:r}),Ke.container.value())})(),Je&&(async()=>{ const[{WidgetBar:e},{configuration:t}]=await Promise.all([Promise.all([i.e(14819),i.e(73224),i.e(69760),i.e(94810),i.e(11789),i.e(26377),i.e(45309),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(4343),i.e(28430),i.e(4908),i.e(69749),i.e(37132),i.e(36827),i.e(45444),i.e(87940),i.e(88430),i.e(7879),i.e(85686),i.e(60678),i.e(35367),i.e(7818),i.e(90365),i.e(45469),i.e(50442),i.e(74978),i.e(23237),i.e(64071),i.e(35386),i.e(6143),i.e(50389),i.e(86331),i.e(45123),i.e(89461),i.e(76764),i.e(15471),i.e(77413),i.e(51407),i.e(22375),i.e(95221),i.e(90385),i.e(42942),i.e(24951),i.e(63295),i.e(53869),i.e(11085),i.e(99676),i.e(23852),i.e(74327),i.e(16527),i.e(2869),i.e(41412),i.e(54876)]).then(i.bind(i,639454)),Promise.all([i.e(14819),i.e(73224),i.e(69760),i.e(94810),i.e(11789),i.e(26377),i.e(45309),i.e(5987),i.e(43387),i.e(66458),i.e(5761),i.e(4343),i.e(28430),i.e(4908),i.e(69749),i.e(37132),i.e(36827),i.e(45444),i.e(87940),i.e(88430),i.e(7879),i.e(85686),i.e(60678),i.e(35367),i.e(7818),i.e(90365),i.e(45469),i.e(50442),i.e(74978),i.e(23237),i.e(64071),i.e(35386),i.e(6143),i.e(50389),i.e(86331),i.e(45123),i.e(89461),i.e(76764),i.e(15471),i.e(77413),i.e(51407),i.e(22375),i.e(95221),i.e(90385),i.e(42942),i.e(24951),i.e(63295),i.e(53869),i.e(11085),i.e(99676),i.e(23852),i.e(74327),i.e(16527),i.e(2869),i.e(41412),i.e(54876)]).then(i.bind(i,667232))]);Ue.forEach((e=>{var t;e.widgets=null===(t=e.widgets)||void 0===t?void 0:t.filter((e=>!(void 0!==e.isEnabled&&!e.isEnabled)))}));window.widgetbar=new e({resizerBridge:Je,affectsLayout:()=>He.affectsLayout("right"),readonly:!0,state:{width:We,pages:Ue},showCloseButton:!0,configuration:()=>t({chartApiInstance:window.ChartApiInstance})})})(),tt.onDisconnected().subscribe(null,(e=>{var t;rt(),e&&(t=()=>{window.ChartApiInstance.disconnect(),setTimeout((()=>{window.ChartApiInstance.connect(),tt.reconnect()}),500)},T().then((e=>e.showCriticalErrorMessage(t))))})),tt.onReconnectBailout().subscribe(null,(()=>{var e;e=()=>{setTimeout((()=>{window.ChartApiInstance.connect()}),0)},T().then((t=>t.showDisconnectedMessage(e)))})),document.querySelectorAll(".tv-content").forEach((e=>{e.addEventListener("contextmenu",(e=>{e.target instanceof Element&&e.target.matches("input, textarea")||e.preventDefault()}))})),Ie.whotrades&&r.setEnabled("whotrades_auth_only",!0),document.querySelectorAll(".loading-indicator").forEach((e=>{e.remove()})),(()=>{let e;const t=t=>{void 0!==e&&(0,y.getQuoteSessionInstance)("simple").unsubscribe("widgetQuoteListener",e),e=t,(0,y.getQuoteSessionInstance)("simple").subscribe("widgetQuoteListener",t,(e=>{const t=e.values,i=["change","change_percent","last_price","original_name","short_name","exchange","description","volume"],n={};for(let e=0;e{const e=tt.model().mainSeries();e.properties().childs().symbol.subscribe(e,(e=>{t(e.value())}))})),Be.on("quoteSubscribe",(()=>{ const e=tt.model().mainSeries().properties().childs().symbol.value();t(e)})),Be.on("imageURL",((e,t)=>{var i;(0,d.takeChartSnapshot)(Qe,(e=>{t(e)}),(()=>{t("")}),{wl:at(null===(i=xe.logo)||void 0===i?void 0:i.whitelabel),cme:xe.cme_widget})})),Be.on("symbolInfo",((e,t)=>{const i=(0,n.ensureNotNull)(tt.model().mainSeries().symbolInfo()),s=tt.model().mainSeries().properties().childs().interval.value();t({name:i.name,exchange:i.exchange,description:i.description,type:i.type,interval:s})})),Be.on("widgetReady",((e,t)=>{tt.withModel(null,(()=>{let e;tt.model().mainSeries().symbolInfo()?t():(e=()=>{t(),tt.model().mainSeries().dataEvents().symbolResolved().unsubscribe(null,e)},tt.model().mainSeries().dataEvents().symbolResolved().subscribe(null,e))}))})),M(O.Names.SetSymbol,(e=>{e&&e.symbol&&Qe.setSymbol(e.symbol)})),M(O.Names.SetInterval,(e=>{e&&e.interval&&Qe.setResolution(e.interval)}))})(),window.applyStudiesOverrides=e=>{e&&window.chartWidgetCollection.applyStudiesOverrides(e)}},944454:(e,t,i)=>{var n;i.d(t,{ConnectionStatus:()=>n}),function(e){e[e.Closed=0]="Closed",e[e.Connecting=1]="Connecting",e[e.Open=2]="Open"}(n||(n={}))},31341:(e,t,i)=>{i.r(t),i.d(t,{detectAutoDirection:()=>g,forceLTRStr:()=>u,forceLTRStrSsr:()=>c,forceRTLStr:()=>d,getLTRScrollLeft:()=>h,getLTRScrollLeftOffset:()=>p,isRtl:()=>s,startWithLTR:()=>l,stripLTRMarks:()=>a});var n=i(64531);const s=()=>"rtl"===window.document.dir,o="โ€ฌ",r=new RegExp("โ€Ž|โ€ช|โ€ซ|โ€ฌ","g");function a(e){return""!==e&&s()&&null!=e?e.replace(r,""):e}function l(e){return""!==e&&s()&&null!=e?"โ€Ž"+e:e}function u(e){return""!==e&&s()&&null!=e?"โ€ช"+e+o:e}function c(e){return"โ€ช"+e+o}function d(e){return""!==e&&s()&&null!=e?"โ€ซ"+e+o:e}function h(e){return(0,n.getNormalizedScrollLeft)(e,"rtl")}function p(e,t){const i=(0,n.detectScrollType)();if("indeterminate"===i)return 0;switch(i){case"negative":t=e.clientWidth-e.scrollWidth+t;break;case"reverse":t=e.scrollWidth-e.clientWidth-t}return t}const m=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,v=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function g(e){const t=m.exec(e);return t?v.test(t[0])?"rtl":"ltr":""}},167222:(e,t,i)=>{i.d(t,{runOrSigninWithFeature:()=>r});var n=i(392896),s=i(847754),o=i(314802);const r=(e,t)=>{{if((0,o.isOnMobileAppPage)("any"))return void window.runOrSignIn(e,t);const i=[];if(t.paidAccountCheck&&i.push((()=>(0,n.paidAccountCheck)({successButtonText:t.paidAccountSuccessButtonText}))),window.is_authenticated)i.reduce(((e,t)=>e.then(t)),Promise.resolve()).then(e).catch((()=>{}));else{const i={source:t.source,sourceMeta:t.sourceMeta,feature:t.feature,mode:t.mode,startTrial:t.startTrial};(0,s.createRunOrSigniWithFeatureDialog)({signInSuccess:e,options:i})}}};window.TradingView.runOrSigninWithFeature=r},526698:(e,t,i)=>{i.d(t,{AggregateError:()=>f,ApiError:()=>g,accumulateErrors:()=>o,checkPhoneCode:()=>u,fetchPost:()=>r,firstLoginData:()=>a,firstLoginDataUrl:()=>s,recoverPassword:()=>y,recoverPasswordUrl:()=>_,recoveryPassword:()=>c, resendLink:()=>l,signin:()=>p,signinUrl:()=>d,signup:()=>v,signupUrl:()=>m,socialAuth:()=>S});var n=i(120780);const s="/accounts/first_login_data/";function o(e,t){return Object.entries(e).map((e=>new g(e[1].join("\n"),t,e[0])))}function r(e,t){return(0,n.fetch)(e,{method:"POST",credentials:"include",mode:"same-origin",body:t})}function a(e){return r(s,e).then((e=>e.ok?e.json():e.json().then((t=>{throw new f(o(t.errors,e.status))}))))}function l(){return r("/api/v1/users/anon/change-email/resend/").then((e=>e.ok?e.json():e.json().then((e=>{throw Error(e.error)}))))}function u(e){return r("/api/v1/recover_password/check_phone_code/",e).then((e=>e.ok?e.json():e.json().then((e=>{throw Error(e.error)}))))}function c(e){return r("/api/v1/recover_password/",e).then((e=>e))}const d="/accounts/signin/";function h(e){return e.json().then((t=>{if("error"in t&&""!==t.error||"code"in t||!e.ok)throw new g(t.error||t.detail,e.status,t.code,t.two_factor_types,function(e){if(e.signature)return{signature:e.signature,email:e.email||"",phone:e.phone||"",socials:[]};return}(t));return t}))}function p(e){return r(d,e).then(h)}const m="/accounts/signup/";function v(e){return r(m,e).then((e=>e.json().then((t=>{if("errors"in t&&""!==t.errors)throw new f(o(t.errors,e.status))}))))}class g extends Error{constructor(e,t,i,n,s){super(e),this.type=i,this.status=t,this.secondFactorTypes=n,this.resetPasswordData=s}}class f extends Error{constructor(e){super(e.map((e=>e.message)).join("\n")),this.errors=[],this.errors=e}}const _="/api/v1/recover_password/search/";function y(e){return r(_,e).then(h)}const b={headers:{Accept:"application/json"}};function S(e){const t=new URL(window.origin+"/accounts/complete/android-jwt/");return Object.entries(e).forEach((([e,i])=>i&&t.searchParams.append(e,i))),(0,n.fetch)(t.href,b).then(h)}},290576:(e,t,i)=>{i.d(t,{getProPlanDetailsForUser:()=>h,getProPlanWeight:()=>a,isExpertFeature:()=>d});var n=i(778016),s=i(255453),o=i(120780),r=i(526698);function a(e){return window.pro?"free"===e?-1:window.pro.getProduct((0,s.getProductForTrial)(e)).upgrade_weight:0}function l(e){return window.pro?window.pro.getProduct((0,s.getProductForTrial)(e)).upgrade_weight:0}function u(e){return function(e){return e.sort(((e,t)=>a(e)-a(t)))}((0,n.getProPlansWithFeature)(e).filter((e=>!(0,s.isTrialProduct)(e))))[0]||null}function c(e){return function(e){return e.sort(((e,t)=>l(e)-l(t)))}((0,n.getExpertPlansWithFeature)(e))[0]||null}function d(e){const t=c(e),i=u(e);return Boolean(t)&&!Boolean(i)}async function h(){const e=await(0,o.fetch)("/pro-plans/profile/"),t=await e.json();if(e.ok)return t;if(403===e.status){const i=t;throw new r.ApiError(i.detail,e.status,i.code)}throw new Error(`Unable to handle unexpected response: ${String(e.text())}`)}},199639:e=>{var t={},i={XCBT:"CBOT",XNYM:"NYMEX",XCME:"CME",XCEC:"COMEX"};t.convertSymbolDataToTV=function(e,t,n){return n=2===n||"floor"===n||"pit"===n?"PIT":"GBX",t&&i[t]?{status:"ok",data:{symbol:e,exchange:i[t]+"_"+n}}:{status:"error",data:"Exchange `"+t+"` is not supported"}},e.exports=t}, 603706:(e,t,i)=>{i.d(t,{getTimeFrames:()=>o});var n=i(444372),s=i(146585);function o(){return{"1d":{text:n.t(null,void 0,i(932120)),value:{value:"1D",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1"),description:(0,s.daysStringLiteral)(1)},"5d":{text:n.t(null,void 0,i(905486)),value:{value:"5D",type:"period-back"},targetResolution:(0,s.stringAsResolution)("5"),description:(0,s.daysStringLiteral)(5)},"1w":{text:n.t(null,void 0,i(234880)),value:{value:"7D",type:"period-back"},targetResolution:(0,s.stringAsResolution)("15"),description:(0,s.weeksStringLiteral)(1)},"1m":{text:n.t(null,void 0,i(460356)),value:{value:"1M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("30"),description:(0,s.monthsStringLiteral)(1)},"3m":{text:n.t(null,void 0,i(440675)),value:{value:"3M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("60"),description:(0,s.monthsStringLiteral)(3)},"6m":{text:n.t(null,void 0,i(281788)),value:{value:"6M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("120"),description:(0,s.monthsStringLiteral)(6)},"12m":{text:n.t(null,void 0,i(254790)),value:{value:"12M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1D"),description:(0,s.yearsStringLiteral)(1)},"24m":{text:n.t(null,void 0,i(440956)),value:{value:"24M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1W"),description:(0,s.yearsStringLiteral)(2)},"36m":{text:n.t(null,void 0,i(996053)),value:{value:"36M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1W"),description:(0,s.yearsStringLiteral)(3)},"60m":{text:n.t(null,void 0,i(320013)),value:{value:"60M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1W"),description:(0,s.yearsStringLiteral)(5)},"120m":{text:n.t(null,void 0,i(377628)),value:{value:"120M",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1M"),description:(0,s.yearsStringLiteral)(10)},ytd:{text:n.t(null,void 0,i(989013)),value:{value:"YTD",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1D"),description:n.t(null,void 0,i(388996))},all:{text:n.t(null,void 0,i(695271)),value:{value:"ALL",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1M")},lastsession:{text:n.t(null,void 0,i(932120)),value:{value:"LASTSESSION",type:"period-back"},targetResolution:(0,s.stringAsResolution)("1"),description:(0,s.daysStringLiteral)(1)}}}},146585:(e,t,i)=>{i.d(t,{daysStringLiteral:()=>r,hoursStringLiteral:()=>o,minutesStringLiteral:()=>s,monthsStringLiteral:()=>l,stringAsResolution:()=>c,weeksStringLiteral:()=>a,yearsStringLiteral:()=>u});var n=i(444372);const s=e=>n.t(null,{plural:"{str} minutes",count:e,replace:{str:`${e}`}},i(860144)),o=e=>n.t(null,{plural:"{str} hours",count:e,replace:{str:`${e}`}},i(217174)),r=e=>n.t(null,{plural:"{str} days",count:e,replace:{str:`${e}`}},i(774262)),a=e=>n.t(null,{plural:"{str} weeks",count:e,replace:{str:`${e}`}},i(14074)),l=e=>n.t(null,{plural:"{str} months",count:e,replace:{str:`${e}`}},i(128039)),u=e=>n.t(null,{plural:"{str} years",count:e,replace:{str:`${e}`} },i(408222)),c=e=>e},606311:(e,t,i)=>{i.d(t,{timeFrames:()=>n});const n=(0,i(603706).getTimeFrames)()},665570:(e,t,i)=>{i.d(t,{getTranslatedSymbolDescription:()=>o});var n=i(444372);function s(e){const t=`#${e}-symbol-description`,s=n.t(t,void 0,i(118562));return s===t?null:s}function o(e){if(void 0!==e.pro_name){const t=s(e.pro_name);if(null!==t)return t;if(void 0!==e.short_name){const t=s(e.short_name);if(null!==t)return t}}return"en"!==e.language&&void 0!==e.local_description&&e.language===window.language||"en"===e.language&&void 0!==e.local_description&&e.language===window.language?e.local_description:e.description||""}},97948:(e,t,i)=>{function n(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var i=t.space||"";"number"==typeof i&&(i=Array(i+1).join(" "));var n,r="boolean"==typeof t.cycles&&t.cycles,a=t.replacer||function(e,t){return t},l=t.cmp&&(n=t.cmp,function(e){return function(t,i){var s={key:t,value:e[t]},o={key:i,value:e[i]};return n(s,o)}}),u=[];return function e(t,n,c,d){var h=i?"\n"+new Array(d+1).join(i):"",p=i?": ":":";if(c&&c.toJSON&&"function"==typeof c.toJSON&&(c=c.toJSON()),void 0!==(c=a.call(t,n,c))){if("object"!=typeof c||null===c)return JSON.stringify(c);if(s(c)){for(var m=[],v=0;vn});var s=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},i=[];for(var n in e)t.call(e,n)&&i.push(n);return i}},919476:(e,t,i)=>{i.r(t),i.d(t,{capitalizeFirstLetterInWord:()=>m,decodeHTMLEntities:()=>u,encodeHTMLEntities:()=>c,getFirstSegmentOrCodePointString:()=>v,htmlEscape:()=>d,removeSpaces:()=>p,removeTags:()=>h});const n=/[<"'&>]/g,s=e=>`&#${e.charCodeAt(0)};`,o={"<":"<",">":">",""":'"',"'":"'","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","&":"&"},r=Object.assign({},...Object.entries(o).map((([e,t])=>({[t]:e})))),a=new RegExp(Object.keys(o).join("|"),"g"),l=new RegExp(Object.keys(r).join("|"),"g");function u(e){return e.replace(a,(e=>o[e]||e))}function c(e){return e.replace(l,(e=>r[e]||e))}function d(e){return e.replace(n,s)}function h(e=""){return e.replace(/(<([^>]+)>)/gi,"")}function p(e=""){return e.replace(/\s+/g,"")}function m(e=""){return e.replace(/\b\w/g,(e=>e.toUpperCase()))}function v(e){var t;const i=Intl.Segmenter;if(i){const n=new i(void 0,{granularity:"grapheme"}),[{segment:s}={segment:null}]=n.segment(e);return null!==(t=null==s?void 0:s.toUpperCase())&&void 0!==t?t:null}{const t=e.codePointAt(0);return t?String.fromCodePoint(t).toUpperCase():null}}},966778:(e,t,i)=>{i.d(t,{ bindTo:()=>r});var n=i(341161),s=i(340159),o=function(){function e(e,t,i){var s;this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=e,this._canvasElementClientSize=(0,n.size)({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=null!=t?t:function(e){return e},this._allowResizeObserver=null===(s=null==i?void 0:i.allowResizeObserver)||void 0===s||s,this._chooseAndInitObserver()}return e.prototype.dispose=function(){var e,t;if(null===this._canvasElement)throw new Error("Object is disposed");null===(e=this._canvasElementResizeObserver)||void 0===e||e.disconnect(),this._canvasElementResizeObserver=null,null===(t=this._devicePixelRatioObservable)||void 0===t||t.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(e.prototype,"canvasElement",{get:function(){if(null===this._canvasElement)throw new Error("Object is disposed");return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bitmapSize",{get:function(){return(0,n.size)({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),e.prototype.resizeCanvasElement=function(e){this._canvasElementClientSize=(0,n.size)(e),this.canvasElement.style.width="".concat(this._canvasElementClientSize.width,"px"),this.canvasElement.style.height="".concat(this._canvasElementClientSize.height,"px"),this._invalidateBitmapSize()},e.prototype.subscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter((function(t){return t!==e}))},Object.defineProperty(e.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize},enumerable:!1,configurable:!0}),e.prototype.subscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter((function(t){return t!==e}))},e.prototype.applySuggestedBitmapSize=function(){if(null!==this._suggestedBitmapSize){var e=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(e),this._emitSuggestedBitmapSizeChanged(e,this._suggestedBitmapSize)}},e.prototype._resizeBitmap=function(e){var t=this.bitmapSize;(0,n.equalSizes)(t,e)||(this.canvasElement.width=e.width,this.canvasElement.height=e.height,this._emitBitmapSizeChanged(t,e))},e.prototype._emitBitmapSizeChanged=function(e,t){var i=this ;this._bitmapSizeChangedListeners.forEach((function(n){return n.call(i,e,t)}))},e.prototype._suggestNewBitmapSize=function(e){var t=this._suggestedBitmapSize,i=(0,n.size)(this._transformBitmapSize(e,this._canvasElementClientSize)),s=(0,n.equalSizes)(this.bitmapSize,i)?null:i;null===t&&null===s||null!==t&&null!==s&&(0,n.equalSizes)(t,s)||(this._suggestedBitmapSize=s,this._emitSuggestedBitmapSizeChanged(t,s))},e.prototype._emitSuggestedBitmapSizeChanged=function(e,t){var i=this;this._suggestedBitmapSizeChangedListeners.forEach((function(n){return n.call(i,e,t)}))},e.prototype._chooseAndInitObserver=function(){var e=this;this._allowResizeObserver?new Promise((function(e){var t=new ResizeObserver((function(i){e(i.every((function(e){return"devicePixelContentBoxSize"in e}))),t.disconnect()}));t.observe(document.body,{box:"device-pixel-content-box"})})).catch((function(){return!1})).then((function(t){return t?e._initResizeObserver():e._initDevicePixelRatioObservable()})):this._initDevicePixelRatioObservable()},e.prototype._initDevicePixelRatioObservable=function(){var e=this;if(null!==this._canvasElement){var t=a(this._canvasElement);if(null===t)throw new Error("No window is associated with the canvas");this._devicePixelRatioObservable=(0,s.createObservable)(t),this._devicePixelRatioObservable.subscribe((function(){return e._invalidateBitmapSize()})),this._invalidateBitmapSize()}},e.prototype._invalidateBitmapSize=function(){var e,t;if(null!==this._canvasElement){var i=a(this._canvasElement);if(null!==i){var s=null!==(t=null===(e=this._devicePixelRatioObservable)||void 0===e?void 0:e.value)&&void 0!==t?t:i.devicePixelRatio,o=this._canvasElement.getClientRects(),r=void 0!==o[0]?function(e,t){return(0,n.size)({width:Math.round(e.left*t+e.width*t)-Math.round(e.left*t),height:Math.round(e.top*t+e.height*t)-Math.round(e.top*t)})}(o[0],s):(0,n.size)({width:this._canvasElementClientSize.width*s,height:this._canvasElementClientSize.height*s});this._suggestNewBitmapSize(r)}}},e.prototype._initResizeObserver=function(){var e=this;null!==this._canvasElement&&(this._canvasElementResizeObserver=new ResizeObserver((function(t){var i=t.find((function(t){return t.target===e._canvasElement}));if(i&&i.devicePixelContentBoxSize&&i.devicePixelContentBoxSize[0]){var s=i.devicePixelContentBoxSize[0],o=(0,n.size)({width:s.inlineSize,height:s.blockSize});e._suggestNewBitmapSize(o)}})),this._canvasElementResizeObserver.observe(this._canvasElement,{box:"device-pixel-content-box"}))},e}();function r(e,t){if("device-pixel-content-box"===t.type)return new o(e,t.transform,t.options);throw new Error("Unsupported binding target")}function a(e){return e.ownerDocument.defaultView}},751472:(e,t,i)=>{i.d(t,{CanvasRenderingTarget2D:()=>n,tryCreateCanvasRenderingTarget2D:()=>s});var n=function(){function e(e,t,i){if(0===t.width||0===t.height)throw new TypeError("Rendering target could only be created on a media with positive width and height");if(this._mediaSize=t, 0===i.width||0===i.height)throw new TypeError("Rendering target could only be created using a bitmap with positive integer width and height");this._bitmapSize=i,this._context=e}return e.prototype.useMediaCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),e({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},e.prototype.useBitmapCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),e({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}finally{this._context.restore()}},Object.defineProperty(e.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),e}();function s(e,t){var i=e.canvasElementClientSize;if(0===i.width||0===i.height)return null;var s=e.bitmapSize;if(0===s.width||0===s.height)return null;var o=e.canvasElement.getContext("2d",t);return null===o?null:new n(o,i,s)}},586240:e=>{e.exports=JSON.parse('{"size-header-height":"64px","size-sticky-symbol-header-height":"64px","size-dialog-fixed-header-height":"72px","media-phone":"screen and (max-width: 767px)","media-phone-vertical":"screen and (max-width: 479px)","media-mf-phone-vertical":"screen and (min-width: 320px)","media-mf-phone-landscape":"screen and (min-width: 568px)","media-mf-tablet-vertical":"screen and (min-width: 768px)","media-mf-tablet-landscape":"screen and (min-width: 1024px)","media-mf-laptop":"screen and (min-width: 1280px)","media-mf-desktop-medium":"screen and (min-width: 1440px)","media-mf-desktop-large":"screen and (min-width: 1920px)","media-mf-desktop-extra-large":"screen and (min-width: 2560px)"}')}},e=>{e.O(0,[18562,68716,36876,35554,35047,14652,98597,14004,95203,11401,85353,27960,69749,33101,42900,81179,18612,837,28935,17808,99888,45121,23127,24951,79905,2065,72209,24377,68239,83433,55781,30128,10399,48834,2227,56303,13173,76250,19526,85482,62402,24345,93308,5080,84431,93202],(()=>{return t=377993,e(e.s=t);var t}));e.O()}]);